|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupManager
Methods related to operations on groups, but not on their users.
Method Summary | |
---|---|
SOAPGroup |
addGroup(SOAPGroup group)
Adds group to the Crowd server. |
java.util.List |
getAllGroupNames()
Deprecated. Since 1.4. |
SOAPGroup |
getGroup(java.lang.String groupName)
Given a groupName , returns a SOAPGroup that represents the group. |
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. |
Method Detail |
---|
boolean isGroup(java.lang.String groupName) throws java.rmi.RemoteException, InvalidAuthorizationTokenException
groupName
represents a valid group, false otherwise.
groupName
- 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.SOAPGroup getGroup(java.lang.String groupName) throws java.rmi.RemoteException, InvalidAuthorizationTokenException, ObjectNotFoundException
groupName
, returns a SOAPGroup
that represents the group. This group object
will not have any membership information associated with it.
groupName
- 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.
ObjectNotFoundException
- The group could not be found.SOAPGroup addGroup(SOAPGroup group) throws java.rmi.RemoteException, InvalidGroupException, InvalidAuthorizationTokenException, ApplicationPermissionException
group
to the Crowd server.
group
- 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.
InvalidAuthorizationTokenException
- The application (not the user) was not authenticated correctly.
InvalidGroupException
- Could not add the group - it may be malformed, or a group with that name may
already exist.
ApplicationPermissionException
- The application, not the user, does not have permission to add groups.java.util.List searchGroups(SearchRestriction[] restrictions) throws java.rmi.RemoteException, InvalidAuthorizationTokenException
restrictions
and returns a list
of groups that match.
restrictions
-
List
of SOAPGroup
s 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.void updateGroup(SOAPGroup group) throws java.rmi.RemoteException, ObjectNotFoundException, ApplicationPermissionException, InvalidAuthorizationTokenException
group
- The group to update
java.rmi.RemoteException
- A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException
- The application (not the user) was not authenticated correctly.
ObjectNotFoundException
- The group to update could not be found.
ApplicationPermissionException
- This application does not have the rights to update the group. Sorry.void removeGroup(java.lang.String groupName) throws java.rmi.RemoteException, InvalidAuthorizationTokenException, ObjectNotFoundException, ApplicationPermissionException
groupName
- 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.
ObjectNotFoundException
- The group to remove could not be found.
ApplicationPermissionException
- This application is not allowed to remove this group.java.util.List getAllGroupNames() throws java.rmi.RemoteException, InvalidAuthorizationTokenException
List
of String
s 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |