public class UserAccountBuilderImpl extends Object implements UserAccountBuilder
| Modifier and Type | Field and Description |
|---|---|
protected String |
accountId |
protected String |
businessAccountId |
protected String |
externalUserId |
protected CoreIdmEngineConfiguration |
idmEngineConfiguration |
protected Set<String> |
modifiedProperties |
protected String |
name |
protected String |
state |
protected String |
subState |
protected String |
subType |
protected String |
tenantId |
protected String |
type |
protected String |
userAccountDefinitionId |
protected String |
userAccountDefinitionKey |
protected String |
userId |
| Constructor and Description |
|---|
UserAccountBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration,
String accountId) |
| Modifier and Type | Method and Description |
|---|---|
UserAccountBuilder |
businessAccountId(String businessAccountId)
The id of the business account that the user account would be linked to
(e.g.
|
UserAccountBuilder |
externalUserId(String externalUserId)
The id of the user within the external system
(e.g.
|
String |
getBusinessAccountId() |
String |
getExternalUserId() |
String |
getName() |
String |
getState() |
String |
getSubState() |
String |
getSubType() |
String |
getTenantId() |
String |
getType() |
String |
getUserAccountDefinitionId() |
String |
getUserAccountDefinitionKey() |
String |
getUserId() |
boolean |
isPropertyModified(String property) |
UserAccountBuilder |
name(String name)
The name of the account (e.g.
|
UserAccount |
save()
Performs the save of the user account
|
UserAccountBuilder |
state(String state)
The initial state of the created account.
|
UserAccountBuilder |
subState(String subState)
The initial sub state of the created account.
|
UserAccountBuilder |
subType(String subType)
The sub type of the account.
|
UserAccountBuilder |
tenantId(String tenantId)
The id of the tenant that this account belongs to
|
UserAccountBuilder |
type(String type)
Set the type of the account.
|
UserAccountBuilder |
userAccountDefinitionId(String userAccountDefinitionId)
The id of the
UserAccountDefinition that should be used when creating the user account. |
UserAccountBuilder |
userAccountDefinitionKey(String userAccountDefinitionKey)
The key of the
UserAccountDefinition that should be used when creating the user account. |
UserAccountBuilder |
userId(String userId)
The id of the user that this account belongs to
|
protected final CoreIdmEngineConfiguration idmEngineConfiguration
protected final String accountId
protected String userId
protected String tenantId
protected String name
protected String type
protected String subType
protected String state
protected String subState
protected String businessAccountId
protected String externalUserId
protected String userAccountDefinitionId
protected String userAccountDefinitionKey
public UserAccountBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, String accountId)
public UserAccountBuilder userId(String userId)
UserAccountBuilderuserId in interface UserAccountBuilderuserId - the user id linked with the accountpublic UserAccountBuilder tenantId(String tenantId)
UserAccountBuildertenantId in interface UserAccountBuildertenantId - the tenant id for the accountpublic UserAccountBuilder name(String name)
UserAccountBuildername in interface UserAccountBuildername - the name for the accountpublic UserAccountBuilder type(String type)
UserAccountBuildertype in interface UserAccountBuildertype - the type of the accountfor known typespublic UserAccountBuilder subType(String subType)
UserAccountBuildersubType in interface UserAccountBuildersubType - the sub type of the accountfor known sub typespublic UserAccountBuilder state(String state)
UserAccountBuilderUserAccountService.setStateAndSubState(String, String, String) should be used.state in interface UserAccountBuilderstate - the initial state for the created accountpublic UserAccountBuilder subState(String subState)
UserAccountBuilderUserAccountService.setStateAndSubState(String, String, String) should be used.subState in interface UserAccountBuildersubState - the initial state for the created accountpublic UserAccountBuilder businessAccountId(String businessAccountId)
UserAccountBuilderbusinessAccountId in interface UserAccountBuilderbusinessAccountId - the id of the business accountpublic UserAccountBuilder externalUserId(String externalUserId)
UserAccountBuilderexternalUserId in interface UserAccountBuilderexternalUserId - the id of the external userpublic UserAccountBuilder userAccountDefinitionId(String userAccountDefinitionId)
UserAccountBuilderUserAccountDefinition that should be used when creating the user account.userAccountDefinitionId in interface UserAccountBuilderuserAccountDefinitionId - the id of the user account definitionpublic UserAccountBuilder userAccountDefinitionKey(String userAccountDefinitionKey)
UserAccountBuilderUserAccountDefinition that should be used when creating the user account.userAccountDefinitionKey in interface UserAccountBuilderuserAccountDefinitionKey - the key of the user account definitionpublic UserAccount save()
UserAccountBuildersave in interface UserAccountBuilderUserAccountpublic boolean isPropertyModified(String property)
public String getUserId()
public String getTenantId()
public String getName()
public String getType()
public String getSubType()
public String getState()
public String getSubState()
public String getBusinessAccountId()
public String getExternalUserId()
public String getUserAccountDefinitionId()
public String getUserAccountDefinitionKey()