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 java.lang.Object implements PlatformUserBuilder
- Author:
- Filip Hrisafov, Joram Barrez
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringavatarIdprotected java.util.Map<java.lang.String,java.lang.Object>customInfoprotected java.lang.StringdisplayNameprotected java.lang.Stringemailprotected java.lang.StringfirstNameprotected CoreIdmEngineConfigurationidmEngineConfigurationprotected booleanisUpdateprotected java.lang.Stringlanguageprotected java.lang.StringlastNameprotected java.util.Set<java.lang.String>modifiedPropertiesprotected PlatformUserEntityoriginalPlatformUserprotected java.lang.Stringpasswordprotected PlatformUserEntityplatformUserprotected java.lang.Stringpresenceprotected java.lang.Stringstateprotected java.lang.StringsubStateprotected java.lang.StringsubTypeprotected java.lang.StringtenantIdprotected java.lang.Stringthemeprotected java.lang.Stringtypeprotected java.lang.StringuserDefinitionIdprotected java.lang.StringuserDefinitionKeyprotected java.lang.StringuserId -
Constructor Summary
Constructors Constructor Description PlatformUserBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, java.lang.String userId, boolean isUpdate) -
Method Summary
Modifier and Type Method Description PlatformUserBuilderavatarId(java.lang.String avatarId)PlatformUserBuilderdisplayName(java.lang.String displayName)PlatformUserBuilderemail(java.lang.String email)protected PlatformUserexecuteSave(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)PlatformUserBuilderfirstName(java.lang.String firstName)PlatformUserEntitygetOriginalPlatformUser()PlatformUserEntitygetPlatformUser()protected booleanisPropertyModified(java.lang.String property)PlatformUserBuilderlanguage(java.lang.String language)PlatformUserBuilderlastName(java.lang.String lastName)PlatformUserBuilderpassword(java.lang.String password)PlatformUserBuilderpresence(java.lang.String presence)Setting the presence is only possible for new users.PlatformUsersave()Performs the save of the userPlatformUserBuildersetInfo(java.lang.String name, java.lang.Object value)PlatformUserBuilderstate(java.lang.String state)PlatformUserBuildersubState(java.lang.String subState)PlatformUserBuildersubType(java.lang.String subType)PlatformUserBuildertenantId(java.lang.String tenantId)PlatformUserBuildertheme(java.lang.String theme)PlatformUserBuildertype(java.lang.String type)Set the type of the user.PlatformUserBuilderuserDefinitionId(java.lang.String userDefinitionId)PlatformUserBuilderuserDefinitionKey(java.lang.String userDefinitionKey)
-
Field Details
-
idmEngineConfiguration
-
userId
protected final java.lang.String userId -
isUpdate
protected final boolean isUpdate -
tenantId
protected java.lang.String tenantId -
userDefinitionId
protected java.lang.String userDefinitionId -
userDefinitionKey
protected java.lang.String userDefinitionKey -
type
protected java.lang.String type -
subType
protected java.lang.String subType -
presence
protected java.lang.String presence -
state
protected java.lang.String state -
subState
protected java.lang.String subState -
firstName
protected java.lang.String firstName -
lastName
protected java.lang.String lastName -
displayName
protected java.lang.String displayName -
avatarId
protected java.lang.String avatarId -
email
protected java.lang.String email -
password
protected java.lang.String password -
language
protected java.lang.String language -
theme
protected java.lang.String theme -
customInfo
protected java.util.Map<java.lang.String,java.lang.Object> customInfo -
modifiedProperties
protected java.util.Set<java.lang.String> modifiedProperties -
originalPlatformUser
-
platformUser
-
-
Constructor Details
-
PlatformUserBuilderImpl
public PlatformUserBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, java.lang.String userId, boolean isUpdate)
-
-
Method Details
-
tenantId
- Specified by:
tenantIdin interfacePlatformUserBuilder
-
userDefinitionId
- Specified by:
userDefinitionIdin interfacePlatformUserBuilder
-
userDefinitionKey
- Specified by:
userDefinitionKeyin interfacePlatformUserBuilder
-
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
- Specified by:
subTypein interfacePlatformUserBuilder
-
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
- Specified by:
statein interfacePlatformUserBuilder
-
subState
- Specified by:
subStatein interfacePlatformUserBuilder
-
firstName
- Specified by:
firstNamein interfacePlatformUserBuilder
-
lastName
- Specified by:
lastNamein interfacePlatformUserBuilder
-
displayName
- Specified by:
displayNamein interfacePlatformUserBuilder
-
avatarId
- Specified by:
avatarIdin interfacePlatformUserBuilder
-
email
- Specified by:
emailin interfacePlatformUserBuilder
-
password
- Specified by:
passwordin interfacePlatformUserBuilder
-
language
- Specified by:
languagein interfacePlatformUserBuilder
-
theme
- Specified by:
themein interfacePlatformUserBuilder
-
setInfo
- Specified by:
setInfoin interfacePlatformUserBuilder
-
save
Description copied from interface:PlatformUserBuilderPerforms the save of the user- Specified by:
savein interfacePlatformUserBuilder- Returns:
- the saved
PlatformUser
-
executeSave
protected PlatformUser executeSave(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
isPropertyModified
protected boolean isPropertyModified(java.lang.String property) -
getOriginalPlatformUser
-
getPlatformUser
-