|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.service.cache.CachingUserManager
public class CachingUserManager
| Constructor Summary | |
|---|---|
CachingUserManager(SecurityServerClient securityServerClient,
BasicCache basicCache)
|
|
| Method Summary | |
|---|---|
SOAPPrincipal |
addUser(SOAPPrincipal user,
PasswordCredential credential)
Adds a user to Crowd. |
java.util.List |
getAllUserNames()
This optimises the background getAllUserNames() call. |
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)
Note: the lookup is not currently cached - it will always hit the server. |
boolean |
isUser(java.lang.String userName)
With JIRA we're guaranteed that if there are any names in the user list, all the names are in the user list. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingUserManager(SecurityServerClient securityServerClient,
BasicCache basicCache)
| Method Detail |
|---|
public SOAPPrincipal getUser(java.lang.String userName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
ObjectNotFoundException
UserManageruserName, fetches the user's details, either from cache or from the Crowd server.
getUser in interface UserManageruserName - 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.
public SOAPPrincipal getUserFromToken(java.lang.String token)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
InvalidTokenException,
ObjectNotFoundException
getUserFromToken in interface UserManagertoken -
java.rmi.RemoteException
InvalidAuthorizationTokenException
ObjectNotFoundException
InvalidTokenException - The token presented was not a valid Crowd token.
public java.util.List searchUsers(SearchRestriction[] restrictions)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException
UserManagerrestrictions and returns a list
of users that match.
searchUsers in interface UserManagerList 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.
public SOAPPrincipal addUser(SOAPPrincipal user,
PasswordCredential credential)
throws java.rmi.RemoteException,
ApplicationPermissionException,
InvalidCredentialException,
InvalidUserException,
InvalidAuthorizationTokenException
UserManager
addUser in interface UserManageruser - 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.
ApplicationPermissionException - The application, not the user, does not have rights to add users.
InvalidCredentialException - The credentials were malformed or did not meet directory complexity
requirements.
InvalidUserException - The user was malformed or already exists.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
public void updateUser(SOAPPrincipal user)
throws java.rmi.RemoteException,
ObjectNotFoundException,
ApplicationPermissionException,
InvalidAuthorizationTokenException
UserManager
updateUser in interface UserManageruser - The user to update
java.rmi.RemoteException - A communication error occurred - the Crowd server may not be available.
ObjectNotFoundException - The user to update could not be found.
ApplicationPermissionException - This application does not have the rights to update the user. Sorry.
InvalidAuthorizationTokenException - The application (not the user) was not authenticated correctly.
public void updatePassword(java.lang.String userName,
PasswordCredential credential)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
InvalidCredentialException,
ObjectNotFoundException,
ApplicationPermissionException
UserManageruserName.
updatePassword in interface UserManageruserName - 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.
public void removeUser(java.lang.String userName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException,
ObjectNotFoundException,
ApplicationPermissionException
UserManager
removeUser in interface UserManageruserName - 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.
public java.util.List getAllUserNames()
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException
getAllUserNames in interface UserManagerjava.rmi.RemoteException
InvalidAuthorizationTokenException
public boolean isUser(java.lang.String userName)
throws java.rmi.RemoteException,
InvalidAuthorizationTokenException
isUser in interface UserManageruserName -
java.rmi.RemoteException
InvalidAuthorizationTokenException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||