public interface UserManager
UserManager
API exposes the methods to manage a user. To
manage a user, it provides functionality to create, modify, enable, disable,
delete, lock, unlock , getting/setting the challenge questions& answers , change/reset password of the user.
It also provides the support for bulk
modify, enable, disable, delete, lock and unlock user operations. Apart from
basic user operations, there are proxy related operations to get user's proxy
details and assign, remove and update the proxy of a user.Modifier and Type | Method and Description |
---|---|
long |
addProxyForUser(java.lang.String userID,
long proxyUserKey,
java.util.Date startDate,
java.util.Date endDate,
boolean isUserLogin)
Deprecated.
The preferred way to do this is via
UserManager.addProxyForUser(String, String, Date, Date, boolean) |
java.lang.String |
addProxyForUser(java.lang.String userID,
java.lang.String proxyUserID,
java.util.Date startDate,
java.util.Date endDate,
boolean isUserLogin)
Adds/Sets proxy for user in OIM.
|
void |
changePassword(java.lang.String userID,
char[] password,
boolean isUserLogin)
Deprecated.
This API does not support option for email notification. The
preferred way to do this is via
UserManager.changePassword(String, char[], boolean, boolean)
Changes the user's password. |
void |
changePassword(java.lang.String userID,
char[] password,
boolean isUserLogin,
boolean sendNotification)
Changes the user's password.
|
void |
changePassword(java.lang.String userID,
char[] password,
boolean isUserLogin,
java.util.Locale locale,
boolean setPasswordResetFlag)
Deprecated.
This API does not support option for email notification. The
preferred way to do this is via
UserManager.changePassword(String, char[], boolean, Locale, boolean, boolean) |
void |
changePassword(java.lang.String userID,
char[] password,
boolean isUserLogin,
java.util.Locale locale,
boolean setPasswordResetFlag,
boolean sendNotification)
Changes the user's password.
|
void |
changePassword(java.lang.String attributeName,
java.lang.Object attributeValue,
char[] password)
Deprecated.
This API does not support option for email notification. The
preferred way to do this is via
UserManager.changePassword(String, Object, char[], boolean)
Changes the user's password. |
void |
changePassword(java.lang.String attributeName,
java.lang.Object attributeValue,
char[] password,
boolean sendNotification)
Changes the user's password.
|
UserManagerResult |
create(User user)
This method creates a user
|
UserManagerResult |
create(User user,
java.util.Map controls)
This method creates a user
it takes a Map of additional control parameters wihch could be used
for performing additional opreration along with creating user.
|
UserManagerResult |
delete(java.util.ArrayList userIDs,
boolean isUserLogin)
Bulk delete operation.
|
UserManagerResult |
delete(java.lang.String userID,
boolean isUserLogin)
Marks the user as deleted.
|
UserManagerResult |
delete(java.lang.String attributeName,
java.lang.Object attributeValue)
Marks the user matching the specified search criteria as deleted.
|
UserManagerResult |
disable(java.util.ArrayList userIDs,
boolean isUserLogin)
Bulk disable operation.
|
UserManagerResult |
disable(java.lang.String userID,
boolean isUserLogin)
Disables the user.
|
UserManagerResult |
disable(java.lang.String attributeName,
java.lang.Object attributeValue)
Disables the user account matching the search criteria.
|
UserManagerResult |
enable(java.util.ArrayList userIDs,
boolean isUserLogin)
Bulk enable operation.
|
UserManagerResult |
enable(java.lang.String userID,
boolean isUserLogin)
Enables the user account.
|
UserManagerResult |
enable(java.lang.String attributeName,
java.lang.Object attributeValue)
Enables the user matching the search criteria.
|
java.lang.String |
generateUserName(java.util.Map attrMap)
Suggest a username based on OIM's default username policy.
|
java.lang.String |
generateUserName(java.lang.String policyID,
java.util.Map attrMap)
Suggest a username based on the given username policy.
|
java.lang.String |
generateUserNameFromDefaultPolicy(java.util.Map attrMap)
Suggest a username based on OIM's default username policy.
|
java.lang.String |
generateUserNameFromPolicy(java.lang.String policyId,
java.util.Map attrMap)
Suggest a username based on the given username policy.
|
java.util.List |
getActiveProxies(java.lang.String userID,
boolean isUserLogin) |
java.util.List |
getAllProxies(java.lang.String userID,
boolean isUserLogin)
Gets a list of the all the proxy for the given user
|
java.util.List |
getAllUserNamePolicies(java.util.Locale locale)
Gives the details of all the username policies configured in OIM.
|
java.util.List |
getCurrentProxies(java.lang.String userID,
boolean isUserLogin)
Returns the current proxy details of the specified user
|
User |
getDetails(java.lang.String attributeName,
java.lang.Object attributeValue,
java.util.Set retAttrs)
Returns the profile details of the specified user.
|
User |
getDetails(java.lang.String userID,
java.util.Set retAttrs,
boolean isUserLogin)
Returns the profile details of the specified user.
|
User |
getDetails(java.lang.String userID,
java.util.Set retAttrs,
boolean isUserLogin,
OperationContext opContext)
Returns the profile details of the specified user.
|
java.util.List |
getPastProxies(java.lang.String userID,
boolean isUserLogin)
Returns the past proxy details of the specified user
|
java.lang.String |
getPolicyDescription(java.lang.String policyID,
java.util.Locale locale)
Gives the details of the username policy configured in OIM with the given ID
|
java.util.Map |
getUserChallengeValues(java.lang.String userID,
boolean isUserLogin)
API for system administrators to fetch challenge questions and masked answers for a given user.
|
java.util.List |
getUsersAssigned(java.lang.String adminRoleId,
java.util.Set retAttrs,
java.util.HashMap configParams)
Returns the list of User identities assigned to the admin-role
|
java.util.List |
getUsersAssignedWithScope(java.lang.String adminRoleId,
java.util.Set retAttrs,
java.util.HashMap configParams,
java.lang.String scopeId)
Returns the list of User identities assigned to the admin-role
|
boolean |
isUserNameValid(java.lang.String userName,
java.util.Map attrMap)
Check the validity of the given username based on default policy.
|
boolean |
isUserNameValid(java.lang.String userName,
java.lang.String policyID,
java.util.Map attrMap)
Check the validity of the given username based on given policy.
|
boolean |
isUserNameValidForDefaultPolicy(java.lang.String userName,
java.util.Map attrMap)
Check the validity of the given username based on default policy.
|
boolean |
isUserNameValidForPolicy(java.lang.String userName,
java.lang.String policyId,
java.util.Map attrMap)
Check the validity of the given username based on specified policy.
|
UserManagerResult |
lock(java.util.ArrayList userIDs,
boolean isUserLogin)
Bulk lock operation, locks all the users specified.
|
UserManagerResult |
lock(java.util.ArrayList userIDs,
boolean manualFlag,
boolean isUserLogin)
Deprecated.
Please see
#lock(ArrayList |
UserManagerResult |
lock(java.lang.String userID,
boolean isUserLogin)
Locks the OIM user.
|
UserManagerResult |
lock(java.lang.String userID,
boolean manualFlag,
boolean isUserLogin)
Deprecated.
Please see
UserManager.lock(String, boolean) |
UserManagerResult |
lock(java.lang.String attributeName,
java.lang.Object attributeValue)
Locks the OIM user(s) matching the search criteria.
|
UserManagerResult |
lock(java.lang.String attributeName,
java.lang.Object attributeValue,
boolean manualFlag)
Deprecated.
Please see
UserManager.lock(String, Object) |
UserManagerResult |
modify(java.util.ArrayList userIDs,
java.util.HashMap args,
boolean isUserLogin)
Modifies users in bulk.
|
UserManagerResult |
modify(java.lang.String attributeName,
java.lang.Object attributeValue,
User user)
This method updates an existing user, matching the specified search criteria, with the values
specified.
|
UserManagerResult |
modify(User user)
This method updates the 'user' with the values in the passed VO.
|
void |
removeAllProxiesForUser(java.lang.String userID,
boolean isUserLogin)
Removes all proxies for user.
|
void |
removeProxy(java.lang.String userID,
long proxyKey,
boolean isUserLogin)
Deprecated.
Please use
UserManager.removeProxy(String, String, boolean ) instead |
void |
removeProxy(java.lang.String userID,
long proxyKey,
java.util.Map attrMap,
boolean isUserLogin)
Deprecated.
|
void |
removeProxy(java.lang.String userID,
java.lang.String proxyID,
boolean isUserLogin)
Removes a single proxy (identified by ID
proxyID ) for the
given user (identified by userID). |
void |
resetPassword(java.lang.String userID,
boolean isUserLogin)
Resets the password of an user to a randomly generated password.
|
void |
resetPassword(java.lang.String userID,
boolean isUserLogin,
boolean sendNotification)
Resets the password of an user to a randomly generated password.
|
void |
resetPassword(java.lang.String userID,
boolean isUserLogin,
java.util.Map controls)
Resets user's existing password to a new automatically generated password
It takes a Map control parameters to perform additional operation.
|
java.util.List |
search(SearchCriteria criteria,
java.util.Set retAttrs,
java.util.HashMap configParams)
Searches for users matching the specified
SearchCriteria . |
void |
setUserChallengeValues(java.lang.String userID,
boolean isUserLogin,
java.util.HashMap quesAnsMap)
API for system administrators to set/nuke challenge question and answer of a given user
|
UserManagerResult |
unlock(java.util.ArrayList userIDs,
boolean isUserLogin)
Bulk unlock operation.
|
UserManagerResult |
unlock(java.lang.String userID,
boolean isUserLogin)
Unlocks the OIM user.
|
UserManagerResult |
unlock(java.lang.String attributeName,
java.lang.Object attributeValue)
Unlocks the OIM user matching the search criteria
|
void |
updateProxyForUser(long pxdKey,
java.util.Map attribute)
Deprecated.
The preferred way to do this is via
UserManager.updateProxyForUser(String, Map ) |
void |
updateProxyForUser(java.lang.String proxyID,
java.util.Map attribute)
Updates the proxy with ID
proxyID Only proxy user, start
date and/or end date can be modified for the given proxy. |
UserManagerResult create(User user) throws ValidationFailedException, AccessDeniedException, UserAlreadyExistsException, UserCreateException
user
- This VO contains the attributes for the user to be created
Challenge questions/answers could be passed in the same vo
in key 'Challenge Questions Answers'; if client wants to set
challenge questions/answers at the time of user creation.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserAlreadyExistsException
- if the login id of the user is not available.UserCreateException
- if the orchestration fails while creating the user.UserManagerResult create(User user, java.util.Map controls) throws ValidationFailedException, AccessDeniedException, UserAlreadyExistsException, UserCreateException
user
- This VO contains the attributes for the user to be createdcontrols
- This Map contains control parameters used for performing
additional opreration along with creating user.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserAlreadyExistsException
- if the login id of the user is not available.UserCreateException
- if the orchestration fails for create operation.UserManagerResult modify(java.lang.String attributeName, java.lang.Object attributeValue, User user) throws ValidationFailedException, AccessDeniedException, UserModifyException, NoSuchUserException, SearchKeyNotUniqueException
attributeName
- - The attribute name for the search criteria.attributeValue
- - The attribute value for the search criteria.user
- The attributes and values to update the user with.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserModifyException
- if the orchestration fails for modify operation.NoSuchUserException
- if the specified search criteria doesn't returns a valid userSearchKeyNotUniqueException
- if there is more than one user matching the search criteria.UserManagerResult modify(User user) throws ValidationFailedException, AccessDeniedException, UserModifyException, NoSuchUserException
user
- The User VO containing the details of the user to be updatedValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserModifyException
- if the orchestration fails for modify operation.NoSuchUserException
- if the specified search criteria doesn't returns a valid user.UserManagerResult modify(java.util.ArrayList userIDs, java.util.HashMap args, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserModifyException, NoSuchUserException
userIDs
list are updated with value of all bulk modifiable
attribute specified in the map.userIDs
- The ids of the users whose profiles are to be updated.
The isUserLogin
flag will decide what does userID contains. *args
- The common set of attributes and values to update the users with.isUserLogin
- Set to true if the userID contains user login and false if the userID
contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserModifyException
- if the orchestration fails for modify operation.NoSuchUserException
- if the user with given key is not found.UserManagerResult delete(java.lang.String userID, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserDeleteException, NoSuchUserException
userID
- The id of the user to be marked for deletion.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserDeleteException
- if the orchestration fails for delete operation.NoSuchUserException
- if the user with given key is not found.UserManagerResult delete(java.lang.String attributeName, java.lang.Object attributeValue) throws ValidationFailedException, AccessDeniedException, UserDeleteException, NoSuchUserException, SearchKeyNotUniqueException
attributeName
- - The attribute name for the search criteria.attributeValue
- - The attribute value for the search criteria.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserDeleteException
- if the orchestration fails for delete operation.NoSuchUserException
- if the user with given key is not found.SearchKeyNotUniqueException
- if there is more than one user of the search criteria.UserManagerResult delete(java.util.ArrayList userIDs, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserDeleteException, NoSuchUserException
userIDs
- The ids of the user to be marked for deletion.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserDeleteException
- if the orchestration fails for delete operation.NoSuchUserException
- if the user with given key is not found.User getDetails(java.lang.String userID, java.util.Set retAttrs, boolean isUserLogin) throws AccessDeniedException, NoSuchUserException, UserLookupException
userID
- The id of the user who's details are required.
The isUserLogin flag will decide what does userID contains.retAttrs
- The list of attributes which are to be returned for each user.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.retAttrs
of the user is returned otherwise
NoSuchUserException
exception is thrown.AccessDeniedException
- if the logged-in user does not have the required authorization.NoSuchUserException
- if the user does not exist.UserLookupException
- if the user lookup operation fails.User getDetails(java.lang.String userID, java.util.Set retAttrs, boolean isUserLogin, OperationContext opContext) throws AccessDeniedException, NoSuchUserException, UserLookupException
userID
- The id of the user who's details are required.
The isUserLogin flag will decide what does userID contains.retAttrs
- The list of attributes which are to be returned for each user.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.opContext
- The context of the request.retAttrs
of the user is returned otherwise
NoSuchUserException
exception is thrown.AccessDeniedException
- if the logged-in user does not have the required authorization.NoSuchUserException
- if the user does not exist.UserLookupException
- if the user lookup operation fails.User getDetails(java.lang.String attributeName, java.lang.Object attributeValue, java.util.Set retAttrs) throws AccessDeniedException, NoSuchUserException, UserLookupException, SearchKeyNotUniqueException
attributeName
- - The attribute name for the search criteria.attributeValue
- - The attribute value for the search criteria.retAttrs
- The list of attributes which are to be returned for each user.retAttrs
of the user is returned otherwise
NoSuchUserException
exception is thrown.AccessDeniedException
- if the logged-in user does not have the required authorization.NoSuchUserException
- if the user does not exist.UserLookupException
- if the user lookup operation fails.SearchKeyNotUniqueException
- if there is more than one user of the search criteriajava.util.List search(SearchCriteria criteria, java.util.Set retAttrs, java.util.HashMap configParams) throws AccessDeniedException, UserSearchException
SearchCriteria
.criteria
- The search criteria based on which entries will be retrieved from
the backend. The SearchCriteria Operators supported are AND, OR,
NOT, GREATER_THAN, GREATER_EQUAL, LESS_THAN, LESS_EQUAL, EQUAL and
NOT_EQUAL. For additional comparisons like contains the
SearchCriteria Operator will be EQUAL with value to be searched
will be '*<value>*'retAttrs
- The list of attributes which are to be returned for each user.
The list will be further filtered based on the authroization policies.configParams
- Parameters to further configure the search operation. There are
four configuration parameters. STARTROW, ENDROW, SORTEDBY and
SORTORDER.
The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
AccessDeniedException
- if the logged-in user does not have the required authorization.UserSearchException
- if the user search operation fails.UserManagerResult enable(java.lang.String userID, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserEnableException, NoSuchUserException
userID
- The id of the user to be enabled.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserEnableException
- if the orchestration fails for enable operation.NoSuchUserException
- if the user with given userID is not found.UserManagerResult enable(java.lang.String attributeName, java.lang.Object attributeValue) throws ValidationFailedException, AccessDeniedException, UserEnableException, NoSuchUserException, SearchKeyNotUniqueException
attributeName
- - The attribute name for the search criteria.attributeValue
- - The attribute value for the search criteria.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserEnableException
- if the orchestration fails for enable operation.NoSuchUserException
- if the user matching the search criteria is not found.SearchKeyNotUniqueException
- if there is more than one user found with the search criteria provided.UserManagerResult enable(java.util.ArrayList userIDs, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserEnableException, NoSuchUserException
userIDs
- The ids of the user to be enabled.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserEnableException
- if the orchestration fails for enable operation.NoSuchUserException
- if the user with given userID is not found.UserManagerResult disable(java.lang.String userID, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserDisableException, NoSuchUserException
userID
- The id of the user to be disabled.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- is thrown if the validation during the orchestration process
fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserDisableException
- if the orchestration fails for disable operation.NoSuchUserException
- if the user with given userID is not found.UserManagerResult disable(java.lang.String attributeName, java.lang.Object attributeValue) throws ValidationFailedException, AccessDeniedException, UserDisableException, NoSuchUserException, SearchKeyNotUniqueException
attributeName
- - The attribute name for the search criteria.attributeValue
- - The attribute value for the search criteria.ValidationFailedException
- is thrown if the validation during the orchestration process
fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserDisableException
- if the orchestration fails for disable operation.NoSuchUserException
- if the user matching the search criteria is not found.SearchKeyNotUniqueException
- if more than one user is found as per the defined the search criteria.UserManagerResult disable(java.util.ArrayList userIDs, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserDisableException, NoSuchUserException
userIDs
- The ids of the user to be disabled.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserDisableException
- if the orchestration fails for disable operation.NoSuchUserException
- if the user with given userID is not found.UserManagerResult lock(java.lang.String userID, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserLockException, NoSuchUserException
userID
- The id of the user to be locked.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserLockException
- if the orchestration fails for lock operation.NoSuchUserException
- if the user with given userID is not found.@Deprecated UserManagerResult lock(java.lang.String userID, boolean manualFlag, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserLockException, NoSuchUserException
UserManager.lock(String, boolean)
userID
- The id of the user to be locked. The isUserLogin flag will decide what does userID contains.manualFlag
- The flag is ignored and admin lock will be performed always.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserLockException
- if the orchestration fails for lock operation.NoSuchUserException
- if the user with given userID is not found.UserManagerResult lock(java.lang.String attributeName, java.lang.Object attributeValue) throws ValidationFailedException, AccessDeniedException, UserLockException, NoSuchUserException, SearchKeyNotUniqueException
attributeName
- - The attribute name for the search criteria.attributeValue
- - The attribute value for the search criteria.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserLockException
- if the orchestration fails for lock operation.NoSuchUserException
- if the user with given userID is not found.SearchKeyNotUniqueException
- if there is more than one user of the search criteria.@Deprecated UserManagerResult lock(java.lang.String attributeName, java.lang.Object attributeValue, boolean manualFlag) throws ValidationFailedException, AccessDeniedException, UserLockException, NoSuchUserException, SearchKeyNotUniqueException
UserManager.lock(String, Object)
attributeName
- The attribute name for the search criteria.attributeValue
- The attribute value for the search criteria.manualFlag
- The flag is ignored and admin lock will be performed alwaysValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserLockException
- if the orchestration fails for lock operation.NoSuchUserException
- if the user with given userID is not found.SearchKeyNotUniqueException
- if there is more than one user of the search criteria.UserManagerResult lock(java.util.ArrayList userIDs, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserLockException, NoSuchUserException
userIDs
- The ids of the user to be locked.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserLockException
- if the orchestration fails for lock operation.NoSuchUserException
- if the user with given userID is not found.@Deprecated UserManagerResult lock(java.util.ArrayList userIDs, boolean manualFlag, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserLockException, NoSuchUserException
#lock(ArrayList, boolean)
userIDs
- The ids of the user to be locked. The isUserLogin flag will decide what does userID contains.manualFlag
- The flag is ignored and admin lock will be performed alwaysisUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserLockException
- if the orchestration fails for lock operation.NoSuchUserException
- if the user with given userID is not found.UserManagerResult unlock(java.lang.String userID, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserUnlockException, NoSuchUserException
userID
- The id of the user to be unlocked.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserUnlockException
- if the orchestration fails for unlock operation.NoSuchUserException
- if the user with given userID is not found.UserManagerResult unlock(java.lang.String attributeName, java.lang.Object attributeValue) throws ValidationFailedException, AccessDeniedException, UserUnlockException, NoSuchUserException, SearchKeyNotUniqueException
attributeName
- - The attribute name for the search criteria.attributeValue
- - The attribute value for the search criteria.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserUnlockException
- if the orchestration fails for unlock operation.NoSuchUserException
- if the user matching the search criteria is not found.SearchKeyNotUniqueException
- if there is more than one user of the search criteria.UserManagerResult unlock(java.util.ArrayList userIDs, boolean isUserLogin) throws ValidationFailedException, AccessDeniedException, UserUnlockException, NoSuchUserException
userIDs
- The ids of the user to be unlocked.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.ValidationFailedException
- if the validation during the orchestration process fails.AccessDeniedException
- if the logged-in user does not have the required authorization.UserUnlockException
- if the orchestration fails for unlock operation.NoSuchUserException
- if the user with given userID is not found.java.util.List getCurrentProxies(java.lang.String userID, boolean isUserLogin) throws AccessDeniedException, NoSuchUserException, UserManagerException
userID
- The ID of the user whose current proxies are required.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.AccessDeniedException
- If the logged-in user does not have the required authorization to perform this operation.NoSuchUserException
- If the user with given userID is not found.UserManagerException
- If getCurrentProxies operation fails due some other reason.java.util.List getActiveProxies(java.lang.String userID, boolean isUserLogin) throws AccessDeniedException, NoSuchUserException, UserManagerException
java.util.List getPastProxies(java.lang.String userID, boolean isUserLogin) throws AccessDeniedException, NoSuchUserException, UserManagerException
userID
- The id of the user whose past proxies are required.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.AccessDeniedException
- If the loggedUser does not have the required authorization to perform this operation.NoSuchUserException
- If the user with given userID is not found.UserManagerException
- If getPastProxies operation fails due some other reason.@Deprecated void changePassword(java.lang.String userID, char[] password, boolean isUserLogin, java.util.Locale locale, boolean setPasswordResetFlag) throws NoSuchUserException, AccessDeniedException, UserManagerException
UserManager.changePassword(String, char[], boolean, Locale, boolean, boolean)
UserManager.changePassword(String, char[], boolean, Locale, boolean, boolean)
Changes the user's password. This signature API is called in OAAM integrated env.userID
- The ID of the user whose password is to be changed.
The isUserLogin flag will decide what does userID contains.password
- New passwordisUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.locale
- If not null, this locale is used to throw translated exceptions (if any)setPasswordResetFlag
- To identify whether the password reset flag should be reset or not.
In case of OAAM scenario, this flag value should be false which should
indicate not be reset the 'change password at next logon' flag in the database.NoSuchUserException
- If user with given userID does not exist.AccessDeniedException
- If logged-in user does not have permission to change the password
of this user.UserManagerException
- If there is an error while changing the user's passwordUserManager.changePassword(String, char[], boolean, Locale, boolean, boolean)
@Deprecated void changePassword(java.lang.String userID, char[] password, boolean isUserLogin) throws NoSuchUserException, AccessDeniedException, UserManagerException
UserManager.changePassword(String, char[], boolean, boolean)
Changes the user's password.userID
- The id of the user whose password is to be changed.
The isUserLogin flag will decide what does userID contains.password
- New passwordisUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.NoSuchUserException
- If user with given userID does not exist.AccessDeniedException
- If logged-in user does not have permission to change the password
of this user.UserManagerException
- If there is an error while changing the user's passwordUserManager.changePassword(String, char[], boolean, boolean)
@Deprecated void changePassword(java.lang.String attributeName, java.lang.Object attributeValue, char[] password) throws NoSuchUserException, AccessDeniedException, UserManagerException, SearchKeyNotUniqueException
UserManager.changePassword(String, Object, char[], boolean)
Changes the user's password.attributeName
- The attribute name for the search criteria to identify the user.attributeValue
- The attribute value for the search criteria to identify the user.password
- New passwordNoSuchUserException
- If user with the given criteria does not exist.AccessDeniedException
- If logged-in user does not have permission to change the password
of this user.UserManagerException
- If there is an error while changing passwordSearchKeyNotUniqueException
- If there are more than one users found with the given search criteria.UserManager.changePassword(String, Object, char[], boolean)
java.util.List getAllProxies(java.lang.String userID, boolean isUserLogin) throws AccessDeniedException, NoSuchUserException, UserManagerException
userID
- The ID of the user whose proxies are required.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.AccessDeniedException
- If the logged-in user does not have the required authorization to perform this operation.NoSuchUserException
- If user with given userID does not exist.UserManagerException
- If getAllProxies operation fails due some other reason.@Deprecated long addProxyForUser(java.lang.String userID, long proxyUserKey, java.util.Date startDate, java.util.Date endDate, boolean isUserLogin) throws NoSuchUserException, RecursiveProxyException, UserManagerException, AccessDeniedException
UserManager.addProxyForUser(String, String, Date, Date, boolean)
userID
- The id of the user for which proxy is to be added.
The isUserLogin flag will decide if userID contains the user login or the user keyproxyUserKey
- key of the user to be proxied.startDate
- start date for the proxy.endDate
- end date of the proxy.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.NoSuchUserException
- If user with given userID does not exist.RecursiveProxyException
- if there is a recursive proxy.UserManagerException
- If add proxy operation fails due some other reason.AccessDeniedException
- If the logged-in user does not have the required authorization to perform this operation@Deprecated void updateProxyForUser(long pxdKey, java.util.Map attribute) throws NoSuchUserException, RecursiveProxyException, UserManagerException, AccessDeniedException
UserManager.updateProxyForUser(String, Map )
pxdKey
Only proxy user, start date and/or end date can be modified for the given proxy.
Original user cannot be modifed for a proxy.
The values to be changed needs to be passed in the map as name value pairs.
The API internally consumes the SOA/BPEL
UserMetadataService APIs. UserMetadataService provides the APIs for
creating vacation rule which serves our purpose for proxy.pxdKey
- key of the proxy whose details is to be updated.attribute
- an attribute map of the fields to update:NoSuchUserException
- If user with given userID does not exist.RecursiveProxyException
- If there is a recursive proxy.AccessDeniedException
- If the logged-in user does not have the required authorization to perform this operationUserManagerException
- If update proxy operation fails due some other reason.void removeAllProxiesForUser(java.lang.String userID, boolean isUserLogin) throws NoSuchUserException, UserManagerException, AccessDeniedException
userID
- The ID of the user whose proxies are to be removed. The
isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the
userID contains user key.NoSuchUserException
- If user with given userID does not exist.AccessDeniedException
- If the logged-in user does not have the required
authorization to perform this operationUserManagerException
- If update proxy operation fails due some other reason.@Deprecated void removeProxy(java.lang.String userID, long proxyKey, java.util.Map attrMap, boolean isUserLogin) throws NoSuchUserException, UserManagerException, AccessDeniedException
UserManager.removeProxy(String, String, boolean )
proxyKey
) for the given user (identified by userID).
The API internally consumes the SOA/BPEL
UserMetadataService APIs. UserMetadataService provides the APIs for
creating vacation rule which serves our purpose for proxy.userID
- The ID of the user whose proxy is to be removed.
The isUserLogin flag will decide what does userID contains.proxyKey
- The key of the proxy to be removed.attrMap
- [Optional] The Map of attributes containing proxy detailsisUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.NoSuchUserException
- If user with given userID does not exist.AccessDeniedException
- If the logged-in user does not have the required authorization to perform this operationUserManagerException
- If remove proxy operation fails due some other reason.@Deprecated void removeProxy(java.lang.String userID, long proxyKey, boolean isUserLogin) throws NoSuchUserException, UserManagerException, AccessDeniedException
UserManager.removeProxy(String, String, boolean )
insteadproxyKey
) for the given user (identified by userID).
The API internally consumes the SOA/BPEL
UserMetadataService APIs. UserMetadataService provides the APIs for
creating vacation rule which serves our purpose for proxy.userID
- The ID of the user whose proxy is to be removed.
The isUserLogin flag will decide what does userID contains.proxyKey
- The key of the proxy to be removed.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.NoSuchUserException
- If user with given userID does not exist.AccessDeniedException
- If the logged-in user does not have the required authorization to perform this operationUserManagerException
- If remove proxy operation fails due some other reason.java.lang.String addProxyForUser(java.lang.String userID, java.lang.String proxyUserID, java.util.Date startDate, java.util.Date endDate, boolean isUserLogin) throws NoSuchUserException, RecursiveProxyException, UserManagerException, AccessDeniedException
userID
- ID of the user for which proxy is to be added. The isUserLogin
flag will decide if userID contains the user login or the
entity ID.proxyUserID
- ID of the user that is set as a proxy of the original user.
The isUserLogin flag will decide if proxyUserID contains the
user login or the entity ID.startDate
- start date for the proxy.endDate
- end date of the proxy.isUserLogin
- Set to true if the userID contains user login and false if the
userID contains Entity ID (user key/user GUID).NoSuchUserException
- If user with given userID does not exist.RecursiveProxyException
- if there is a recursive proxy.UserManagerException
- If add proxy operation fails due some other reason.AccessDeniedException
- If the logged-in user does not have the required
authorization to perform this operation.void updateProxyForUser(java.lang.String proxyID, java.util.Map attribute) throws NoSuchUserException, RecursiveProxyException, UserManagerException, AccessDeniedException
proxyID
Only proxy user, start
date and/or end date can be modified for the given proxy. Original user
cannot be modifed for a proxy. The values to be changed needs to be
passed in the map as name value pairs.proxyID
- ID of the proxy for which details are to be updated.attribute
- an attribute map of the fields to update:NoSuchUserException
- If user with given userID does not exist.RecursiveProxyException
- If there is a recursive proxy.AccessDeniedException
- If the logged-in user does not have the required
authorization to perform this operationUserManagerException
- If update proxy operation fails due some other reason.void removeProxy(java.lang.String userID, java.lang.String proxyID, boolean isUserLogin) throws NoSuchUserException, UserManagerException, AccessDeniedException
proxyID
) for the
given user (identified by userID).userID
- The ID of the user whose proxy is to be removed. The
isUserLogin flag will decide what does userID contains.proxyID
- The ID of the proxy to be removed.isUserLogin
- Set to true if the userID contains user login and false if the
userID contains user's entity id.NoSuchUserException
- If user with given userID does not exist.AccessDeniedException
- If the logged-in user does not have the required
authorization to perform this operationUserManagerException
- If remove proxy operation fails due some other reason.java.lang.String generateUserName(java.util.Map attrMap) throws UserNameGenerationException, UserManagerException
attrMap
- Map contains user attributes required to generate username.UserNameGenerationException
- If username generation operation fails due some reason.UserManagerException
- If the operation fails due some other reason.java.lang.String generateUserName(java.lang.String policyID, java.util.Map attrMap) throws UserNameGenerationException, UserManagerException
policyID
- The ID (class name of policy) of the policy that will be used to generate username.attrMap
- Map contains user attributes required to generate username.UserNameGenerationException
- If username generation operation fails due some reason.UserManagerException
- If the operation fails due some other reason.boolean isUserNameValid(java.lang.String userName, java.util.Map attrMap) throws UserManagerException
userName
- The username that need to be validated.attrMap
- Map contains user attributes required to generate username.UserManagerException
- If the operation fails due some other reason.boolean isUserNameValid(java.lang.String userName, java.lang.String policyID, java.util.Map attrMap) throws UserManagerException
userName
- The username that needs to be validated.policyID
- The ID (class name of policy) of the policy that will be used to validate the username.attrMap
- Map contains user attributes required to generate username.UserManagerException
- If the operation fails .java.util.List getAllUserNamePolicies(java.util.Locale locale) throws UserManagerException
locale
- The locale in which policy description is needed.UserManagerException
- If the operation fails.java.lang.String getPolicyDescription(java.lang.String policyID, java.util.Locale locale) throws UserManagerException
policyID
- The ID (class name of policy) of the Username generation policy for which description is required.locale
- The locale in which policy description needed.UserManagerException
- If the operation fails .java.lang.String generateUserNameFromDefaultPolicy(java.util.Map attrMap) throws UserNameGenerationException, UserManagerException
attrMap
- Map of <String,Object> contains user attributes required to
generate username. Note: You can also pass multiple values
(IMultiValueData) here.UserNameGenerationException
- If username generation operation fails.UserManagerException
- If the operation fails due some other reason.java.lang.String generateUserNameFromPolicy(java.lang.String policyId, java.util.Map attrMap) throws UserNameGenerationException, UserManagerException
policyId
- The ID (class name of policy) of the policy that will be used
to generate username.attrMap
- Map of <String,Object> contains user attributes required to
generate username. Note: You can also pass multiple values
(IMultiValueData) here.UserNameGenerationException
- If username generation operation fails.UserManagerException
- If the operation fails due some other reason.boolean isUserNameValidForDefaultPolicy(java.lang.String userName, java.util.Map attrMap) throws UserManagerException
userName
- The username that need to be validated.attrMap
- Map of <String,Object> contains user attributes required to
generate username. Note: You can also pass multiple values
(IMultiValueData) here.UserManagerException
- If the operation fails .boolean isUserNameValidForPolicy(java.lang.String userName, java.lang.String policyId, java.util.Map attrMap) throws UserManagerException
userName
- The username that needs to be validated.policyId
- The ID (class name of policy) of the policy that will be used
to validate the username.attrMap
- Map of <String,Object> contains user attributes required to
generate username. Note: You can also pass multiple values
(IMultiValueData) here.UserManagerException
- If the operation fails.void resetPassword(java.lang.String userID, boolean isUserLogin) throws NoSuchUserException, UserManagerException, AccessDeniedException
userID
- the userID of the user whose password is to be reset.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.NoSuchUserException
- If user with given userID does not exist.UserManagerException
- If there is an exception while performing the operationAccessDeniedException
- If the logged in person is not authorized to perform the operation.void resetPassword(java.lang.String userID, boolean isUserLogin, boolean sendNotification) throws NoSuchUserException, UserManagerException, AccessDeniedException
userID
- the userID of the user whose password is to be reset.isUserLogin
- Set to true if the userID contains user login and false if
the userID contains user key.sendNotification
- Set to true if an email notification needs to be sent to
the user whose password is changedNoSuchUserException
- If user with given userID does not exist.UserManagerException
- If there is an exception while performing the operationAccessDeniedException
- If the logged in person is not authorized to perform the
operation.void resetPassword(java.lang.String userID, boolean isUserLogin, java.util.Map controls) throws NoSuchUserException, UserManagerException, AccessDeniedException
userID
- the userID of the user whose password is to be reset.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.controls
- The Map contains control parameters used for performing
additional opreration along with reset password.NoSuchUserException
- If user with given userID does not exist.UserManagerException
- If there is an exception while performing the operationAccessDeniedException
- If the logged in person is not authorized to perform the
operation.void changePassword(java.lang.String userID, char[] password, boolean isUserLogin, boolean sendNotification) throws NoSuchUserException, AccessDeniedException, UserManagerException
userID
- The id of the user whose password is to be changed.
The isUserLogin flag will decide what does userID contains.password
- New passwordisUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.sendNotification
- Set to true if an email notification needs to be sent to the user whose password is changedNoSuchUserException
- If user with given userID does not exist.AccessDeniedException
- If logged-in user does not have permission to change the password
of this user.UserManagerException
- If there is an error while changing the user's passwordvoid changePassword(java.lang.String userID, char[] password, boolean isUserLogin, java.util.Locale locale, boolean setPasswordResetFlag, boolean sendNotification) throws NoSuchUserException, AccessDeniedException, UserManagerException
userID
- The ID of the user whose password is to be changed.
The isUserLogin flag will decide what does userID contains.password
- New passwordisUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.locale
- If not null, this locale is used to throw translated exceptions (if any)setPasswordResetFlag
- To identify whether the password reset flag should be reset or not.
In case of OAAM scenario, this flag value should be false which should
indicate not be reset the 'change password at next logon' flag in the database.sendNotification
- Set to true if an email notification needs to be sent to the user whose password is changedNoSuchUserException
- If user with given userID does not exist.AccessDeniedException
- If logged-in user does not have permission to change the password
of this user.UserManagerException
- If there is an error while changing the user's passwordvoid changePassword(java.lang.String attributeName, java.lang.Object attributeValue, char[] password, boolean sendNotification) throws NoSuchUserException, AccessDeniedException, UserManagerException, SearchKeyNotUniqueException
attributeName
- The attribute name for the search criteria to identify the user.attributeValue
- The attribute value for the search criteria to identify the user.password
- New passwordsendNotification
- Set to true if an email notification needs to be sent to the user whose password is changedNoSuchUserException
- If user with the given criteria does not exist.AccessDeniedException
- If logged-in user does not have permission to change the password
of this user.UserManagerException
- If there is an error while changing passwordSearchKeyNotUniqueException
- If there are more than one users found with the given search criteria.java.util.List getUsersAssigned(java.lang.String adminRoleId, java.util.Set retAttrs, java.util.HashMap configParams)
adminRoleId
- role-key for the admin-role.retAttrs
- the user attributes need to be returnedconfigParams
- the comfigparams.java.util.List getUsersAssignedWithScope(java.lang.String adminRoleId, java.util.Set retAttrs, java.util.HashMap configParams, java.lang.String scopeId)
adminRoleId
- role-key for the admin-role.retAttrs
- the user attributes need to be returnedconfigParams
- the comfigparams.scopeId
- associated wtih admin role.java.util.Map getUserChallengeValues(java.lang.String userID, boolean isUserLogin) throws AccessDeniedException, UserManagerException
userID
- The id of the user whose challenge questions and answers are to be fetched.
The isUserLogin flag indicates if userID is the user login or the user key.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.AccessDeniedException
UserManagerException
void setUserChallengeValues(java.lang.String userID, boolean isUserLogin, java.util.HashMap quesAnsMap) throws AccessDeniedException, UserManagerException
userID
- The id of the user whose challenge question and answer needs to be set.
The isUserLogin flag will decide what does userID contains.isUserLogin
- Set to true if the userID contains user login and false if the userID contains user key.quesAnsMap
- HashMap of challenge question and answers to override existing challenges
If passed as empty HashMap, it would nuke the challenges of the given user
throws UserManagerException
If there is an error while fecthing challenges
throws AccessDeniedException
if user invoking operation does not have system adminstrators role
throws NoSuchUserException
if given user does not exist
throws ValidationFailedException in case of any validation failureAccessDeniedException
UserManagerException