Package com.flowable.idm.engine.impl
Class UserAccountBuilderImpl
- java.lang.Object
-
- com.flowable.idm.engine.impl.UserAccountBuilderImpl
-
- All Implemented Interfaces:
UserAccountBuilder
public class UserAccountBuilderImpl extends java.lang.Object implements UserAccountBuilder
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringaccountIdprotected java.lang.StringbusinessAccountIdprotected java.lang.StringexternalUserIdprotected CoreIdmEngineConfigurationidmEngineConfigurationprotected java.util.Set<java.lang.String>modifiedPropertiesprotected java.lang.Stringnameprotected java.lang.Stringstateprotected java.lang.StringsubStateprotected java.lang.StringsubTypeprotected java.lang.StringtenantIdprotected java.lang.Stringtypeprotected java.lang.StringuserAccountDefinitionIdprotected java.lang.StringuserAccountDefinitionKeyprotected java.lang.StringuserId
-
Constructor Summary
Constructors Constructor Description UserAccountBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, java.lang.String accountId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAccountBuilderbusinessAccountId(java.lang.String businessAccountId)The id of the business account that the user account would be linked to (e.g.UserAccountBuilderexternalUserId(java.lang.String externalUserId)The id of the user within the external system (e.g.java.lang.StringgetBusinessAccountId()java.lang.StringgetExternalUserId()java.lang.StringgetName()java.lang.StringgetState()java.lang.StringgetSubState()java.lang.StringgetSubType()java.lang.StringgetTenantId()java.lang.StringgetType()java.lang.StringgetUserAccountDefinitionId()java.lang.StringgetUserAccountDefinitionKey()java.lang.StringgetUserId()booleanisPropertyModified(java.lang.String property)UserAccountBuildername(java.lang.String name)The name of the account (e.g.UserAccountsave()Performs the save of the user accountUserAccountBuilderstate(java.lang.String state)The initial state of the created account.UserAccountBuildersubState(java.lang.String subState)The initial sub state of the created account.UserAccountBuildersubType(java.lang.String subType)The sub type of the account.UserAccountBuildertenantId(java.lang.String tenantId)The id of the tenant that this account belongs toUserAccountBuildertype(java.lang.String type)Set the type of the account.UserAccountBuilderuserAccountDefinitionId(java.lang.String userAccountDefinitionId)The id of theUserAccountDefinitionthat should be used when creating the user account.UserAccountBuilderuserAccountDefinitionKey(java.lang.String userAccountDefinitionKey)The key of theUserAccountDefinitionthat should be used when creating the user account.UserAccountBuilderuserId(java.lang.String userId)The id of the user that this account belongs to
-
-
-
Field Detail
-
idmEngineConfiguration
protected final CoreIdmEngineConfiguration idmEngineConfiguration
-
accountId
protected final java.lang.String accountId
-
userId
protected java.lang.String userId
-
tenantId
protected java.lang.String tenantId
-
name
protected java.lang.String name
-
type
protected java.lang.String type
-
subType
protected java.lang.String subType
-
state
protected java.lang.String state
-
subState
protected java.lang.String subState
-
businessAccountId
protected java.lang.String businessAccountId
-
externalUserId
protected java.lang.String externalUserId
-
userAccountDefinitionId
protected java.lang.String userAccountDefinitionId
-
userAccountDefinitionKey
protected java.lang.String userAccountDefinitionKey
-
modifiedProperties
protected java.util.Set<java.lang.String> modifiedProperties
-
-
Constructor Detail
-
UserAccountBuilderImpl
public UserAccountBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, java.lang.String accountId)
-
-
Method Detail
-
userId
public UserAccountBuilder userId(java.lang.String userId)
Description copied from interface:UserAccountBuilderThe id of the user that this account belongs to- Specified by:
userIdin interfaceUserAccountBuilder- Parameters:
userId- the user id linked with the account
-
tenantId
public UserAccountBuilder tenantId(java.lang.String tenantId)
Description copied from interface:UserAccountBuilderThe id of the tenant that this account belongs to- Specified by:
tenantIdin interfaceUserAccountBuilder- Parameters:
tenantId- the tenant id for the account
-
name
public UserAccountBuilder name(java.lang.String name)
Description copied from interface:UserAccountBuilderThe name of the account (e.g. WhatsApp for XY, etc)- Specified by:
namein interfaceUserAccountBuilder- Parameters:
name- the name for the account
-
type
public UserAccountBuilder type(java.lang.String type)
Description copied from interface:UserAccountBuilderSet the type of the account. (e.g. Messenger)- Specified by:
typein interfaceUserAccountBuilder- Parameters:
type- the type of the account- See Also:
for known types
-
subType
public UserAccountBuilder subType(java.lang.String subType)
Description copied from interface:UserAccountBuilderThe sub type of the account. (e.g. WhatsApp, WeChat, Facebook, etc)- Specified by:
subTypein interfaceUserAccountBuilder- Parameters:
subType- the sub type of the account- See Also:
for known sub types
-
state
public UserAccountBuilder state(java.lang.String state)
Description copied from interface:UserAccountBuilderThe initial state of the created account. In order to update the state of the account theUserAccountService.setStateAndSubState(String, String, String)should be used.- Specified by:
statein interfaceUserAccountBuilder- Parameters:
state- the initial state for the created account
-
subState
public UserAccountBuilder subState(java.lang.String subState)
Description copied from interface:UserAccountBuilderThe initial sub state of the created account. In order to update the state of the account theUserAccountService.setStateAndSubState(String, String, String)should be used.- Specified by:
subStatein interfaceUserAccountBuilder- Parameters:
subState- the initial state for the created account
-
businessAccountId
public UserAccountBuilder businessAccountId(java.lang.String businessAccountId)
Description copied from interface:UserAccountBuilderThe id of the business account that the user account would be linked to (e.g. WhatsApp business number xyz or WeChat official account, etc)- Specified by:
businessAccountIdin interfaceUserAccountBuilder- Parameters:
businessAccountId- the id of the business account
-
externalUserId
public UserAccountBuilder externalUserId(java.lang.String externalUserId)
Description copied from interface:UserAccountBuilderThe id of the user within the external system (e.g. the phone number for WhatsApp, the user-id for Facebook account, etc)- Specified by:
externalUserIdin interfaceUserAccountBuilder- Parameters:
externalUserId- the id of the external user
-
userAccountDefinitionId
public UserAccountBuilder userAccountDefinitionId(java.lang.String userAccountDefinitionId)
Description copied from interface:UserAccountBuilderThe id of theUserAccountDefinitionthat should be used when creating the user account.- Specified by:
userAccountDefinitionIdin interfaceUserAccountBuilder- Parameters:
userAccountDefinitionId- the id of the user account definition
-
userAccountDefinitionKey
public UserAccountBuilder userAccountDefinitionKey(java.lang.String userAccountDefinitionKey)
Description copied from interface:UserAccountBuilderThe key of theUserAccountDefinitionthat should be used when creating the user account.- Specified by:
userAccountDefinitionKeyin interfaceUserAccountBuilder- Parameters:
userAccountDefinitionKey- the key of the user account definition
-
save
public UserAccount save()
Description copied from interface:UserAccountBuilderPerforms the save of the user account- Specified by:
savein interfaceUserAccountBuilder- Returns:
- the saved
UserAccount
-
isPropertyModified
public boolean isPropertyModified(java.lang.String property)
-
getUserId
public java.lang.String getUserId()
-
getTenantId
public java.lang.String getTenantId()
-
getName
public java.lang.String getName()
-
getType
public java.lang.String getType()
-
getSubType
public java.lang.String getSubType()
-
getState
public java.lang.String getState()
-
getSubState
public java.lang.String getSubState()
-
getBusinessAccountId
public java.lang.String getBusinessAccountId()
-
getExternalUserId
public java.lang.String getExternalUserId()
-
getUserAccountDefinitionId
public java.lang.String getUserAccountDefinitionId()
-
getUserAccountDefinitionKey
public java.lang.String getUserAccountDefinitionKey()
-
-