⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 privacylistmanager.html

📁 开源项目smack的API文件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DT><B>Returns:</B><DD>the PrivacyListManager associated with a given XMPPConnection.</DL></DD></DL><HR><A NAME="getActiveList()"><!-- --></A><H3>getActiveList</H3><PRE>public <A HREF="../../../org/jivesoftware/smack/PrivacyList.html" title="class in org.jivesoftware.smack">PrivacyList</A> <B>getActiveList</B>()                          throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Answer the active privacy list.<P><DD><DL><DT><B>Returns:</B><DD>the privacy list of the active list.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="getDefaultList()"><!-- --></A><H3>getDefaultList</H3><PRE>public <A HREF="../../../org/jivesoftware/smack/PrivacyList.html" title="class in org.jivesoftware.smack">PrivacyList</A> <B>getDefaultList</B>()                           throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Answer the default privacy list.<P><DD><DL><DT><B>Returns:</B><DD>the privacy list of the default list.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="getPrivacyList(java.lang.String)"><!-- --></A><H3>getPrivacyList</H3><PRE>public <A HREF="../../../org/jivesoftware/smack/PrivacyList.html" title="class in org.jivesoftware.smack">PrivacyList</A> <B>getPrivacyList</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;listName)                           throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Answer the privacy list items under listName with the allowed and blocked permissions.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listName</CODE> - the name of the list to get the allowed and blocked permissions.<DT><B>Returns:</B><DD>a privacy list under the list listName.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="getPrivacyLists()"><!-- --></A><H3>getPrivacyLists</H3><PRE>public <A HREF="../../../org/jivesoftware/smack/PrivacyList.html" title="class in org.jivesoftware.smack">PrivacyList</A>[] <B>getPrivacyLists</B>()                              throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Answer every privacy list with the allowed and blocked permissions.<P><DD><DL><DT><B>Returns:</B><DD>an array of privacy lists.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="setActiveListName(java.lang.String)"><!-- --></A><H3>setActiveListName</H3><PRE>public void <B>setActiveListName</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;listName)                       throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Set or change the active list to listName.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listName</CODE> - the list name to set as the active one.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the request or the answer failed, it raises an exception.</DL></DD></DL><HR><A NAME="declineActiveList()"><!-- --></A><H3>declineActiveList</H3><PRE>public void <B>declineActiveList</B>()                       throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Client declines the use of active lists.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="setDefaultListName(java.lang.String)"><!-- --></A><H3>setDefaultListName</H3><PRE>public void <B>setDefaultListName</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;listName)                        throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Set or change the default list to listName.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listName</CODE> - the list name to set as the default one.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the request or the answer failed, it raises an exception.</DL></DD></DL><HR><A NAME="declineDefaultList()"><!-- --></A><H3>declineDefaultList</H3><PRE>public void <B>declineDefaultList</B>()                        throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Client declines the use of default lists.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="createPrivacyList(java.lang.String, java.util.List)"><!-- --></A><H3>createPrivacyList</H3><PRE>public void <B>createPrivacyList</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;listName,                              <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../../org/jivesoftware/smack/packet/PrivacyItem.html" title="class in org.jivesoftware.smack.packet">PrivacyItem</A>&gt;&nbsp;privacyItems)                       throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>The client has created a new list. It send the new one to the server.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listName</CODE> - the list that has changed its content.<DD><CODE>privacyItems</CODE> - a List with every privacy item in the list.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="updatePrivacyList(java.lang.String, java.util.List)"><!-- --></A><H3>updatePrivacyList</H3><PRE>public void <B>updatePrivacyList</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;listName,                              <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&lt;<A HREF="../../../org/jivesoftware/smack/packet/PrivacyItem.html" title="class in org.jivesoftware.smack.packet">PrivacyItem</A>&gt;&nbsp;privacyItems)                       throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>The client has edited an existing list. It updates the server content with the resulting  list of privacy items. The <A HREF="../../../org/jivesoftware/smack/packet/PrivacyItem.html" title="class in org.jivesoftware.smack.packet"><CODE>PrivacyItem</CODE></A> list MUST contain all elements in the  list (not the "delta").<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listName</CODE> - the list that has changed its content.<DD><CODE>privacyItems</CODE> - a List with every privacy item in the list.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="deletePrivacyList(java.lang.String)"><!-- --></A><H3>deletePrivacyList</H3><PRE>public void <B>deletePrivacyList</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;listName)                       throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Remove a privacy list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listName</CODE> - the list that has changed its content.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if an error occurs.</DL></DD></DL><HR><A NAME="addListener(org.jivesoftware.smack.PrivacyListListener)"><!-- --></A><H3>addListener</H3><PRE>public void <B>addListener</B>(<A HREF="../../../org/jivesoftware/smack/PrivacyListListener.html" title="interface in org.jivesoftware.smack">PrivacyListListener</A>&nbsp;listener)</PRE><DL><DD>Adds a packet listener that will be notified of any new update in the user privacy communication.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - a packet listener.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Smack</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jivesoftware/smack/PrivacyListListener.html" title="interface in org.jivesoftware.smack"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jivesoftware/smack/ReconnectionManager.html" title="class in org.jivesoftware.smack"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/jivesoftware/smack/PrivacyListManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PrivacyListManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &copy; 2003-2007 Jive Software. </i></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -