|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Group
Organizes users into a group for easier permissions management. In this way, groups essentially serve the same purpose that they do in Unix or Windows.
For example, CREATE_THREAD permissions can be set per community. An administrator may wish to create a "Thread Posters" group that has CREATE_THREAD permissions in the community. Then, users can be added to that group and will automatically receive CREATE_THREAD permissions in that community. Security for Group objects is provide by GroupProxy protection proxy objects.
User| Method Summary | |
|---|---|
void |
addAdministrator(User user)
Grants administrator privileges of the group to a user. |
void |
addMember(User user)
Adds a member to the group. |
int |
getAdministratorCount()
Returns the number of group administrators. |
List<User> |
getAdministrators()
An iterator for all the users that are administrators of the group. |
Date |
getCreationDate()
Returns the date that the group was created. |
String |
getDescription()
Returns the description of the group. |
long |
getID()
Returns the id of the group. |
int |
getMemberCount()
Returns the number of group members. |
List<User> |
getMembers()
An iterator for all the users that are members of the group. |
Iterable<User> |
getMembers(int startIndex,
int numResults)
Returns an iterator for all members starting at startIndex with the given number of results. |
Date |
getModificationDate()
Returns the date that the group was last modified. |
String |
getName()
Returns the name of the group. |
Permissions |
getPermissions(AuthToken authToken)
Returns the permissions for the group that correspond to the passed-in AuthToken. |
Map<String,String> |
getProperties()
Retrieve a map of all the extended properties for the group. |
boolean |
isAdministrator(User user)
Returns true if the User has group administrator permissions. |
boolean |
isAuthorized(long permissionType)
Returns true if the handle on the object has the permission specified. |
boolean |
isMember(User user)
Returns true if if the User is a member of the group. |
void |
removeAdministrator(User user)
Revokes administrator privileges of the group to a user. |
void |
removeMember(User user)
Removes a member from the group. |
void |
setCreationDate(Date creationDate)
Sets the creation date of the group. |
void |
setDescription(String description)
Sets the description of the group. |
void |
setModificationDate(Date modificationDate)
Sets the date the group was last modified. |
void |
setName(String name)
Sets the name of the group. |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getObjectType |
| Method Detail |
|---|
long getID()
getID in interface JiveObjectString getName()
void setName(String name)
throws UnauthorizedException
name - the name for the group.
UnauthorizedException - if does not have group administrator permissions.String getDescription()
void setDescription(String description)
throws UnauthorizedException
description - the description of the group.
UnauthorizedException - if does not have group administrator permissions.Date getCreationDate()
void setCreationDate(Date creationDate)
throws UnauthorizedException
creationDate - the date the group was created.
UnauthorizedException - if does not have administrator permissions.Date getModificationDate()
void setModificationDate(Date modificationDate)
throws UnauthorizedException
modificationDate - the date the group was modified.
UnauthorizedException - if does not have administrator permissions.Map<String,String> getProperties()
If the user is not authorized to modify the group any method which modifies the map will fail with a UnsupportedOperationException; Requires update if modified
void addAdministrator(User user)
throws UnauthorizedException
user - the User to grant adminstrative privileges to.
UnauthorizedException - if does not have group administrator permissions.
void removeAdministrator(User user)
throws UnauthorizedException
user - the User to grant adminstrative privileges to.
UnauthorizedException - if does not have group administrator permissions.
void addMember(User user)
throws UnauthorizedException
user - the User to add to the group.
UnauthorizedException - if does not have group administrator permissions.
void removeMember(User user)
throws UnauthorizedException
user - the User to remove from the group.
UnauthorizedException - if does not have group administrator permissions.boolean isAdministrator(User user)
user - User to test.
boolean isMember(User user)
user - User to test.
int getAdministratorCount()
int getMemberCount()
List<User> getMembers()
Iterable<User> getMembers(int startIndex,
int numResults)
startIndex - the beginning index to start the results at.numResults - the total number of results to return.
List<User> getAdministrators()
Permissions getPermissions(AuthToken authToken)
authToken - the auth token to lookup permissions for.
Permissionsboolean isAuthorized(long permissionType)
permissionType - a permission type.
Permissions
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||