📄 groupmanager.html
字号:
<TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/group/GroupManager.html#getProvider()">getProvider</A></B>()</CODE><BR> Returns the configured group provider.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/group/GroupManager.html#getSharedGroups()">getSharedGroups</A></B>()</CODE><BR> Returns an unmodifiable Collection of all shared groups in the system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/group/GroupManager.html#isPropertyReadOnly()">isPropertyReadOnly</A></B>()</CODE><BR> Returns true if properties of groups are read only.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/group/GroupManager.html#isReadOnly()">isReadOnly</A></B>()</CODE><BR> Returns true if groups are read-only.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/group/GroupManager.html#isSearchSupported()">isSearchSupported</A></B>()</CODE><BR> Returns true if searching for groups is supported.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/group/GroupManager.html#search(java.lang.String)">search</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> query)</CODE><BR> Returns the groups that match the search.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/group/GroupManager.html#search(java.lang.String, int, int)">search</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> query, int startIndex, int numResults)</CODE><BR> Returns the groups that match the search given a start index and desired number of results.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getInstance()"><!-- --></A><H3>getInstance</H3><PRE>public static <A HREF="../../../../org/jivesoftware/openfire/group/GroupManager.html" title="class in org.jivesoftware.openfire.group">GroupManager</A> <B>getInstance</B>()</PRE><DL><DD>Returns a singleton instance of GroupManager.<P><DD><DL><DT><B>Returns:</B><DD>a GroupManager instance.</DL></DD></DL><HR><A NAME="createGroup(java.lang.String)"><!-- --></A><H3>createGroup</H3><PRE>public <A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A> <B>createGroup</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name) throws <A HREF="../../../../org/jivesoftware/openfire/group/GroupAlreadyExistsException.html" title="class in org.jivesoftware.openfire.group">GroupAlreadyExistsException</A></PRE><DL><DD>Factory method for creating a new Group. A unique name is the only required field.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the new and unique name for the group.<DT><B>Returns:</B><DD>a new Group.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/group/GroupAlreadyExistsException.html" title="class in org.jivesoftware.openfire.group">GroupAlreadyExistsException</A></CODE> - if the group name already exists in the system.</DL></DD></DL><HR><A NAME="getGroup(java.lang.String)"><!-- --></A><H3>getGroup</H3><PRE>public <A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A> <B>getGroup</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name) throws <A HREF="../../../../org/jivesoftware/openfire/group/GroupNotFoundException.html" title="class in org.jivesoftware.openfire.group">GroupNotFoundException</A></PRE><DL><DD>Returns a Group by name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the group to retrieve<DT><B>Returns:</B><DD>The group corresponding to that name<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/group/GroupNotFoundException.html" title="class in org.jivesoftware.openfire.group">GroupNotFoundException</A></CODE> - if the group does not exist.</DL></DD></DL><HR><A NAME="getGroup(java.lang.String, boolean)"><!-- --></A><H3>getGroup</H3><PRE>public <A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A> <B>getGroup</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, boolean forceLookup) throws <A HREF="../../../../org/jivesoftware/openfire/group/GroupNotFoundException.html" title="class in org.jivesoftware.openfire.group">GroupNotFoundException</A></PRE><DL><DD>Returns a Group by name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the group to retrieve<DT><B>Returns:</B><DD>The group corresponding to that name<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/group/GroupNotFoundException.html" title="class in org.jivesoftware.openfire.group">GroupNotFoundException</A></CODE> - if the group does not exist.</DL></DD></DL><HR><A NAME="deleteGroup(org.jivesoftware.openfire.group.Group)"><!-- --></A><H3>deleteGroup</H3><PRE>public void <B>deleteGroup</B>(<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A> group)</PRE><DL><DD>Deletes a group from the system.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - the group to delete.</DL></DD></DL><HR><A NAME="deleteUser(org.jivesoftware.openfire.user.User)"><!-- --></A><H3>deleteUser</H3><PRE>public void <B>deleteUser</B>(<A HREF="../../../../org/jivesoftware/openfire/user/User.html" title="class in org.jivesoftware.openfire.user">User</A> user)</PRE><DL><DD>Deletes a user from all the groups where he/she belongs. The most probable cause for this request is that the user has been deleted from the system.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>user</CODE> - the deleted user from the system.</DL></DD></DL><HR><A NAME="getGroupCount()"><!-- --></A><H3>getGroupCount</H3><PRE>public int <B>getGroupCount</B>()</PRE><DL><DD>Returns the total number of groups in the system.<P><DD><DL><DT><B>Returns:</B><DD>the total number of groups.</DL></DD></DL><HR><A NAME="getGroups()"><!-- --></A><H3>getGroups</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A>> <B>getGroups</B>()</PRE><DL><DD>Returns an unmodifiable Collection of all groups in the system.<P><DD><DL><DT><B>Returns:</B><DD>an unmodifiable Collection of all groups.</DL></DD></DL><HR><A NAME="getSharedGroups()"><!-- --></A><H3>getSharedGroups</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="../../../../org/jivesoftware/openfire/group/Group.html" title="class in org.jivesoftware.openfire.group">Group</A>> <B>getSharedGroups</B>()</PRE><DL><DD>Returns an unmodifiable Collection of all shared groups in the system.<P><DD><DL><DT><B>Returns:</B><DD>an unmodifiable Collection of all shared groups.</DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -