Package com.flowable.idm.engine.impl
Class BasicPlatformUser
- java.lang.Object
-
- com.flowable.idm.engine.impl.BasicPlatformUser
-
- All Implemented Interfaces:
PlatformUser,Serializable,VariableContainer,User
- Direct Known Subclasses:
LdapPlatformUser
public class BasicPlatformUser extends Object implements PlatformUser, VariableContainer
A base implementation ofPlatformUserthat can be used when implementing a customPlatformIdentityService- Author:
- Filip Hrisafov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanactiveprotected StringavatarIdprotected DatecreationTimeprotected StringcreatorIdprotected StringdisplayNameprotected Stringemailprotected StringfirstNameprotected Stringidprotected List<PlatformIdentityInfo>identityInfoprotected Stringlanguageprotected StringlastNameprotected Stringpasswordprotected Stringpresenceprotected DatepresenceTimeprotected Stringstateprotected StringsubStateprotected StringsubTypeprotected StringtenantIdprotected Stringthemeprotected Stringtypeprotected StringupdaterIdprotected DateupdateTimeprotected StringuserDefinitionKey
-
Constructor Summary
Constructors Constructor Description BasicPlatformUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TfindOrElse(String name, Class<T> clazz, T defaultValue)<T> TfindOrElseGet(String name, Class<T> clazz, Supplier<T> defaultValueSupplier)StringgetAvatarId()Returns the optional avatar image ID, if this user has an avatar saved in their profile.DategetCreationTime()StringgetCreatorId()StringgetDisplayName()StringgetEmail()StringgetFirstName()StringgetId()List<PlatformIdentityInfo>getIdentityInfo()Returns the identity info properties of this user.StringgetLanguage()Returns the language of this user.StringgetLastName()StringgetPassword()StringgetPresence()Returns the current presence of the user.DategetPresenceTime()The time the current presence of the user was setStringgetState()Returns the state of this user.StringgetSubState()Returns the sub state of this user.StringgetSubType()StringgetTenantId()StringgetTheme()StringgetType()The type of the user.StringgetUpdaterId()DategetUpdateTime()StringgetUserDefinitionKey()protected <T> TgetValue(String name, Class<T> clazz)ObjectgetVariable(String variableName)booleanhasVariable(String variableName)booleanisActive()Returnstrueif this user is active,falseif it is deactivated,nullif cannot be determined because the state field is not available.booleanisPictureSet()voidsetActive(Boolean active)voidsetAvatarId(String avatarId)voidsetCreationTime(Date creationTime)voidsetCreatorId(String creatorId)voidsetDisplayName(String displayName)voidsetEmail(String email)voidsetFirstName(String firstName)voidsetId(String id)voidsetIdentityInfo(List<PlatformIdentityInfo> identityInfo)voidsetLanguage(String language)voidsetLastName(String lastName)voidsetPassword(String password)voidsetPresence(String presence)voidsetPresenceTime(Date presenceTime)voidsetState(String state)voidsetSubState(String subState)voidsetSubType(String subType)voidsetTenantId(String tenantId)voidsetTheme(String theme)voidsetTransientVariable(String variableName, Object variableValue)voidsetType(String type)voidsetUpdaterId(String updaterId)voidsetUpdateTime(Date updateTime)voidsetUserDefinitionKey(String userDefinitionKey)voidsetVariable(String variableName, Object variableValue)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.flowable.core.idm.api.PlatformUser
findString, isBot, isExternalUser
-
-
-
-
Field Detail
-
id
protected String id
-
firstName
protected String firstName
-
lastName
protected String lastName
-
displayName
protected String displayName
-
email
protected String email
-
tenantId
protected String tenantId
-
active
protected Boolean active
-
avatarId
protected String avatarId
-
state
protected String state
-
subState
protected String subState
-
type
protected String type
-
subType
protected String subType
-
userDefinitionKey
protected String userDefinitionKey
-
language
protected String language
-
theme
protected String theme
-
presence
protected String presence
-
presenceTime
protected Date presenceTime
-
creatorId
protected String creatorId
-
creationTime
protected Date creationTime
-
updaterId
protected String updaterId
-
updateTime
protected Date updateTime
-
password
protected String password
-
identityInfo
protected List<PlatformIdentityInfo> identityInfo
-
-
Method Detail
-
getFirstName
public String getFirstName()
- Specified by:
getFirstNamein interfaceUser
-
setFirstName
public void setFirstName(String firstName)
- Specified by:
setFirstNamein interfaceUser
-
getLastName
public String getLastName()
- Specified by:
getLastNamein interfaceUser
-
setLastName
public void setLastName(String lastName)
- Specified by:
setLastNamein interfaceUser
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceUser
-
setDisplayName
public void setDisplayName(String displayName)
- Specified by:
setDisplayNamein interfaceUser
-
isActive
public boolean isActive()
Description copied from interface:PlatformUserReturnstrueif this user is active,falseif it is deactivated,nullif cannot be determined because the state field is not available.- Specified by:
isActivein interfacePlatformUser- Returns:
trueif this user is active
-
setActive
public void setActive(Boolean active)
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceUser- Specified by:
getTenantIdin interfaceVariableContainer
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantIdin interfaceUser
-
getAvatarId
public String getAvatarId()
Description copied from interface:PlatformUserReturns the optional avatar image ID, if this user has an avatar saved in their profile. This can be a content item ID- Specified by:
getAvatarIdin interfacePlatformUser- Returns:
- the optional avatar image ID
-
setAvatarId
public void setAvatarId(String avatarId)
-
getState
public String getState()
Description copied from interface:PlatformUserReturns the state of this user.- Specified by:
getStatein interfacePlatformUser- Returns:
- the state
-
setState
public void setState(String state)
-
getSubState
public String getSubState()
Description copied from interface:PlatformUserReturns the sub state of this user.- Specified by:
getSubStatein interfacePlatformUser- Returns:
- the sub state
-
setSubState
public void setSubState(String subState)
-
getType
public String getType()
Description copied from interface:PlatformUserThe type of the user. It is possible that a user does not have this set, in this case this is a normal non special user.- Specified by:
getTypein interfacePlatformUser- Returns:
- the type of the user
- See Also:
for known types
-
setType
public void setType(String type)
-
getSubType
public String getSubType()
- Specified by:
getSubTypein interfacePlatformUser
-
setSubType
public void setSubType(String subType)
-
getUserDefinitionKey
public String getUserDefinitionKey()
- Specified by:
getUserDefinitionKeyin interfacePlatformUser
-
setUserDefinitionKey
public void setUserDefinitionKey(String userDefinitionKey)
-
getLanguage
public String getLanguage()
Description copied from interface:PlatformUserReturns the language of this user.- Specified by:
getLanguagein interfacePlatformUser- Returns:
- the language
-
setLanguage
public void setLanguage(String language)
-
getTheme
public String getTheme()
- Specified by:
getThemein interfacePlatformUser
-
setTheme
public void setTheme(String theme)
-
getPresence
public String getPresence()
Description copied from interface:PlatformUserReturns the current presence of the user.- Specified by:
getPresencein interfacePlatformUser- Returns:
- the presence of the user
- See Also:
for known states
-
setPresence
public void setPresence(String presence)
-
getPresenceTime
public Date getPresenceTime()
Description copied from interface:PlatformUserThe time the current presence of the user was set- Specified by:
getPresenceTimein interfacePlatformUser- Returns:
- the time the presence of the user was set
-
setPresenceTime
public void setPresenceTime(Date presenceTime)
-
getCreatorId
public String getCreatorId()
- Specified by:
getCreatorIdin interfacePlatformUser
-
setCreatorId
public void setCreatorId(String creatorId)
-
getCreationTime
public Date getCreationTime()
- Specified by:
getCreationTimein interfacePlatformUser
-
setCreationTime
public void setCreationTime(Date creationTime)
-
getUpdaterId
public String getUpdaterId()
- Specified by:
getUpdaterIdin interfacePlatformUser
-
setUpdaterId
public void setUpdaterId(String updaterId)
-
getUpdateTime
public Date getUpdateTime()
- Specified by:
getUpdateTimein interfacePlatformUser
-
setUpdateTime
public void setUpdateTime(Date updateTime)
-
getIdentityInfo
public List<PlatformIdentityInfo> getIdentityInfo()
Description copied from interface:PlatformUserReturns the identity info properties of this user.- Specified by:
getIdentityInfoin interfacePlatformUser- Returns:
- the identity info properties
-
setIdentityInfo
public void setIdentityInfo(List<PlatformIdentityInfo> identityInfo)
-
findOrElseGet
public <T> T findOrElseGet(String name, Class<T> clazz, Supplier<T> defaultValueSupplier)
- Specified by:
findOrElseGetin interfacePlatformUser
-
findOrElse
public <T> T findOrElse(String name, Class<T> clazz, T defaultValue)
- Specified by:
findOrElsein interfacePlatformUser
-
getPassword
public String getPassword()
- Specified by:
getPasswordin interfaceUser
-
setPassword
public void setPassword(String password)
- Specified by:
setPasswordin interfaceUser
-
isPictureSet
public boolean isPictureSet()
- Specified by:
isPictureSetin interfaceUser
-
hasVariable
public boolean hasVariable(String variableName)
- Specified by:
hasVariablein interfaceVariableContainer
-
getVariable
public Object getVariable(String variableName)
- Specified by:
getVariablein interfaceVariableContainer
-
setVariable
public void setVariable(String variableName, Object variableValue)
- Specified by:
setVariablein interfaceVariableContainer
-
setTransientVariable
public void setTransientVariable(String variableName, Object variableValue)
- Specified by:
setTransientVariablein interfaceVariableContainer
-
-