public class UserAccountServiceImpl extends CommonEngineServiceImpl<CoreIdmEngineConfiguration> implements UserAccountService
commandExecutorconfiguration| Constructor and Description |
|---|
UserAccountServiceImpl(CoreIdmEngineConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
UserAccountBuilder |
createNewUserAccountBuilder() |
UserAccountBuilder |
createUpdateUserAccountBuilder(String accountId) |
UserAccountQuery |
createUserAccountQuery() |
void |
deleteUserAccount(String accountId)
Delete the user account with the given id.
|
UserAccount |
findById(String userAccountId) |
void |
setStateAndSubState(String accountId,
String state,
String subState)
Update the state and sub state of the user account.
|
void |
setType(String accountId,
String type,
String subType)
Update the type and sub type of the user account
|
getCommandExecutor, setCommandExecutorgetConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetState, setSubStatepublic UserAccountServiceImpl(CoreIdmEngineConfiguration configuration)
public UserAccountBuilder createNewUserAccountBuilder()
createNewUserAccountBuilder in interface UserAccountServicepublic UserAccountBuilder createUpdateUserAccountBuilder(String accountId)
createUpdateUserAccountBuilder in interface UserAccountServicepublic UserAccountQuery createUserAccountQuery()
createUserAccountQuery in interface UserAccountServicepublic UserAccount findById(String userAccountId)
findById in interface UserAccountServicepublic void setStateAndSubState(String accountId, String state, String subState)
UserAccountServicenull then the state of the user account won't be changed.
If the value for the subState is null then the subState of the user account won't be changed.
At least one of state and / or subState must be setsetStateAndSubState in interface UserAccountServiceaccountId - the id of the account that should have it's state updatedstate - the optional new state of the account, if null it won't be changedsubState - the optional new sub state of the account, if null if won't be changedpublic void setType(String accountId, String type, String subType)
UserAccountServicesetType in interface UserAccountServiceaccountId - the of the account that should have it's type updatedtype - the new type of the accountsubType - the new sub type of the accountpublic void deleteUserAccount(String accountId)
UserAccountServicedeleteUserAccount in interface UserAccountServiceaccountId - the id of the account