|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.ldap.LdapGroupManager
public class LdapGroupManager
Constructor Summary | |
---|---|
LdapGroupManager()
Constructor of the LdapGroupProvider class. |
Method Summary | |
---|---|
Group |
createGroup(java.lang.String name)
Factory method for creating a new Group. |
void |
deleteGroup(Group group)
Deletes a group from the system. |
Group |
getGroup(long groupID)
Gets a Group by ID. |
Group |
getGroup(java.lang.String name)
Gets a Group by name. |
int |
getGroupCount()
Returns the total number of groups in the system. |
LongList |
getGroupIDs(User user)
Returns a list of group ids for all the groups that the user is a member of. |
java.util.Iterator |
getGroups()
Returns an iterator for all groups in the system. |
java.util.Iterator |
getGroups(int startIndex,
int numResults)
Returns an iterator for all groups starting at startIndex with the given number of results. |
java.util.Iterator |
getUserGroups(User user)
Returns an iterator for all groups that a user is a member of. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapGroupManager()
Method Detail |
---|
public Group createGroup(java.lang.String name) throws GroupAlreadyExistsException
GroupManager
createGroup
in interface GroupManager
name
- the new and unique name for the group.
GroupAlreadyExistsException
- if the group name already exists in the system.public Group getGroup(long groupID) throws GroupNotFoundException
GroupManager
getGroup
in interface GroupManager
GroupNotFoundException
public Group getGroup(java.lang.String name) throws GroupNotFoundException
GroupManager
getGroup
in interface GroupManager
GroupNotFoundException
public void deleteGroup(Group group) throws UnauthorizedException
GroupManager
deleteGroup
in interface GroupManager
group
- the group to delete.
UnauthorizedException
- if not a system administrator.public int getGroupCount()
GroupManager
getGroupCount
in interface GroupManager
public java.util.Iterator getGroups()
GroupManager
getGroups
in interface GroupManager
public java.util.Iterator getGroups(int startIndex, int numResults)
GroupManager
getGroups
in interface GroupManager
startIndex
- the beginning index to start the results at.numResults
- the total number of results to return.
public java.util.Iterator getUserGroups(User user)
GroupManager
getUserGroups
in interface GroupManager
user
- the user to get a list of groups for.
public LongList getGroupIDs(User user)
GroupManager
getGroupIDs
in interface GroupManager
user
- the user to get a list of groups for.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |