|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.base.ldap.LdapSearchGroupManager
public class LdapSearchGroupManager
Manages the LDAP search groups. An ldap search group refers to the LDAP Search Manager for its group memebers and wraps an instance of DbGroup in order to maintain all other aspects of the group.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_BASEDN
|
static java.lang.String |
PROPERTY_SEARCH
|
| Constructor Summary | |
|---|---|
LdapSearchGroupManager()
|
|
| Method Summary | |
|---|---|
Group |
createGroup(java.lang.String name)
Factory method for creating a new Group. |
Group |
createGroup(java.lang.String name,
java.lang.String searchFilter)
|
void |
deleteGroup(Group group)
Deletes a group from the system. |
protected static DbGroupManager |
getDbGroupManager()
|
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. |
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. |
boolean |
isCreateGroupSupported()
Indicates whether the GroupManager supports creating groups via the createGroups() method. |
boolean |
isDeleteGroupSupported()
Indicates whether the GroupManager supports deleting groups via the deleteGroups() method. |
boolean |
isGetUserGroupsSupported()
Indicates whether the GroupManager supports getting a listing of all groups for a given user via the getUserGroups() method. |
boolean |
isGroupListSupported()
Indicates whether the GroupManager supports getting a listing of all groups via the getGroups() method. |
boolean |
isReadOnly()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_BASEDN
public static final java.lang.String PROPERTY_SEARCH
| Constructor Detail |
|---|
public LdapSearchGroupManager()
| Method Detail |
|---|
public Group createGroup(java.lang.String name)
throws GroupAlreadyExistsException
GroupManager
createGroup in interface GroupManagername - the new and unique name for the group.
GroupAlreadyExistsException - if the group name already exists in the system.
public Group createGroup(java.lang.String name,
java.lang.String searchFilter)
throws GroupAlreadyExistsException
GroupAlreadyExistsException
public Group getGroup(long groupID)
throws GroupNotFoundException
GroupManager
getGroup in interface GroupManagerGroupNotFoundException
public Group getGroup(java.lang.String name)
throws GroupNotFoundException
GroupManager
getGroup in interface GroupManagerGroupNotFoundException
public void deleteGroup(Group group)
throws UnauthorizedException
GroupManager
deleteGroup in interface GroupManagergroup - the group to delete.
UnauthorizedException - if not a system administrator.public int getGroupCount()
GroupManager
getGroupCount in interface GroupManagerpublic java.util.Iterator getGroups()
GroupManager
getGroups in interface GroupManager
public java.util.Iterator getGroups(int startIndex,
int numResults)
GroupManager
getGroups in interface GroupManagerstartIndex - 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 GroupManageruser - the user to get a list of groups for.
public boolean isCreateGroupSupported()
IntrospectiveGroupManager
isCreateGroupSupported in interface IntrospectiveGroupManagerpublic boolean isDeleteGroupSupported()
IntrospectiveGroupManager
isDeleteGroupSupported in interface IntrospectiveGroupManagerpublic boolean isGroupListSupported()
IntrospectiveGroupManager
isGroupListSupported in interface IntrospectiveGroupManagerpublic boolean isGetUserGroupsSupported()
IntrospectiveGroupManager
isGetUserGroupsSupported in interface IntrospectiveGroupManagerpublic boolean isReadOnly()
isReadOnly in interface IntrospectiveGroupManagerprotected static DbGroupManager getDbGroupManager()
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||