Package com.flowable.idm.engine.impl
Class PlatformUserBuilderImpl
- java.lang.Object
-
- com.flowable.idm.engine.impl.PlatformUserBuilderImpl
-
- All Implemented Interfaces:
PlatformUserBuilder
public class PlatformUserBuilderImpl extends Object implements PlatformUserBuilder
- Author:
- Filip Hrisafov, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected StringavatarIdprotected Map<String,Object>customInfoprotected StringdisplayNameprotected Stringemailprotected StringfirstNameprotected CoreIdmEngineConfigurationidmEngineConfigurationprotected booleanisUpdateprotected Stringlanguageprotected StringlastNameprotected Set<String>modifiedPropertiesprotected PlatformUserEntityoriginalPlatformUserprotected Stringpasswordprotected PlatformUserEntityplatformUserprotected Stringpresenceprotected Stringstateprotected StringsubStateprotected StringsubTypeprotected StringtenantIdprotected Stringthemeprotected Stringtypeprotected StringuserDefinitionIdprotected StringuserDefinitionKeyprotected StringuserId
-
Constructor Summary
Constructors Constructor Description PlatformUserBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, String userId, boolean isUpdate)
-
Method Summary
-
-
-
Field Detail
-
idmEngineConfiguration
protected final CoreIdmEngineConfiguration idmEngineConfiguration
-
userId
protected final String userId
-
isUpdate
protected final boolean isUpdate
-
tenantId
protected String tenantId
-
userDefinitionId
protected String userDefinitionId
-
userDefinitionKey
protected String userDefinitionKey
-
type
protected String type
-
subType
protected String subType
-
presence
protected String presence
-
state
protected String state
-
subState
protected String subState
-
firstName
protected String firstName
-
lastName
protected String lastName
-
displayName
protected String displayName
-
avatarId
protected String avatarId
-
email
protected String email
-
password
protected String password
-
language
protected String language
-
theme
protected String theme
-
originalPlatformUser
protected PlatformUserEntity originalPlatformUser
-
platformUser
protected PlatformUserEntity platformUser
-
-
Constructor Detail
-
PlatformUserBuilderImpl
public PlatformUserBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, String userId, boolean isUpdate)
-
-
Method Detail
-
tenantId
public PlatformUserBuilder tenantId(String tenantId)
- Specified by:
tenantIdin interfacePlatformUserBuilder
-
userDefinitionId
public PlatformUserBuilder userDefinitionId(String userDefinitionId)
- Specified by:
userDefinitionIdin interfacePlatformUserBuilder
-
userDefinitionKey
public PlatformUserBuilder userDefinitionKey(String userDefinitionKey)
- Specified by:
userDefinitionKeyin interfacePlatformUserBuilder
-
type
public PlatformUserBuilder type(String type)
Description copied from interface:PlatformUserBuilderSet the type of the user.- Specified by:
typein interfacePlatformUserBuilder- Parameters:
type- that the user should have- See Also:
for known types
-
subType
public PlatformUserBuilder subType(String subType)
- Specified by:
subTypein interfacePlatformUserBuilder
-
presence
public PlatformUserBuilder presence(String presence)
Description copied from interface:PlatformUserBuilderSetting the presence is only possible for new users. Updating a user presence should happen overPlatformIdentityService.updateUserPresence(String, String, String)- Specified by:
presencein interfacePlatformUserBuilder- Parameters:
presence- that the user should have- See Also:
for known states
-
state
public PlatformUserBuilder state(String state)
- Specified by:
statein interfacePlatformUserBuilder
-
subState
public PlatformUserBuilder subState(String subState)
- Specified by:
subStatein interfacePlatformUserBuilder
-
firstName
public PlatformUserBuilder firstName(String firstName)
- Specified by:
firstNamein interfacePlatformUserBuilder
-
lastName
public PlatformUserBuilder lastName(String lastName)
- Specified by:
lastNamein interfacePlatformUserBuilder
-
displayName
public PlatformUserBuilder displayName(String displayName)
- Specified by:
displayNamein interfacePlatformUserBuilder
-
avatarId
public PlatformUserBuilder avatarId(String avatarId)
- Specified by:
avatarIdin interfacePlatformUserBuilder
-
email
public PlatformUserBuilder email(String email)
- Specified by:
emailin interfacePlatformUserBuilder
-
password
public PlatformUserBuilder password(String password)
- Specified by:
passwordin interfacePlatformUserBuilder
-
language
public PlatformUserBuilder language(String language)
- Specified by:
languagein interfacePlatformUserBuilder
-
theme
public PlatformUserBuilder theme(String theme)
- Specified by:
themein interfacePlatformUserBuilder
-
setInfo
public PlatformUserBuilder setInfo(String name, Object value)
- Specified by:
setInfoin interfacePlatformUserBuilder
-
save
public PlatformUser save()
Description copied from interface:PlatformUserBuilderPerforms the save of the user- Specified by:
savein interfacePlatformUserBuilder- Returns:
- the saved
PlatformUser
-
executeSave
protected PlatformUser executeSave(CommandContext commandContext)
-
isPropertyModified
protected boolean isPropertyModified(String property)
-
getOriginalPlatformUser
public PlatformUserEntity getOriginalPlatformUser()
-
getPlatformUser
public PlatformUserEntity getPlatformUser()
-
-