public interface UserAccountService
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) |
default void |
setState(String accountId,
String state)
Set the state of this user account.
|
void |
setStateAndSubState(String accountId,
String state,
String subState)
Update the state and sub state of the user account.
|
default void |
setSubState(String accountId,
String subState)
Set the sub state of this user account.
|
void |
setType(String accountId,
String type,
String subType)
Update the type and sub type of the user account
|
UserAccountBuilder createNewUserAccountBuilder()
UserAccountBuilder createUpdateUserAccountBuilder(String accountId)
UserAccountQuery createUserAccountQuery()
UserAccount findById(String userAccountId)
void setStateAndSubState(String accountId, String state, String subState)
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 setaccountId
- 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 changeddefault void setState(String accountId, String state)
setStateAndSubState(String, String, String)
with subState null
accountId
- the id of the account to change its statestate
- the new state to be set on this user objectfor more information
default void setSubState(String accountId, String subState)
setStateAndSubState(String, String, String)
with state null
accountId
- the id of the account to change its substatesubState
- the new sub state to be set on this user objectfor more information
void setType(String accountId, String type, String subType)
accountId
- the of the account that should have it's type updatedtype
- the new type of the accountsubType
- the new sub type of the accountvoid deleteUserAccount(String accountId)
accountId
- the id of the account