|
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.GroupManagerAdapter
com.jivesoftware.base.database.DbGroupManager
public class DbGroupManager
Database implementation of the GroupManager interface.
| Constructor Summary | |
|---|---|
DbGroupManager()
|
|
| Method Summary | |
|---|---|
Group |
createGroup(long id,
java.lang.String name)
|
Group |
createGroup(java.lang.String name)
Factory method for creating a new Group. |
void |
deleteGroup(Group group)
Deletes a group from the system. |
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. |
boolean |
isCreateGroupSupported()
Indicate that createGroup(String name) is supported by default. |
boolean |
isDeleteGroupSupported()
Indicate that deleteGroup(Group group) is supported by default. |
boolean |
isGetUserGroupsSupported()
Indicate that getUserGroups(User user) is supported by default. |
boolean |
isGroupListSupported()
Indicate that getGroups() is supported by default. |
protected Group |
lookupGroup(long groupID)
|
protected Group |
lookupGroup(java.lang.String name)
|
protected long[] |
lookupGroupsForUser(User user)
|
| Methods inherited from class com.jivesoftware.base.GroupManagerAdapter |
|---|
getGroup, getGroup, getUserGroups, isReadOnly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbGroupManager()
| Method Detail |
|---|
public Group createGroup(java.lang.String name)
throws GroupAlreadyExistsException
GroupManager
createGroup in interface GroupManagercreateGroup in class GroupManagerAdaptername - the new and unique name for the group.
GroupAlreadyExistsException - if the group name already exists in the system.
public Group createGroup(long id,
java.lang.String name)
throws GroupAlreadyExistsException
GroupAlreadyExistsException
protected Group lookupGroup(java.lang.String name)
throws GroupNotFoundException
lookupGroup in class GroupManagerAdapterGroupNotFoundException
protected Group lookupGroup(long groupID)
throws GroupNotFoundException
lookupGroup in class GroupManagerAdapterGroupNotFoundException
public void deleteGroup(Group group)
throws UnauthorizedException
GroupManager
deleteGroup in interface GroupManagerdeleteGroup in class GroupManagerAdaptergroup - the group to delete.
UnauthorizedException - if not a system administrator.public int getGroupCount()
GroupManager
getGroupCount in interface GroupManagergetGroupCount in class GroupManagerAdapterpublic java.util.Iterator getGroups()
GroupManager
getGroups in interface GroupManagergetGroups in class GroupManagerAdapter
public java.util.Iterator getGroups(int startIndex,
int numResults)
GroupManager
getGroups in interface GroupManagergetGroups in class GroupManagerAdapterstartIndex - the beginning index to start the results at.numResults - the total number of results to return.
public boolean isCreateGroupSupported()
isCreateGroupSupported in interface IntrospectiveGroupManagerisCreateGroupSupported in class GroupManagerAdapterpublic boolean isDeleteGroupSupported()
isDeleteGroupSupported in interface IntrospectiveGroupManagerisDeleteGroupSupported in class GroupManagerAdapterpublic boolean isGroupListSupported()
isGroupListSupported in interface IntrospectiveGroupManagerisGroupListSupported in class GroupManagerAdapterpublic boolean isGetUserGroupsSupported()
isGetUserGroupsSupported in interface IntrospectiveGroupManagerisGetUserGroupsSupported in class GroupManagerAdapterprotected long[] lookupGroupsForUser(User user)
lookupGroupsForUser in class GroupManagerAdapter
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||