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

📄 rosteritem.html

📁 开源软件openfire的API文件。进行openfire的二次开发所必需的工具。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DD>Returns the invisible shared groups for the item. These groups are for internal use and help track the reason why a roster item has a presence subscription of type FROM when using shared groups.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The shared groups this item belongs to.</DL></DD></DL><HR><A NAME="addSharedGroup(org.jivesoftware.openfire.group.Group)"><!-- --></A><H3>addSharedGroup</H3><PRE>public void <B>addSharedGroup</B>(<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A>&nbsp;sharedGroup)</PRE><DL><DD>Adds a new group to the shared groups list.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sharedGroup</CODE> - The shared group to add to the list of shared groups.</DL></DD></DL><HR><A NAME="addInvisibleSharedGroup(org.jivesoftware.openfire.group.Group)"><!-- --></A><H3>addInvisibleSharedGroup</H3><PRE>public void <B>addInvisibleSharedGroup</B>(<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A>&nbsp;sharedGroup)</PRE><DL><DD>Adds a new group to the list shared groups that won't be sent to the user. These groups are for internal use and help track the reason why a roster item has a presence subscription of type FROM when using shared groups.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sharedGroup</CODE> - The shared group to add to the list of shared groups.</DL></DD></DL><HR><A NAME="removeSharedGroup(org.jivesoftware.openfire.group.Group)"><!-- --></A><H3>removeSharedGroup</H3><PRE>public void <B>removeSharedGroup</B>(<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A>&nbsp;sharedGroup)</PRE><DL><DD>Removes a group from the shared groups list.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sharedGroup</CODE> - The shared group to remove from the list of shared groups.</DL></DD></DL><HR><A NAME="isShared()"><!-- --></A><H3>isShared</H3><PRE>public boolean <B>isShared</B>()</PRE><DL><DD>Returns true if this item belongs to a shared group. Return true even if the item belongs to a personal group and a shared group.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if this item belongs to a shared group.</DL></DD></DL><HR><A NAME="isOnlyShared()"><!-- --></A><H3>isOnlyShared</H3><PRE>public boolean <B>isOnlyShared</B>()</PRE><DL><DD>Returns true if this item belongs ONLY to shared groups. This means that the the item is considered to be "only shared" if it doesn't belong to a personal group but only to shared groups.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if this item belongs ONLY to shared groups.</DL></DD></DL><HR><A NAME="getID()"><!-- --></A><H3>getID</H3><PRE>public long <B>getID</B>()</PRE><DL><DD>Returns the roster ID associated with this particular roster item. A value of zero means that the roster item is not being persisted in the backend store.<p> Databases can use the roster ID as the key in locating roster items.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The roster ID</DL></DD></DL><HR><A NAME="setID(long)"><!-- --></A><H3>setID</H3><PRE>public void <B>setID</B>(long&nbsp;rosterID)</PRE><DL><DD>Sets the roster ID associated with this particular roster item. A value of zero means that the roster item is not being persisted in the backend store.<p> Databases can use the roster ID as the key in locating roster items.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rosterID</CODE> - The roster ID.</DL></DD></DL><HR><A NAME="setAsCopyOf(org.xmpp.packet.Roster.Item)"><!-- --></A><H3>setAsCopyOf</H3><PRE>public void <B>setAsCopyOf</B>(<A HREF="../../../../org/xmpp/packet/Roster.Item.html" title="class in org.xmpp.packet">Roster.Item</A>&nbsp;item)                 throws <A HREF="../../../../org/jivesoftware/openfire/SharedGroupException.html" title="class in org.jivesoftware.openfire">SharedGroupException</A></PRE><DL><DD><p>Update the cached item as a copy of the given item.</p> <p/> <p>A convenience for getting the item and setting each attribute.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>item</CODE> - The item who's settings will be copied into the cached copy<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/SharedGroupException.html" title="class in org.jivesoftware.openfire">SharedGroupException</A></CODE> - if trying to remove shared group.</DL></DD></DL><HR><A NAME="getCachedSize()"><!-- --></A><H3>getCachedSize</H3><PRE>public int <B>getCachedSize</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/util/cache/Cacheable.html#getCachedSize()">Cacheable</A></CODE></B></DD><DD>Returns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.<p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/util/cache/Cacheable.html#getCachedSize()">getCachedSize</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/util/cache/Cacheable.html" title="interface in org.jivesoftware.util.cache">Cacheable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the size of the Object in bytes.</DL></DD></DL><HR><A NAME="writeExternal(java.io.ObjectOutput)"><!-- --></A><H3>writeExternal</H3><PRE>public void <B>writeExternal</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/ObjectOutput.html" title="class or interface in java.io">ObjectOutput</A>&nbsp;out)                   throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Externalizable.html#writeExternal(java.io.ObjectOutput)" title="class or interface in java.io">writeExternal</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Externalizable.html" title="class or interface in java.io">Externalizable</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL></DD></DL><HR><A NAME="readExternal(java.io.ObjectInput)"><!-- --></A><H3>readExternal</H3><PRE>public void <B>readExternal</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/ObjectInput.html" title="class or interface in java.io">ObjectInput</A>&nbsp;in)                  throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>,                         <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Externalizable.html#readExternal(java.io.ObjectInput)" title="class or interface in java.io">readExternal</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Externalizable.html" title="class or interface in java.io">Externalizable</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassNotFoundException.html" title="class or interface in java.lang">ClassNotFoundException</A></CODE></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>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/jivesoftware/openfire/roster/RosterEventListener.html" title="interface in org.jivesoftware.openfire.roster"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/jivesoftware/openfire/roster/RosterItem.AskType.html" title="class in org.jivesoftware.openfire.roster"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?org/jivesoftware/openfire/roster/RosterItem.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="RosterItem.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&

⌨️ 快捷键说明

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