|
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.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, getGroupIDs, 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 GroupManager
createGroup
in class GroupManagerAdapter
name
- 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 GroupManagerAdapter
GroupNotFoundException
protected Group lookupGroup(long groupID) throws GroupNotFoundException
lookupGroup
in class GroupManagerAdapter
GroupNotFoundException
public void deleteGroup(Group group) throws UnauthorizedException
GroupManager
deleteGroup
in interface GroupManager
deleteGroup
in class GroupManagerAdapter
group
- the group to delete.
UnauthorizedException
- if not a system administrator.public int getGroupCount()
GroupManager
getGroupCount
in interface GroupManager
getGroupCount
in class GroupManagerAdapter
public java.util.Iterator getGroups()
GroupManager
getGroups
in interface GroupManager
getGroups
in class GroupManagerAdapter
public java.util.Iterator getGroups(int startIndex, int numResults)
GroupManager
getGroups
in interface GroupManager
getGroups
in class GroupManagerAdapter
startIndex
- the beginning index to start the results at.numResults
- the total number of results to return.
public boolean isCreateGroupSupported()
isCreateGroupSupported
in interface IntrospectiveGroupManager
isCreateGroupSupported
in class GroupManagerAdapter
public boolean isDeleteGroupSupported()
isDeleteGroupSupported
in interface IntrospectiveGroupManager
isDeleteGroupSupported
in class GroupManagerAdapter
public boolean isGroupListSupported()
isGroupListSupported
in interface IntrospectiveGroupManager
isGroupListSupported
in class GroupManagerAdapter
public boolean isGetUserGroupsSupported()
isGetUserGroupsSupported
in interface IntrospectiveGroupManager
isGetUserGroupsSupported
in class GroupManagerAdapter
protected 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 |