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.String
avatarId
protected java.util.Map<java.lang.String,java.lang.Object>
customInfo
protected java.lang.String
displayName
protected java.lang.String
email
protected java.lang.String
firstName
protected CoreIdmEngineConfiguration
idmEngineConfiguration
protected boolean
isUpdate
protected java.lang.String
language
protected java.lang.String
lastName
protected java.util.Set<java.lang.String>
modifiedProperties
protected PlatformUserEntity
originalPlatformUser
protected java.lang.String
password
protected PlatformUserEntity
platformUser
protected java.lang.String
presence
protected java.lang.String
state
protected java.lang.String
subState
protected java.lang.String
subType
protected java.lang.String
tenantId
protected java.lang.String
theme
protected java.lang.String
type
protected java.lang.String
userDefinitionId
protected java.lang.String
userDefinitionKey
protected java.lang.String
userId
-
Constructor Summary
Constructors Constructor Description PlatformUserBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, java.lang.String userId, boolean isUpdate)
-
Method Summary
Modifier and Type Method Description PlatformUserBuilder
avatarId(java.lang.String avatarId)
PlatformUserBuilder
displayName(java.lang.String displayName)
PlatformUserBuilder
email(java.lang.String email)
protected PlatformUser
executeSave(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
PlatformUserBuilder
firstName(java.lang.String firstName)
PlatformUserEntity
getOriginalPlatformUser()
PlatformUserEntity
getPlatformUser()
protected boolean
isPropertyModified(java.lang.String property)
PlatformUserBuilder
language(java.lang.String language)
PlatformUserBuilder
lastName(java.lang.String lastName)
PlatformUserBuilder
password(java.lang.String password)
PlatformUserBuilder
presence(java.lang.String presence)
Setting the presence is only possible for new users.PlatformUser
save()
Performs the save of the userPlatformUserBuilder
setInfo(java.lang.String name, java.lang.Object value)
PlatformUserBuilder
state(java.lang.String state)
PlatformUserBuilder
subState(java.lang.String subState)
PlatformUserBuilder
subType(java.lang.String subType)
PlatformUserBuilder
tenantId(java.lang.String tenantId)
PlatformUserBuilder
theme(java.lang.String theme)
PlatformUserBuilder
type(java.lang.String type)
Set the type of the user.PlatformUserBuilder
userDefinitionId(java.lang.String userDefinitionId)
PlatformUserBuilder
userDefinitionKey(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:
tenantId
in interfacePlatformUserBuilder
-
userDefinitionId
- Specified by:
userDefinitionId
in interfacePlatformUserBuilder
-
userDefinitionKey
- Specified by:
userDefinitionKey
in interfacePlatformUserBuilder
-
type
Description copied from interface:PlatformUserBuilder
Set the type of the user.- Specified by:
type
in interfacePlatformUserBuilder
- Parameters:
type
- that the user should have- See Also:
for known types
-
subType
- Specified by:
subType
in interfacePlatformUserBuilder
-
presence
Description copied from interface:PlatformUserBuilder
Setting the presence is only possible for new users. Updating a user presence should happen overPlatformIdentityService.updateUserPresence(String, String)
- Specified by:
presence
in interfacePlatformUserBuilder
- Parameters:
presence
- that the user should have- See Also:
for known states
-
state
- Specified by:
state
in interfacePlatformUserBuilder
-
subState
- Specified by:
subState
in interfacePlatformUserBuilder
-
firstName
- Specified by:
firstName
in interfacePlatformUserBuilder
-
lastName
- Specified by:
lastName
in interfacePlatformUserBuilder
-
displayName
- Specified by:
displayName
in interfacePlatformUserBuilder
-
avatarId
- Specified by:
avatarId
in interfacePlatformUserBuilder
-
email
- Specified by:
email
in interfacePlatformUserBuilder
-
password
- Specified by:
password
in interfacePlatformUserBuilder
-
language
- Specified by:
language
in interfacePlatformUserBuilder
-
theme
- Specified by:
theme
in interfacePlatformUserBuilder
-
setInfo
- Specified by:
setInfo
in interfacePlatformUserBuilder
-
save
Description copied from interface:PlatformUserBuilder
Performs the save of the user- Specified by:
save
in 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
-