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
All Methods Instance Methods Concrete Methods 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 Detail
-
idmEngineConfiguration
protected final CoreIdmEngineConfiguration 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
protected PlatformUserEntity originalPlatformUser
-
platformUser
protected PlatformUserEntity platformUser
-
-
Constructor Detail
-
PlatformUserBuilderImpl
public PlatformUserBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, java.lang.String userId, boolean isUpdate)
-
-
Method Detail
-
tenantId
public PlatformUserBuilder tenantId(java.lang.String tenantId)
- Specified by:
tenantId
in interfacePlatformUserBuilder
-
userDefinitionId
public PlatformUserBuilder userDefinitionId(java.lang.String userDefinitionId)
- Specified by:
userDefinitionId
in interfacePlatformUserBuilder
-
userDefinitionKey
public PlatformUserBuilder userDefinitionKey(java.lang.String userDefinitionKey)
- Specified by:
userDefinitionKey
in interfacePlatformUserBuilder
-
type
public PlatformUserBuilder type(java.lang.String 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
public PlatformUserBuilder subType(java.lang.String subType)
- Specified by:
subType
in interfacePlatformUserBuilder
-
presence
public PlatformUserBuilder presence(java.lang.String 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, String)
- Specified by:
presence
in interfacePlatformUserBuilder
- Parameters:
presence
- that the user should have- See Also:
for known states
-
state
public PlatformUserBuilder state(java.lang.String state)
- Specified by:
state
in interfacePlatformUserBuilder
-
subState
public PlatformUserBuilder subState(java.lang.String subState)
- Specified by:
subState
in interfacePlatformUserBuilder
-
firstName
public PlatformUserBuilder firstName(java.lang.String firstName)
- Specified by:
firstName
in interfacePlatformUserBuilder
-
lastName
public PlatformUserBuilder lastName(java.lang.String lastName)
- Specified by:
lastName
in interfacePlatformUserBuilder
-
displayName
public PlatformUserBuilder displayName(java.lang.String displayName)
- Specified by:
displayName
in interfacePlatformUserBuilder
-
avatarId
public PlatformUserBuilder avatarId(java.lang.String avatarId)
- Specified by:
avatarId
in interfacePlatformUserBuilder
-
email
public PlatformUserBuilder email(java.lang.String email)
- Specified by:
email
in interfacePlatformUserBuilder
-
password
public PlatformUserBuilder password(java.lang.String password)
- Specified by:
password
in interfacePlatformUserBuilder
-
language
public PlatformUserBuilder language(java.lang.String language)
- Specified by:
language
in interfacePlatformUserBuilder
-
theme
public PlatformUserBuilder theme(java.lang.String theme)
- Specified by:
theme
in interfacePlatformUserBuilder
-
setInfo
public PlatformUserBuilder setInfo(java.lang.String name, java.lang.Object value)
- Specified by:
setInfo
in interfacePlatformUserBuilder
-
save
public PlatformUser 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
public PlatformUserEntity getOriginalPlatformUser()
-
getPlatformUser
public PlatformUserEntity getPlatformUser()
-
-