|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.service.cache.CachingGroupManager
public class CachingGroupManager
Handles group names & groups themselves.
| Constructor Summary | |
|---|---|
CachingGroupManager(SecurityServerClient securityServerClient,
BasicCache basicCache)
|
|
| Method Summary | |
|---|---|
SOAPGroup |
addGroup(SOAPGroup group)
Adds group to the Crowd server. |
java.util.List |
getAllGroupNames()
Returns a list of all available groups. |
SOAPGroup |
getGroup(java.lang.String groupName)
See also CachingGroupMembershipManager.getMembers(String)} for similar logic. |
boolean |
isGroup(java.lang.String groupName)
Returns true if groupName represents a valid group, false otherwise. |
void |
removeGroup(java.lang.String groupName)
Removes a group from Crowd. |
java.util.List |
searchGroups(SearchRestriction[] restrictions)
Searches the list of all available groups based on the passed-in restrictions and returns a list
of groups that match. |
void |
updateGroup(SOAPGroup group)
Updates a group's details in Crowd. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingGroupManager(SecurityServerClient securityServerClient,
BasicCache basicCache)
| Method Detail |
|---|
public boolean isGroup(java.lang.String groupName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
InvalidAuthenticationException
GroupManagergroupName represents a valid group, false otherwise.
isGroup in interface GroupManagergroupName - The name to check
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
InvalidAuthenticationException - application authentication is not valid
public SOAPGroup getGroup(java.lang.String groupName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
InvalidAuthenticationException,
GroupNotFoundException
CachingGroupMembershipManager.getMembers(String)} for similar logic.
getGroup in interface GroupManagergroupName - The name of the group to fetch
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
InvalidAuthenticationException - application authentication is not valid
GroupNotFoundException - The group could not be found.
public SOAPGroup addGroup(SOAPGroup group)
throws java.rmi.RemoteException,
InvalidGroupException,
InvalidAuthorizationTokenException,
ApplicationPermissionException,
InvalidAuthenticationException
GroupManagergroup to the Crowd server.
addGroup in interface GroupManagergroup - The object containing the details of the group.
SOAPGroup, as returned by the Crowd server.
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidGroupException - Could not add the group - it may be malformed, or a group with that name may already exist.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
ApplicationPermissionException - The application does not have permission to add groups.
InvalidAuthenticationException - application authentication is not valid
public java.util.List searchGroups(SearchRestriction[] restrictions)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
InvalidAuthenticationException
GroupManagerrestrictions and returns a list
of groups that match.
searchGroups in interface GroupManagerrestrictions - search restrictions
List of SOAPGroups that match the criteria.
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
InvalidAuthenticationException - application authentication is not valid
public void updateGroup(SOAPGroup group)
throws java.rmi.RemoteException,
ApplicationPermissionException,
InvalidAuthorizationTokenException,
InvalidAuthenticationException,
GroupNotFoundException
GroupManager
updateGroup in interface GroupManagergroup - The group to update
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
ApplicationPermissionException - The application does not have permission to update groups.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
InvalidAuthenticationException - application authentication is not valid
GroupNotFoundException - The group to update could not be found.
public void removeGroup(java.lang.String groupName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
ApplicationPermissionException,
InvalidAuthenticationException,
GroupNotFoundException
GroupManager
removeGroup in interface GroupManagergroupName - The name of the group to remove.
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
ApplicationPermissionException - The application does not have permission to remove groups.
InvalidAuthenticationException - application authentication is not valid
GroupNotFoundException - The group to remove could not be found.
public java.util.List getAllGroupNames()
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
InvalidAuthenticationException
GroupManager
getAllGroupNames in interface GroupManagerList of Strings that list all the groups visible to this application.
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
InvalidAuthenticationException - application authentication is not valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||