public class PlatformUserBuilderImpl extends Object implements PlatformUserBuilder
Modifier and Type | Field and 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 and Description |
---|
PlatformUserBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration,
String userId,
boolean isUpdate) |
protected final CoreIdmEngineConfiguration idmEngineConfiguration
protected final String userId
protected final boolean isUpdate
protected String tenantId
protected String userDefinitionId
protected String userDefinitionKey
protected String type
protected String subType
protected String presence
protected String state
protected String subState
protected String firstName
protected String lastName
protected String displayName
protected String avatarId
protected String email
protected String password
protected String language
protected String theme
protected PlatformUserEntity originalPlatformUser
protected PlatformUserEntity platformUser
public PlatformUserBuilderImpl(CoreIdmEngineConfiguration idmEngineConfiguration, String userId, boolean isUpdate)
public PlatformUserBuilder tenantId(String tenantId)
tenantId
in interface PlatformUserBuilder
public PlatformUserBuilder userDefinitionId(String userDefinitionId)
userDefinitionId
in interface PlatformUserBuilder
public PlatformUserBuilder userDefinitionKey(String userDefinitionKey)
userDefinitionKey
in interface PlatformUserBuilder
public PlatformUserBuilder type(String type)
PlatformUserBuilder
type
in interface PlatformUserBuilder
type
- that the user should havefor known types
public PlatformUserBuilder subType(String subType)
subType
in interface PlatformUserBuilder
public PlatformUserBuilder presence(String presence)
PlatformUserBuilder
PlatformIdentityService.updateUserPresence(String, String, String)
presence
in interface PlatformUserBuilder
presence
- that the user should havefor known states
public PlatformUserBuilder state(String state)
state
in interface PlatformUserBuilder
public PlatformUserBuilder subState(String subState)
subState
in interface PlatformUserBuilder
public PlatformUserBuilder firstName(String firstName)
firstName
in interface PlatformUserBuilder
public PlatformUserBuilder lastName(String lastName)
lastName
in interface PlatformUserBuilder
public PlatformUserBuilder displayName(String displayName)
displayName
in interface PlatformUserBuilder
public PlatformUserBuilder avatarId(String avatarId)
avatarId
in interface PlatformUserBuilder
public PlatformUserBuilder email(String email)
email
in interface PlatformUserBuilder
public PlatformUserBuilder password(String password)
password
in interface PlatformUserBuilder
public PlatformUserBuilder language(String language)
language
in interface PlatformUserBuilder
public PlatformUserBuilder theme(String theme)
theme
in interface PlatformUserBuilder
public PlatformUserBuilder setInfo(String name, Object value)
setInfo
in interface PlatformUserBuilder
public PlatformUser save()
PlatformUserBuilder
save
in interface PlatformUserBuilder
PlatformUser
protected PlatformUser executeSave(CommandContext commandContext)
protected boolean isPropertyModified(String property)
public PlatformUserEntity getOriginalPlatformUser()
public PlatformUserEntity getPlatformUser()