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)
UserAccountBuilder
userId
in interface UserAccountBuilder
userId
- the user id linked with the accountpublic UserAccountBuilder tenantId(String tenantId)
UserAccountBuilder
tenantId
in interface UserAccountBuilder
tenantId
- the tenant id for the accountpublic UserAccountBuilder name(String name)
UserAccountBuilder
name
in interface UserAccountBuilder
name
- the name for the accountpublic UserAccountBuilder type(String type)
UserAccountBuilder
type
in interface UserAccountBuilder
type
- the type of the accountfor known types
public UserAccountBuilder subType(String subType)
UserAccountBuilder
subType
in interface UserAccountBuilder
subType
- the sub type of the accountfor known sub types
public UserAccountBuilder state(String state)
UserAccountBuilder
UserAccountService.setStateAndSubState(String, String, String)
should be used.state
in interface UserAccountBuilder
state
- the initial state for the created accountpublic UserAccountBuilder subState(String subState)
UserAccountBuilder
UserAccountService.setStateAndSubState(String, String, String)
should be used.subState
in interface UserAccountBuilder
subState
- the initial state for the created accountpublic UserAccountBuilder businessAccountId(String businessAccountId)
UserAccountBuilder
businessAccountId
in interface UserAccountBuilder
businessAccountId
- the id of the business accountpublic UserAccountBuilder externalUserId(String externalUserId)
UserAccountBuilder
externalUserId
in interface UserAccountBuilder
externalUserId
- the id of the external userpublic UserAccountBuilder userAccountDefinitionId(String userAccountDefinitionId)
UserAccountBuilder
UserAccountDefinition
that should be used when creating the user account.userAccountDefinitionId
in interface UserAccountBuilder
userAccountDefinitionId
- the id of the user account definitionpublic UserAccountBuilder userAccountDefinitionKey(String userAccountDefinitionKey)
UserAccountBuilder
UserAccountDefinition
that should be used when creating the user account.userAccountDefinitionKey
in interface UserAccountBuilder
userAccountDefinitionKey
- the key of the user account definitionpublic UserAccount save()
UserAccountBuilder
save
in interface UserAccountBuilder
UserAccount
public 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()