|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserManager
Methods related to operations on users, but not on their group or role memberships.
| Method Summary | |
|---|---|
SOAPPrincipal |
addUser(SOAPPrincipal user,
PasswordCredential credential)
Adds a user to Crowd. |
java.util.List |
getAllUserNames()
Deprecated. Since 1.4. |
SOAPPrincipal |
getUser(java.lang.String userName)
Given a userName, fetches the user's details, either from cache or from the Crowd server. |
SOAPPrincipal |
getUserFromToken(java.lang.String token)
Given an authentication token, retrieves the user associated with it. |
boolean |
isUser(java.lang.String userName)
Returns true if userName represents a valid user. |
void |
removeUser(java.lang.String userName)
Removes a user from Crowd. |
java.util.List |
searchUsers(SearchRestriction[] restrictions)
Searches the list of all available users based on the passed-in restrictions and returns a list
of users that match. |
void |
updatePassword(java.lang.String userName,
PasswordCredential credential)
Changes the password for the user specified by userName. |
void |
updateUser(SOAPPrincipal user)
Updates a user's details in Crowd. |
| Method Detail |
|---|
boolean isUser(java.lang.String userName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException
true if userName represents a valid user. Will return true if the user is valid
but inactive.
userName -
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
SOAPPrincipal getUser(java.lang.String userName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
ObjectNotFoundException
userName, fetches the user's details, either from cache or from the Crowd server.
userName - The user's identifer
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 - Could not find the user.
SOAPPrincipal getUserFromToken(java.lang.String token)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
InvalidTokenException,
ObjectNotFoundException
token - The token presented by the client browser to the webserver.
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
InvalidTokenException - The token presented was not a valid Crowd token.
ObjectNotFoundException - Could not find the user.
java.util.List searchUsers(SearchRestriction[] restrictions)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException
restrictions and returns a list
of users that match.
restrictions -
List of SOAPPrincipals 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.
SOAPPrincipal addUser(SOAPPrincipal user,
PasswordCredential credential)
throws java.rmi.RemoteException,
ApplicationPermissionException,
InvalidCredentialException,
InvalidUserException,
InvalidAuthorizationTokenException
user - The user to add to Crowdcredential - The credential (eg. password) for the user. May be null.
SOAPPrincipal, 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.
ApplicationPermissionException - The application, not the user, does not have rights to add users.
InvalidUserException - The user was malformed or already exists.
InvalidCredentialException - The credentials were malformed or did not meet directory complexity
requirements.
void updateUser(SOAPPrincipal user)
throws java.rmi.RemoteException,
ObjectNotFoundException,
ApplicationPermissionException,
InvalidAuthorizationTokenException
user - The user 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 user to update could not be found.
ApplicationPermissionException - This application does not have the rights to update the user. Sorry.
void updatePassword(java.lang.String userName,
PasswordCredential credential)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
InvalidCredentialException,
ObjectNotFoundException,
ApplicationPermissionException
userName.
userName - The identifier of the usercredential - The new credentials for the user.
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
InvalidCredentialException - The credentials were malformed or did not meet directory complexity
requirements.
ObjectNotFoundException - The user could not be found in any directory mapped to this application.
ApplicationPermissionException - This application does not have the rights to update the user's password.
Sorry.
void removeUser(java.lang.String userName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
ObjectNotFoundException,
ApplicationPermissionException
userName - The name of the user 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 user to remove could not be found.
ApplicationPermissionException - This application is not allowed to remove this user.
java.util.List getAllUserNames()
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException
searchUsers() instead.
Presenting a drop-down list of 10m users simply won't work.
List of Strings that list all the users 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 | |||||||||