public class UserAccountServiceImpl extends CommonEngineServiceImpl<CoreIdmEngineConfiguration> implements UserAccountService
commandExecutor
configuration
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, setCommandExecutor
getConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setState, setSubState
public UserAccountServiceImpl(CoreIdmEngineConfiguration configuration)
public UserAccountBuilder createNewUserAccountBuilder()
createNewUserAccountBuilder
in interface UserAccountService
public UserAccountBuilder createUpdateUserAccountBuilder(String accountId)
createUpdateUserAccountBuilder
in interface UserAccountService
public UserAccountQuery createUserAccountQuery()
createUserAccountQuery
in interface UserAccountService
public UserAccount findById(String userAccountId)
findById
in interface UserAccountService
public void setStateAndSubState(String accountId, String state, String subState)
UserAccountService
null
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 UserAccountService
accountId
- 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)
UserAccountService
setType
in interface UserAccountService
accountId
- 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)
UserAccountService
deleteUserAccount
in interface UserAccountService
accountId
- the id of the account