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 String
avatarId
protected Map<String,Object>
customInfo
protected String
displayName
protected String
email
protected String
firstName
protected CoreIdmEngineConfiguration
idmEngineConfiguration
protected boolean
isUpdate
protected String
language
protected String
lastName
protected Set<String>
modifiedProperties
protected PlatformUserEntity
originalPlatformUser
protected String
password
protected PlatformUserEntity
platformUser
protected String
presence
protected String
state
protected String
subState
protected String
subType
protected String
tenantId
protected String
theme
protected String
type
protected String
userDefinitionId
protected String
userDefinitionKey
protected String
userId
-
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:
tenantId
in interfacePlatformUserBuilder
-
userDefinitionId
public PlatformUserBuilder userDefinitionId(String userDefinitionId)
- Specified by:
userDefinitionId
in interfacePlatformUserBuilder
-
userDefinitionKey
public PlatformUserBuilder userDefinitionKey(String userDefinitionKey)
- Specified by:
userDefinitionKey
in interfacePlatformUserBuilder
-
type
public PlatformUserBuilder type(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(String subType)
- Specified by:
subType
in interfacePlatformUserBuilder
-
presence
public PlatformUserBuilder presence(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(String state)
- Specified by:
state
in interfacePlatformUserBuilder
-
subState
public PlatformUserBuilder subState(String subState)
- Specified by:
subState
in interfacePlatformUserBuilder
-
firstName
public PlatformUserBuilder firstName(String firstName)
- Specified by:
firstName
in interfacePlatformUserBuilder
-
lastName
public PlatformUserBuilder lastName(String lastName)
- Specified by:
lastName
in interfacePlatformUserBuilder
-
displayName
public PlatformUserBuilder displayName(String displayName)
- Specified by:
displayName
in interfacePlatformUserBuilder
-
avatarId
public PlatformUserBuilder avatarId(String avatarId)
- Specified by:
avatarId
in interfacePlatformUserBuilder
-
email
public PlatformUserBuilder email(String email)
- Specified by:
email
in interfacePlatformUserBuilder
-
password
public PlatformUserBuilder password(String password)
- Specified by:
password
in interfacePlatformUserBuilder
-
language
public PlatformUserBuilder language(String language)
- Specified by:
language
in interfacePlatformUserBuilder
-
theme
public PlatformUserBuilder theme(String theme)
- Specified by:
theme
in interfacePlatformUserBuilder
-
setInfo
public PlatformUserBuilder setInfo(String name, 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(CommandContext commandContext)
-
isPropertyModified
protected boolean isPropertyModified(String property)
-
getOriginalPlatformUser
public PlatformUserEntity getOriginalPlatformUser()
-
getPlatformUser
public PlatformUserEntity getPlatformUser()
-
-