|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.rest.service.RestCrowdClient
public class RestCrowdClient
This is the Crowd Client to access REST services on a remote Crowd Server.
| Constructor Summary | |
|---|---|
RestCrowdClient(ClientProperties clientProperties)
Constructs a new REST Crowd Client instance. |
|
| Method Summary | |
|---|---|
void |
addGroup(Group group)
Adds a group to the remote Crowd server. |
void |
addGroupToGroup(java.lang.String childGroup,
java.lang.String parentGroup)
Adds a group to a group. |
void |
addUser(User user,
PasswordCredential passwordCredential)
Adds a new User to the remote Crowd server. |
void |
addUserToGroup(java.lang.String username,
java.lang.String groupName)
Adds a user to a group. |
java.lang.String |
authenticateSSOUser(UserAuthenticationContext userAuthenticationContext)
Authenticates a Single-Sign-On (SSO) User. |
java.lang.String |
authenticateSSOUserWithoutValidatingPassword(UserAuthenticationContext userAuthenticationContext)
Authenticates a Single-Sign-On (SSO) User without validating password. |
User |
authenticateUser(java.lang.String username,
java.lang.String password)
Authenticates a user with the server. |
User |
findUserFromSSOToken(java.lang.String token)
Returns the user from the specified user token. |
java.util.List<Group> |
getChildGroupsOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for groups who are direct members of a group. |
CookieConfiguration |
getCookieConfiguration()
Returns the cookie configuration. |
Group |
getGroup(java.lang.String name)
Get a group by name. |
java.util.List<Group> |
getGroupsForNestedUser(java.lang.String userName,
int startIndex,
int maxResults)
Searches for groups that a user is a nested member of. |
java.util.List<Group> |
getGroupsForUser(java.lang.String userName,
int startIndex,
int maxResults)
Searches for groups that a user is a direct member of. |
GroupWithAttributes |
getGroupWithAttributes(java.lang.String name)
Gets a group with attributes by name. |
java.util.List<java.lang.String> |
getNamesOfChildGroupsOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for groups who are direct members of a group, returning the group names. |
java.util.List<java.lang.String> |
getNamesOfGroupsForNestedUser(java.lang.String userName,
int startIndex,
int maxResults)
Searches for groups that a user is a nested member of, returning the group names. |
java.util.List<java.lang.String> |
getNamesOfGroupsForUser(java.lang.String userName,
int startIndex,
int maxResults)
Searches for groups that a user is a direct member of, returning the group names. |
java.util.List<java.lang.String> |
getNamesOfNestedChildGroupsOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for groups who are nested members of a group, returning the group names. |
java.util.List<java.lang.String> |
getNamesOfNestedUsersOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for users who are nested members of a group, returning the user names. |
java.util.List<java.lang.String> |
getNamesOfParentGroupsForGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for groups that a group is a direct member of, returning the group names. |
java.util.List<java.lang.String> |
getNamesOfParentGroupsForNestedGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for groups that a group is a nested member of, returning the group names. |
java.util.List<java.lang.String> |
getNamesOfUsersOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for users who are direct members of a group, returning the user names. |
java.util.List<Group> |
getNestedChildGroupsOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for groups who are nested members of a group. |
java.util.List<User> |
getNestedUsersOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for users who are nested members of a group. |
java.util.List<Group> |
getParentGroupsForGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for groups that a group is a direct member of. |
java.util.List<Group> |
getParentGroupsForNestedGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for groups that a group is a nested member of. |
User |
getUser(java.lang.String name)
Gets a User by user name. |
java.util.List<User> |
getUsersOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
Searches for users who are direct members of a group. |
UserWithAttributes |
getUserWithAttributes(java.lang.String name)
Gets a User with Attributes by user name. |
void |
invalidateSSOToken(java.lang.String token)
Invalidates a token. |
boolean |
isGroupDirectGroupMember(java.lang.String childName,
java.lang.String parentName)
Tests if a group is a direct member of a group. |
boolean |
isUserDirectGroupMember(java.lang.String username,
java.lang.String groupName)
Tests if a user is a direct member of a group. |
boolean |
isUserNestedGroupMember(java.lang.String username,
java.lang.String groupName)
Tests if a user is a nested member of a group. |
void |
removeGroup(java.lang.String groupName)
Removes a group from the remote Crowd server |
void |
removeGroupAttributes(java.lang.String groupName,
java.lang.String attributeName)
Removes a group attribute (set) from the server. |
void |
removeGroupFromGroup(java.lang.String childGroup,
java.lang.String parentGroup)
Removes a group to a group. |
void |
removeUser(java.lang.String username)
Removes a user from the remote Crowd server |
void |
removeUserAttributes(java.lang.String username,
java.lang.String attributeName)
Removes a user attribute from the server. |
void |
removeUserFromGroup(java.lang.String username,
java.lang.String groupName)
Removes a user from a group. |
void |
requestPasswordReset(java.lang.String username)
Requests a password reset. |
void |
requestUsernames(java.lang.String email)
Sends the usernames associated with the given email address. |
java.util.List<java.lang.String> |
searchGroupNames(SearchRestriction searchRestriction,
int startIndex,
int maxResults)
Searches for group names matching the searchRestriction criteria. |
java.util.List<Group> |
searchGroups(SearchRestriction searchRestriction,
int startIndex,
int maxResults)
Searches for groups matching the following criteria. |
java.util.List<java.lang.String> |
searchUserNames(SearchRestriction searchRestriction,
int startIndex,
int maxResults)
Searches for usernames matching the searchRestriction criteria. |
java.util.List<User> |
searchUsers(SearchRestriction searchRestriction,
int startIndex,
int maxResults)
Searches for users matching the following criteria. |
void |
storeGroupAttributes(java.lang.String groupName,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
Stores the group's attributes on the remote Crowd server. |
void |
storeUserAttributes(java.lang.String username,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
Stores the user's attributes on the remote Crowd server. |
void |
testConnection()
Tests if the connection is OK. |
void |
updateGroup(Group group)
Updates a group on the remote Crowd server. |
void |
updateUser(User user)
Updates a user on the remote Crowd server. |
void |
updateUserCredential(java.lang.String username,
java.lang.String password)
Updates the user's password on the remote Crowd server. |
void |
validateSSOAuthentication(java.lang.String token,
java.util.List<ValidationFactor> validationFactors)
Validates the SSO authentication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestCrowdClient(ClientProperties clientProperties)
clientProperties - crowd properties for the client| Method Detail |
|---|
public User getUser(java.lang.String name)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getUser in interface CrowdClientname - Name of the user to retrieve
UserNotFoundException - if the user is not found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public UserWithAttributes getUserWithAttributes(java.lang.String name)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getUserWithAttributes in interface CrowdClientname - Name of the user to retrieve
UserNotFoundException - if the user is not found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public User authenticateUser(java.lang.String username,
java.lang.String password)
throws UserNotFoundException,
InactiveAccountException,
ExpiredCredentialException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
authenticateUser in interface CrowdClientusername - Name of the user to authenticate.password - Password of the user to authenticate.
UserNotFoundException - if the user could not be found
InactiveAccountException - if the user account is not active
ExpiredCredentialException - if the user credentials have expired
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void addUser(User user,
PasswordCredential passwordCredential)
throws ApplicationPermissionException,
InvalidUserException,
InvalidCredentialException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
addUser in interface CrowdClientuser - The user to addpasswordCredential - user password
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidUserException - if the user is invalid. This may be because a user of the same name
already exists, or does not pass the server side validation rules.
InvalidCredentialException - if the password is invalid. It must conform to the rules set on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void updateUser(User user)
throws InvalidUserException,
UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
updateUser in interface CrowdClientuser - The user to update
InvalidUserException - the details of the user to be updated are invalid. This may be because the user details
do not pass the server side validation rules.
UserNotFoundException - if the user does not exist on the remote Crowd server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void updateUserCredential(java.lang.String username,
java.lang.String password)
throws InvalidCredentialException,
UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
updateUserCredential in interface CrowdClientusername - Name of the user to update.password - New password.
InvalidCredentialException - if the password is invalid. It must conform to the rules set on the server
UserNotFoundException - if the user does not exist on the remote Crowd server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void requestPasswordReset(java.lang.String username)
throws UserNotFoundException,
InvalidEmailAddressException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
requestPasswordReset in interface CrowdClientusername - name of the user
UserNotFoundException - if the user does not exist
InvalidEmailAddressException - if the user does not have a valid email to send the reset password link to
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void requestUsernames(java.lang.String email)
throws InvalidEmailAddressException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClientemail.
requestUsernames in interface CrowdClientemail - email address of the user
InvalidEmailAddressException - if the email is not valid
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void storeUserAttributes(java.lang.String username,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
storeUserAttributes in interface CrowdClientusername - Name of the user.attributes - Set of Attributes to store. Attributes will be added or if an attribute with the
same key exists will be replaced.
UserNotFoundException - if the user does not exist on the remote Crowd server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void removeUserAttributes(java.lang.String username,
java.lang.String attributeName)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
removeUserAttributes in interface CrowdClientusername - Name of the userattributeName - Attribute key.
UserNotFoundException - if the user does not exist on the remote Crowd server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void removeUser(java.lang.String username)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
removeUser in interface CrowdClientusername - Name of the user to remove.
UserNotFoundException - if the user does not exist on the remote Crowd server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public Group getGroup(java.lang.String name)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
getGroup in interface CrowdClientname - name of the group to retrieve.
GroupNotFoundException - The group does not exist on the remote server.
OperationFailedException - For any other communication errors.
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
public GroupWithAttributes getGroupWithAttributes(java.lang.String name)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getGroupWithAttributes in interface CrowdClientname - name of the group to retrieve.
GroupNotFoundException - if the group does not exist on the remote server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void addGroup(Group group)
throws InvalidGroupException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
addGroup in interface CrowdClientgroup - Group to add.
InvalidGroupException - if the group is invalid. This may be because a group of the same name already exists, or
does not pass the server side validation rules
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void updateGroup(Group group)
throws InvalidGroupException,
GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
updateGroup in interface CrowdClientgroup - Group to update.
InvalidGroupException - The group is invalid. This may be because the group
does not pass the server side validation rules.
GroupNotFoundException - if the group does not exist on the remote server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void storeGroupAttributes(java.lang.String groupName,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
storeGroupAttributes in interface CrowdClientgroupName - Name of the group.attributes - Set of Attributes to store. Attributes will be added or if an attribute with the
same key exists will be replaced.
GroupNotFoundException - if the group does not exist on the remote Crowd server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void removeGroupAttributes(java.lang.String groupName,
java.lang.String attributeName)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
removeGroupAttributes in interface CrowdClientgroupName - Name of the groupattributeName - Attribute key.
GroupNotFoundException - the group does not exist on the remote Crowd server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void removeGroup(java.lang.String groupName)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
removeGroup in interface CrowdClientgroupName - Name of the group to remove.
GroupNotFoundException - the group does not exist on the remote Crowd server
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public boolean isUserDirectGroupMember(java.lang.String username,
java.lang.String groupName)
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
isUserDirectGroupMember in interface CrowdClientusername - User namegroupName - Group Name
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public boolean isUserNestedGroupMember(java.lang.String username,
java.lang.String groupName)
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
isUserNestedGroupMember in interface CrowdClientusername - User namegroupName - Group Name
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public boolean isGroupDirectGroupMember(java.lang.String childName,
java.lang.String parentName)
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
isGroupDirectGroupMember in interface CrowdClientchildName - Name of the child groupparentName - Name of the Parent group
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void addUserToGroup(java.lang.String username,
java.lang.String groupName)
throws GroupNotFoundException,
UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
addUserToGroup in interface CrowdClientusername - Name of the user to add to the group.groupName - Name of the group to be added to.
GroupNotFoundException - if the group does not exist.
UserNotFoundException - if the user does not exist.
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void addGroupToGroup(java.lang.String childGroup,
java.lang.String parentGroup)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
addGroupToGroup in interface CrowdClientchildGroup - Name of the group to add to the parent group.parentGroup - Name of the group the child will be added to.
GroupNotFoundException - if either group does not exist
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void removeUserFromGroup(java.lang.String username,
java.lang.String groupName)
throws MembershipNotFoundException,
GroupNotFoundException,
UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
removeUserFromGroup in interface CrowdClientusername - Name of the user to add to the group.groupName - Name of the group to be added to.
MembershipNotFoundException - if the membership does not exist
GroupNotFoundException - if the group does not exist.
UserNotFoundException - if the user does not exist.
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void removeGroupFromGroup(java.lang.String childGroup,
java.lang.String parentGroup)
throws MembershipNotFoundException,
GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
removeGroupFromGroup in interface CrowdClientchildGroup - Name of the group to be removed from the parent group.parentGroup - Name of the group the child group will be removed from.
MembershipNotFoundException - if there is not parent-child relationship between the specified groups
GroupNotFoundException - if either group does not exist.
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if for some reason the operation has failed
public void testConnection()
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
testConnection in interface CrowdClientApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the test fails
public java.util.List<User> searchUsers(SearchRestriction searchRestriction,
int startIndex,
int maxResults)
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
searchUsers in interface CrowdClientsearchRestriction - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> searchUserNames(SearchRestriction searchRestriction,
int startIndex,
int maxResults)
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
searchUserNames in interface CrowdClientsearchRestriction - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<Group> searchGroups(SearchRestriction searchRestriction,
int startIndex,
int maxResults)
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
searchGroups in interface CrowdClientsearchRestriction - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> searchGroupNames(SearchRestriction searchRestriction,
int startIndex,
int maxResults)
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
searchGroupNames in interface CrowdClientsearchRestriction - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<User> getUsersOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getUsersOfGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> getNamesOfUsersOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNamesOfUsersOfGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<Group> getChildGroupsOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getChildGroupsOfGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> getNamesOfChildGroupsOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNamesOfChildGroupsOfGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<Group> getGroupsForUser(java.lang.String userName,
int startIndex,
int maxResults)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getGroupsForUser in interface CrowdClientuserName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
UserNotFoundException - if the user could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> getNamesOfGroupsForUser(java.lang.String userName,
int startIndex,
int maxResults)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNamesOfGroupsForUser in interface CrowdClientuserName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
UserNotFoundException - if the user could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<Group> getParentGroupsForGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getParentGroupsForGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> getNamesOfParentGroupsForGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNamesOfParentGroupsForGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<User> getNestedUsersOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNestedUsersOfGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> getNamesOfNestedUsersOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNamesOfNestedUsersOfGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<Group> getNestedChildGroupsOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNestedChildGroupsOfGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> getNamesOfNestedChildGroupsOfGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNamesOfNestedChildGroupsOfGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<Group> getGroupsForNestedUser(java.lang.String userName,
int startIndex,
int maxResults)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getGroupsForNestedUser in interface CrowdClientuserName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
UserNotFoundException - if the user could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> getNamesOfGroupsForNestedUser(java.lang.String userName,
int startIndex,
int maxResults)
throws UserNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNamesOfGroupsForNestedUser in interface CrowdClientuserName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
UserNotFoundException - if the user could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<Group> getParentGroupsForNestedGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getParentGroupsForNestedGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.util.List<java.lang.String> getNamesOfParentGroupsForNestedGroup(java.lang.String groupName,
int startIndex,
int maxResults)
throws GroupNotFoundException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getNamesOfParentGroupsForNestedGroup in interface CrowdClientgroupName - restriction on the searchstartIndex - starting index of the search resultsmaxResults - maximum number of results returned from the search
GroupNotFoundException - if the group could not be found
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server.
InvalidAuthenticationException - if the application and password are not valid.
OperationFailedException - if the operation has failed for an unknown reason
public User findUserFromSSOToken(java.lang.String token)
throws InvalidTokenException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
findUserFromSSOToken in interface CrowdClienttoken - user token used to find the authenticated user.
InvalidTokenException - if the provided token is not valid
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.lang.String authenticateSSOUser(UserAuthenticationContext userAuthenticationContext)
throws ApplicationAccessDeniedException,
ExpiredCredentialException,
InactiveAccountException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
authenticateSSOUser in interface CrowdClientuserAuthenticationContext - the user's authentication details.
ApplicationAccessDeniedException - if the user does not have access to authenticate against the application
ExpiredCredentialException - if the user password has expired and the user is required to change their password
InactiveAccountException - if the user account is inactive
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public java.lang.String authenticateSSOUserWithoutValidatingPassword(UserAuthenticationContext userAuthenticationContext)
throws ApplicationAccessDeniedException,
InactiveAccountException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
authenticateSSOUserWithoutValidatingPassword in interface CrowdClientuserAuthenticationContext - the user's authentication details.
ApplicationAccessDeniedException - if the user does not have access to authenticate against the application
InactiveAccountException - if the user account has expired
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void validateSSOAuthentication(java.lang.String token,
java.util.List<ValidationFactor> validationFactors)
throws InvalidTokenException,
ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
validateSSOAuthentication in interface CrowdClienttoken - Crowd SSO tokenvalidationFactors - Details of where the user's come from. If presented, must match those presented during authentication.
InvalidTokenException - if the supplied token is not valid
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public void invalidateSSOToken(java.lang.String token)
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
invalidateSSOToken in interface CrowdClienttoken - token to invalidate
ApplicationPermissionException - if the application is not permitted to perform the requested operation on the server
InvalidAuthenticationException - if the application and password are not valid
OperationFailedException - if the operation has failed for an unknown reason
public CookieConfiguration getCookieConfiguration()
throws ApplicationPermissionException,
InvalidAuthenticationException,
OperationFailedException
CrowdClient
getCookieConfiguration in interface CrowdClientApplicationPermissionException - if the application is not permitted to perform the requested operation on the server.
InvalidAuthenticationException - if the application and password are not valid.
OperationFailedException - if the operation has failed for an unknown reason
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||