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
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Stringprotected Dateprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected List<PlatformIdentityInfo>protected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TfindOrElse(String name, Class<T> clazz, T defaultValue) <T> TfindOrElseGet(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> TgetVariable(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.booleanvoidvoidsetAvatarId(String avatarId) voidsetCreationTime(Date creationTime) voidsetCreatorId(String creatorId) voidsetDisplayName(String displayName) voidvoidsetFirstName(String firstName) voidvoidsetIdentityInfo(List<PlatformIdentityInfo> identityInfo) voidsetLanguage(String language) voidsetLastName(String lastName) voidsetPassword(String password) voidsetPresence(String presence) voidsetPresenceTime(Date presenceTime) voidvoidsetSubState(String subState) voidsetSubType(String subType) voidsetTenantId(String tenantId) voidvoidsetTransientVariable(String variableName, Object variableValue) voidvoidsetUpdaterId(String updaterId) voidsetUpdateTime(Date updateTime) voidsetUserDefinitionKey(String userDefinitionKey) voidsetVariable(String variableName, Object variableValue) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getFirstNamein interfaceUser
-
setFirstName
- Specified by:
setFirstNamein interfaceUser
-
getLastName
- Specified by:
getLastNamein interfaceUser
-
setLastName
- Specified by:
setLastNamein interfaceUser
-
getDisplayName
- Specified by:
getDisplayNamein interfaceUser
-
setDisplayName
- Specified by:
setDisplayNamein interfaceUser
-
getEmail
-
setEmail
-
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
-
getTenantId
- Specified by:
getTenantIdin interfaceUser- Specified by:
getTenantIdin interfaceVariableContainer
-
setTenantId
- Specified by:
setTenantIdin interfaceUser
-
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
-
getState
Description copied from interface:PlatformUserReturns the state of this user.- Specified by:
getStatein interfacePlatformUser- Returns:
- the state
-
setState
-
getSubState
Description copied from interface:PlatformUserReturns the sub state of this user.- Specified by:
getSubStatein interfacePlatformUser- Returns:
- the sub state
-
setSubState
-
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:
-
setType
-
getSubType
- Specified by:
getSubTypein interfacePlatformUser
-
setSubType
-
getUserDefinitionKey
- Specified by:
getUserDefinitionKeyin interfacePlatformUser
-
setUserDefinitionKey
-
getLanguage
Description copied from interface:PlatformUserReturns the language of this user.- Specified by:
getLanguagein interfacePlatformUser- Returns:
- the language
-
setLanguage
-
getTheme
- Specified by:
getThemein interfacePlatformUser
-
setTheme
-
getPresence
Description copied from interface:PlatformUserReturns the current presence of the user.- Specified by:
getPresencein interfacePlatformUser- Returns:
- the presence of the user
- See Also:
-
setPresence
-
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
-
getCreatorId
- Specified by:
getCreatorIdin interfacePlatformUser
-
setCreatorId
-
getCreationTime
- Specified by:
getCreationTimein interfacePlatformUser
-
setCreationTime
-
getUpdaterId
- Specified by:
getUpdaterIdin interfacePlatformUser
-
setUpdaterId
-
getUpdateTime
- Specified by:
getUpdateTimein interfacePlatformUser
-
setUpdateTime
-
getIdentityInfo
Description copied from interface:PlatformUserReturns the identity info properties of this user.- Specified by:
getIdentityInfoin interfacePlatformUser- Returns:
- the identity info properties
-
setIdentityInfo
-
findOrElseGet
- Specified by:
findOrElseGetin interfacePlatformUser
-
findOrElse
- Specified by:
findOrElsein interfacePlatformUser
-
getValue
-
getPassword
- Specified by:
getPasswordin interfaceUser
-
setPassword
- Specified by:
setPasswordin interfaceUser
-
isPictureSet
public boolean isPictureSet()- Specified by:
isPictureSetin interfaceUser
-
hasVariable
- Specified by:
hasVariablein interfaceVariableContainer
-
getVariable
- Specified by:
getVariablein interfaceVariableContainer
-
setVariable
- Specified by:
setVariablein interfaceVariableContainer
-
setTransientVariable
- Specified by:
setTransientVariablein interfaceVariableContainer
-
toString
-