|
Clearspace API (1.10.16) 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(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. |
java.lang.Iterable<Group> |
getGroups()
Returns an iterator for all groups in the system. |
java.lang.Iterable<Group> |
getGroups(int startIndex,
int numResults)
Returns an iterator for all groups starting at startIndex with the given number of results. |
java.lang.Iterable<Group> |
getUserGroups(User user)
Returns an iterator for all groups that a user is a member of. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Method Detail |
|---|
Group createGroup(java.lang.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(java.lang.String name)
throws GroupNotFoundException
name - the name of the group to return
GroupNotFoundException - if the group does not exist.
void deleteGroup(Group group)
throws UnauthorizedException
group - the group to delete.
UnauthorizedException - if not a system administrator.int getGroupCount()
java.lang.Iterable<Group> getGroups()
java.lang.Iterable<Group> getGroups(int startIndex,
int numResults)
startIndex - the beginning index to start the results at.numResults - the total number of results to return.
java.lang.Iterable<Group> getUserGroups(User user)
user - the user to get a list of groups for.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||