|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GroupManager
Manages groups.
In some cases, you may wish to plug in your own group system implementation. In that case, you should set the Jive property GroupManager.className with the name of your GroupManager class. Your class must have a public, no-argument constructor. The class must also create and return Group object implementations as necessary.
Group| Method Summary | |
|---|---|
Group |
createGroup(String name)
Factory method for creating a new Group. |
void |
deleteGroup(Group group)
Deletes a group from the system. |
void |
deleteUserGroupAssociations(User user)
Deletes all group membership and group administrative associations related to the given user from the system. |
Group |
getGroup(long groupID)
Gets a Group by ID. |
Group |
getGroup(long groupID,
boolean force)
Loads a group by id, optionally forcing a direct lookup in the system of record if the force parameter is true. |
Group |
getGroup(String name)
Gets a Group by name. |
int |
getGroupCount()
Returns the total number of groups in the system. |
Iterable<Group> |
getGroups()
Returns an iterator for all groups in the system. |
Iterable<Group> |
getGroups(int startIndex,
int numResults)
Returns an iterator for all groups starting at startIndex with the given number of results. |
Iterable<Group> |
getUserGroups(User user)
Returns an iterator for all groups that a user is a member of. |
void |
update(Group group)
Updates the given group. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
Group createGroup(String name)
throws GroupAlreadyExistsException
name - the new and unique name for the group.
GroupAlreadyExistsException - if the group name already exists in the system.
Group getGroup(long groupID)
throws GroupNotFoundException
groupID - the id of the group to return
GroupNotFoundException - if the group does not exist.
Group getGroup(String name)
throws GroupNotFoundException
name - the name of the group to return
GroupNotFoundException - if the group does not exist.
Group getGroup(long groupID,
boolean force)
throws GroupNotFoundException
groupID - ID of the group to lookupforce - if true forces a hard lookup bypassing cache
GroupNotFoundException
void deleteGroup(Group group)
throws UnauthorizedException
group - the group to delete.
UnauthorizedException - if not a system administrator.
void deleteUserGroupAssociations(User user)
throws UnauthorizedException
user - the user will no longer be a member of any Group, or administrator of any Group.
UnauthorizedException - if not a system administrator or user administrator.int getGroupCount()
Iterable<Group> getGroups()
Iterable<Group> getGroups(int startIndex,
int numResults)
startIndex - the beginning index to start the results at.numResults - the total number of results to return.
Iterable<Group> getUserGroups(User user)
user - the user to get a list of groups for.
void update(Group group)
throws GroupNotFoundException,
GroupAlreadyExistsException
group - the group to be updated
GroupNotFoundException - if the group could not be loaded to be updated.
GroupAlreadyExistsException - if the group already exists.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||