public class BasicPlatformUser extends Object implements PlatformUser, VariableContainer
PlatformUser
that can be used
when implementing a custom PlatformIdentityService
Modifier and Type | Field and Description |
---|---|
protected Boolean |
active |
protected String |
avatarId |
protected Date |
creationTime |
protected String |
creatorId |
protected String |
displayName |
protected String |
email |
protected String |
firstName |
protected String |
id |
protected List<PlatformIdentityInfo> |
identityInfo |
protected String |
language |
protected String |
lastName |
protected String |
password |
protected String |
presence |
protected Date |
presenceTime |
protected String |
state |
protected String |
subState |
protected String |
subType |
protected String |
tenantId |
protected String |
theme |
protected String |
type |
protected String |
updaterId |
protected Date |
updateTime |
protected String |
userDefinitionKey |
Constructor and Description |
---|
BasicPlatformUser() |
Modifier and Type | Method and Description |
---|---|
<T> T |
findOrElse(String name,
Class<T> clazz,
T defaultValue) |
<T> T |
findOrElseGet(String name,
Class<T> clazz,
Supplier<T> defaultValueSupplier) |
String |
getAvatarId()
Returns the optional avatar image ID, if this user has an avatar saved in their profile.
|
Date |
getCreationTime() |
String |
getCreatorId() |
String |
getDisplayName() |
String |
getEmail() |
String |
getFirstName() |
String |
getId() |
List<PlatformIdentityInfo> |
getIdentityInfo()
Returns the identity info properties of this user.
|
String |
getLanguage()
Returns the language of this user.
|
String |
getLastName() |
String |
getPassword() |
String |
getPresence()
Returns the current presence of the user.
|
Date |
getPresenceTime()
The time the current presence of the user was set
|
String |
getState()
Returns the state of this user.
|
String |
getSubState()
Returns the sub state of this user.
|
String |
getSubType() |
String |
getTenantId() |
String |
getTheme() |
String |
getType()
The type of the user.
|
String |
getUpdaterId() |
Date |
getUpdateTime() |
String |
getUserDefinitionKey() |
protected <T> T |
getValue(String name,
Class<T> clazz) |
Object |
getVariable(String variableName) |
boolean |
hasVariable(String variableName) |
boolean |
isActive()
Returns
true if this user is active, false if it is deactivated, null if cannot be determined
because the state field is not available. |
boolean |
isPictureSet() |
void |
setActive(Boolean active) |
void |
setAvatarId(String avatarId) |
void |
setCreationTime(Date creationTime) |
void |
setCreatorId(String creatorId) |
void |
setDisplayName(String displayName) |
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setId(String id) |
void |
setIdentityInfo(List<PlatformIdentityInfo> identityInfo) |
void |
setLanguage(String language) |
void |
setLastName(String lastName) |
void |
setPassword(String password) |
void |
setPresence(String presence) |
void |
setPresenceTime(Date presenceTime) |
void |
setState(String state) |
void |
setSubState(String subState) |
void |
setSubType(String subType) |
void |
setTenantId(String tenantId) |
void |
setTheme(String theme) |
void |
setTransientVariable(String variableName,
Object variableValue) |
void |
setType(String type) |
void |
setUpdaterId(String updaterId) |
void |
setUpdateTime(Date updateTime) |
void |
setUserDefinitionKey(String userDefinitionKey) |
void |
setVariable(String variableName,
Object variableValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findString, isBot, isExternalUser
protected String id
protected String firstName
protected String lastName
protected String displayName
protected String email
protected String tenantId
protected Boolean active
protected String avatarId
protected String state
protected String subState
protected String type
protected String subType
protected String userDefinitionKey
protected String language
protected String theme
protected String presence
protected Date presenceTime
protected String creatorId
protected Date creationTime
protected String updaterId
protected Date updateTime
protected String password
protected List<PlatformIdentityInfo> identityInfo
public String getFirstName()
getFirstName
in interface User
public void setFirstName(String firstName)
setFirstName
in interface User
public String getLastName()
getLastName
in interface User
public void setLastName(String lastName)
setLastName
in interface User
public String getDisplayName()
getDisplayName
in interface User
public void setDisplayName(String displayName)
setDisplayName
in interface User
public boolean isActive()
PlatformUser
true
if this user is active, false
if it is deactivated, null
if cannot be determined
because the state field is not available.isActive
in interface PlatformUser
true
if this user is activepublic void setActive(Boolean active)
public String getTenantId()
getTenantId
in interface VariableContainer
getTenantId
in interface User
public void setTenantId(String tenantId)
setTenantId
in interface User
public String getAvatarId()
PlatformUser
getAvatarId
in interface PlatformUser
public void setAvatarId(String avatarId)
public String getState()
PlatformUser
getState
in interface PlatformUser
public void setState(String state)
public String getSubState()
PlatformUser
getSubState
in interface PlatformUser
public void setSubState(String subState)
public String getType()
PlatformUser
getType
in interface PlatformUser
for known types
public void setType(String type)
public String getSubType()
getSubType
in interface PlatformUser
public void setSubType(String subType)
public String getUserDefinitionKey()
getUserDefinitionKey
in interface PlatformUser
public void setUserDefinitionKey(String userDefinitionKey)
public String getLanguage()
PlatformUser
getLanguage
in interface PlatformUser
public void setLanguage(String language)
public String getTheme()
getTheme
in interface PlatformUser
public void setTheme(String theme)
public String getPresence()
PlatformUser
getPresence
in interface PlatformUser
for known states
public void setPresence(String presence)
public Date getPresenceTime()
PlatformUser
getPresenceTime
in interface PlatformUser
public void setPresenceTime(Date presenceTime)
public String getCreatorId()
getCreatorId
in interface PlatformUser
public void setCreatorId(String creatorId)
public Date getCreationTime()
getCreationTime
in interface PlatformUser
public void setCreationTime(Date creationTime)
public String getUpdaterId()
getUpdaterId
in interface PlatformUser
public void setUpdaterId(String updaterId)
public Date getUpdateTime()
getUpdateTime
in interface PlatformUser
public void setUpdateTime(Date updateTime)
public List<PlatformIdentityInfo> getIdentityInfo()
PlatformUser
getIdentityInfo
in interface PlatformUser
public void setIdentityInfo(List<PlatformIdentityInfo> identityInfo)
public <T> T findOrElseGet(String name, Class<T> clazz, Supplier<T> defaultValueSupplier)
findOrElseGet
in interface PlatformUser
public <T> T findOrElse(String name, Class<T> clazz, T defaultValue)
findOrElse
in interface PlatformUser
public String getPassword()
getPassword
in interface User
public void setPassword(String password)
setPassword
in interface User
public boolean isPictureSet()
isPictureSet
in interface User
public boolean hasVariable(String variableName)
hasVariable
in interface VariableContainer
public Object getVariable(String variableName)
getVariable
in interface VariableContainer
public void setVariable(String variableName, Object variableValue)
setVariable
in interface VariableContainer
public void setTransientVariable(String variableName, Object variableValue)
setTransientVariable
in interface VariableContainer