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, waitfindString, isBot, isExternalUserprotected 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 Userpublic void setFirstName(String firstName)
setFirstName in interface Userpublic String getLastName()
getLastName in interface Userpublic void setLastName(String lastName)
setLastName in interface Userpublic String getDisplayName()
getDisplayName in interface Userpublic void setDisplayName(String displayName)
setDisplayName in interface Userpublic boolean isActive()
PlatformUsertrue 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 PlatformUsertrue if this user is activepublic void setActive(Boolean active)
public String getTenantId()
getTenantId in interface VariableContainergetTenantId in interface Userpublic void setTenantId(String tenantId)
setTenantId in interface Userpublic String getAvatarId()
PlatformUsergetAvatarId in interface PlatformUserpublic void setAvatarId(String avatarId)
public String getState()
PlatformUsergetState in interface PlatformUserpublic void setState(String state)
public String getSubState()
PlatformUsergetSubState in interface PlatformUserpublic void setSubState(String subState)
public String getType()
PlatformUsergetType in interface PlatformUserfor known typespublic void setType(String type)
public String getSubType()
getSubType in interface PlatformUserpublic void setSubType(String subType)
public String getUserDefinitionKey()
getUserDefinitionKey in interface PlatformUserpublic void setUserDefinitionKey(String userDefinitionKey)
public String getLanguage()
PlatformUsergetLanguage in interface PlatformUserpublic void setLanguage(String language)
public String getTheme()
getTheme in interface PlatformUserpublic void setTheme(String theme)
public String getPresence()
PlatformUsergetPresence in interface PlatformUserfor known statespublic void setPresence(String presence)
public Date getPresenceTime()
PlatformUsergetPresenceTime in interface PlatformUserpublic void setPresenceTime(Date presenceTime)
public String getCreatorId()
getCreatorId in interface PlatformUserpublic void setCreatorId(String creatorId)
public Date getCreationTime()
getCreationTime in interface PlatformUserpublic void setCreationTime(Date creationTime)
public String getUpdaterId()
getUpdaterId in interface PlatformUserpublic void setUpdaterId(String updaterId)
public Date getUpdateTime()
getUpdateTime in interface PlatformUserpublic void setUpdateTime(Date updateTime)
public List<PlatformIdentityInfo> getIdentityInfo()
PlatformUsergetIdentityInfo in interface PlatformUserpublic void setIdentityInfo(List<PlatformIdentityInfo> identityInfo)
public <T> T findOrElseGet(String name, Class<T> clazz, Supplier<T> defaultValueSupplier)
findOrElseGet in interface PlatformUserpublic <T> T findOrElse(String name, Class<T> clazz, T defaultValue)
findOrElse in interface PlatformUserpublic String getPassword()
getPassword in interface Userpublic void setPassword(String password)
setPassword in interface Userpublic boolean isPictureSet()
isPictureSet in interface Userpublic boolean hasVariable(String variableName)
hasVariable in interface VariableContainerpublic Object getVariable(String variableName)
getVariable in interface VariableContainerpublic void setVariable(String variableName, Object variableValue)
setVariable in interface VariableContainerpublic void setTransientVariable(String variableName, Object variableValue)
setTransientVariable in interface VariableContainer