Package com.flowable.core.idm.api
Interface UserAccountBuilder
- 
- All Known Implementing Classes:
- UserAccountBuilderImpl
 
 public interface UserAccountBuilderA builder for the user account that can be used to update or create an UserAccount- Author:
- Filip Hrisafov
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description UserAccountBuilderbusinessAccountId(String businessAccountId)The id of the business account that the user account would be linked to (e.g.UserAccountBuilderexternalUserId(String externalUserId)The id of the user within the external system (e.g.UserAccountBuildername(String name)The name of the account (e.g.UserAccountsave()Performs the save of the user accountUserAccountBuilderstate(String state)The initial state of the created account.UserAccountBuildersubState(String subState)The initial sub state of the created account.UserAccountBuildersubType(String subType)The sub type of the account.UserAccountBuildertenantId(String tenantId)The id of the tenant that this account belongs toUserAccountBuildertype(String type)Set the type of the account.UserAccountBuilderuserAccountDefinitionId(String userAccountDefinitionId)The id of theUserAccountDefinitionthat should be used when creating the user account.UserAccountBuilderuserAccountDefinitionKey(String userAccountDefinitionKey)The key of theUserAccountDefinitionthat should be used when creating the user account.UserAccountBuilderuserId(String userId)The id of the user that this account belongs to
 
- 
- 
- 
Method Detail- 
userIdUserAccountBuilder userId(String userId) The id of the user that this account belongs to- Parameters:
- userId- the user id linked with the account
 
 - 
tenantIdUserAccountBuilder tenantId(String tenantId) The id of the tenant that this account belongs to- Parameters:
- tenantId- the tenant id for the account
 
 - 
nameUserAccountBuilder name(String name) The name of the account (e.g. WhatsApp for XY, etc)- Parameters:
- name- the name for the account
 
 - 
typeUserAccountBuilder type(String type) Set the type of the account. (e.g. Messenger)- Parameters:
- type- the type of the account
- See Also:
- for known types
 
 - 
subTypeUserAccountBuilder subType(String subType) The sub type of the account. (e.g. WhatsApp, WeChat, Facebook, etc)- Parameters:
- subType- the sub type of the account
- See Also:
- for known sub types
 
 - 
stateUserAccountBuilder state(String state) The initial state of the created account. In order to update the state of the account theUserAccountService.setStateAndSubState(String, String, String)should be used.- Parameters:
- state- the initial state for the created account
 
 - 
subStateUserAccountBuilder subState(String subState) The initial sub state of the created account. In order to update the state of the account theUserAccountService.setStateAndSubState(String, String, String)should be used.- Parameters:
- subState- the initial state for the created account
 
 - 
businessAccountIdUserAccountBuilder businessAccountId(String businessAccountId) The id of the business account that the user account would be linked to (e.g. WhatsApp business number xyz or WeChat official account, etc)- Parameters:
- businessAccountId- the id of the business account
 
 - 
externalUserIdUserAccountBuilder externalUserId(String externalUserId) The id of the user within the external system (e.g. the phone number for WhatsApp, the user-id for Facebook account, etc)- Parameters:
- externalUserId- the id of the external user
 
 - 
userAccountDefinitionIdUserAccountBuilder userAccountDefinitionId(String userAccountDefinitionId) The id of theUserAccountDefinitionthat should be used when creating the user account.- Parameters:
- userAccountDefinitionId- the id of the user account definition
 
 - 
userAccountDefinitionKeyUserAccountBuilder userAccountDefinitionKey(String userAccountDefinitionKey) The key of theUserAccountDefinitionthat should be used when creating the user account.- Parameters:
- userAccountDefinitionKey- the key of the user account definition
 
 - 
saveUserAccount save() Performs the save of the user account- Returns:
- the saved UserAccount
 
 
- 
 
-