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
A base implementation of
PlatformUser
that can be used
when implementing a custom PlatformIdentityService
- Author:
- Filip Hrisafov
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Boolean
protected String
protected Date
protected String
protected String
protected String
protected String
protected String
protected List<PlatformIdentityInfo>
protected String
protected String
protected String
protected String
protected Date
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Date
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
findOrElse
(String name, Class<T> clazz, T defaultValue) <T> T
findOrElseGet
(String name, Class<T> clazz, Supplier<T> defaultValueSupplier) Returns the optional avatar image ID, if this user has an avatar saved in their profile.getEmail()
getId()
Returns the identity info properties of this user.Returns the language of this user.Returns the current presence of the user.The time the current presence of the user was setgetState()
Returns the state of this user.Returns the sub state of this user.getTheme()
getType()
The type of the user.protected <T> T
getVariable
(String variableName) boolean
hasVariable
(String variableName) boolean
isActive()
Returnstrue
if this user is active,false
if it is deactivated,null
if cannot be determined because the state field is not available.boolean
void
void
setAvatarId
(String avatarId) void
setCreationTime
(Date creationTime) void
setCreatorId
(String creatorId) void
setDisplayName
(String displayName) void
void
setFirstName
(String firstName) void
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
void
setSubState
(String subState) void
setSubType
(String subType) void
setTenantId
(String tenantId) void
void
setTransientVariable
(String variableName, Object variableValue) void
void
setUpdaterId
(String updaterId) void
setUpdateTime
(Date updateTime) void
setUserDefinitionKey
(String userDefinitionKey) void
setVariable
(String variableName, Object variableValue) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.flowable.core.idm.api.PlatformUser
findString, isBot, isExternalUser
-
Field Details
-
id
-
firstName
-
lastName
-
displayName
-
email
-
tenantId
-
active
-
avatarId
-
state
-
subState
-
type
-
subType
-
userDefinitionKey
-
language
-
theme
-
presence
-
presenceTime
-
creatorId
-
creationTime
-
updaterId
-
updateTime
-
password
-
identityInfo
-
-
Constructor Details
-
BasicPlatformUser
public BasicPlatformUser()
-
-
Method Details
-
getId
-
setId
-
getFirstName
- Specified by:
getFirstName
in interfaceUser
-
setFirstName
- Specified by:
setFirstName
in interfaceUser
-
getLastName
- Specified by:
getLastName
in interfaceUser
-
setLastName
- Specified by:
setLastName
in interfaceUser
-
getDisplayName
- Specified by:
getDisplayName
in interfaceUser
-
setDisplayName
- Specified by:
setDisplayName
in interfaceUser
-
getEmail
-
setEmail
-
isActive
public boolean isActive()Description copied from interface:PlatformUser
Returnstrue
if this user is active,false
if it is deactivated,null
if cannot be determined because the state field is not available.- Specified by:
isActive
in interfacePlatformUser
- Returns:
true
if this user is active
-
setActive
-
getTenantId
- Specified by:
getTenantId
in interfaceUser
- Specified by:
getTenantId
in interfaceVariableContainer
-
setTenantId
- Specified by:
setTenantId
in interfaceUser
-
getAvatarId
Description copied from interface:PlatformUser
Returns the optional avatar image ID, if this user has an avatar saved in their profile. This can be a content item ID- Specified by:
getAvatarId
in interfacePlatformUser
- Returns:
- the optional avatar image ID
-
setAvatarId
-
getState
Description copied from interface:PlatformUser
Returns the state of this user.- Specified by:
getState
in interfacePlatformUser
- Returns:
- the state
-
setState
-
getSubState
Description copied from interface:PlatformUser
Returns the sub state of this user.- Specified by:
getSubState
in interfacePlatformUser
- Returns:
- the sub state
-
setSubState
-
getType
Description copied from interface:PlatformUser
The 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:
getType
in interfacePlatformUser
- Returns:
- the type of the user
- See Also:
-
setType
-
getSubType
- Specified by:
getSubType
in interfacePlatformUser
-
setSubType
-
getUserDefinitionKey
- Specified by:
getUserDefinitionKey
in interfacePlatformUser
-
setUserDefinitionKey
-
getLanguage
Description copied from interface:PlatformUser
Returns the language of this user.- Specified by:
getLanguage
in interfacePlatformUser
- Returns:
- the language
-
setLanguage
-
getTheme
- Specified by:
getTheme
in interfacePlatformUser
-
setTheme
-
getPresence
Description copied from interface:PlatformUser
Returns the current presence of the user.- Specified by:
getPresence
in interfacePlatformUser
- Returns:
- the presence of the user
- See Also:
-
setPresence
-
getPresenceTime
Description copied from interface:PlatformUser
The time the current presence of the user was set- Specified by:
getPresenceTime
in interfacePlatformUser
- Returns:
- the time the presence of the user was set
-
setPresenceTime
-
getCreatorId
- Specified by:
getCreatorId
in interfacePlatformUser
-
setCreatorId
-
getCreationTime
- Specified by:
getCreationTime
in interfacePlatformUser
-
setCreationTime
-
getUpdaterId
- Specified by:
getUpdaterId
in interfacePlatformUser
-
setUpdaterId
-
getUpdateTime
- Specified by:
getUpdateTime
in interfacePlatformUser
-
setUpdateTime
-
getIdentityInfo
Description copied from interface:PlatformUser
Returns the identity info properties of this user.- Specified by:
getIdentityInfo
in interfacePlatformUser
- Returns:
- the identity info properties
-
setIdentityInfo
-
findOrElseGet
- Specified by:
findOrElseGet
in interfacePlatformUser
-
findOrElse
- Specified by:
findOrElse
in interfacePlatformUser
-
getValue
-
getPassword
- Specified by:
getPassword
in interfaceUser
-
setPassword
- Specified by:
setPassword
in interfaceUser
-
isPictureSet
public boolean isPictureSet()- Specified by:
isPictureSet
in interfaceUser
-
hasVariable
- Specified by:
hasVariable
in interfaceVariableContainer
-
getVariable
- Specified by:
getVariable
in interfaceVariableContainer
-
setVariable
- Specified by:
setVariable
in interfaceVariableContainer
-
setTransientVariable
- Specified by:
setTransientVariable
in interfaceVariableContainer
-
toString
-