Class PlatformUserEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
com.flowable.idm.engine.impl.persistence.entity.AbstractIdmEngineEntity
com.flowable.idm.engine.impl.persistence.entity.PlatformUserEntityImpl
- All Implemented Interfaces:
PlatformUser
,PlatformUserEntity
,Serializable
,VariableContainer
,HasRevision
,Entity
,User
- Author:
- Tom Baeyens, Arkadiy Gornovoy, Joram Barrez, Filip Hrisafov
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected Date
protected String
protected String
protected String
protected String
protected List<PlatformIdentityInfo>
The identity info for the user.protected boolean
protected String
protected String
protected String
protected String
protected Date
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PlatformIdentityInfoEntity
addIdentityInfo
(String name, Object value) findIdentityInfo
(String name) <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()
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 setGetter used by MyBatis when querying platform user with identity info included.getState()
Returns the state of this user.Returns the sub state of this user.getTheme()
getType()
The type of the user.protected <T> T
boolean
hasVariable
(String variableName) boolean
boolean
void
setAvatarId
(String avatarId) void
setCreationTime
(Date creationTime) void
setCreatorId
(String creatorId) void
setDisplayName
(String displayName) void
void
setFirstName
(String firstName) void
setIdentityInfo
(String name, Object value) void
setIdentityInfo
(List<PlatformIdentityInfo> identityInfo) void
setLanguage
(String language) void
setLastName
(String lastName) void
setPassword
(String password) void
setPresence
(String presence) void
setQueryIdentityInfo
(List<PlatformIdentityInfo> queryIdentityInfo) Setter used by MyBatis when querying conversation with identity links.void
Set the new state for this user.void
setSubState
(String subState) Set the new sub state for this user.void
setSubType
(String subType) void
setTenantId
(String tenantId) void
void
void
setUpdaterId
(String updaterId) void
setUpdateTime
(Date updateTime) void
setUserDefinitionKey
(String userDefinitionKey) toString()
Methods inherited from class com.flowable.idm.engine.impl.persistence.entity.AbstractIdmEngineEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
Methods inherited from interface com.flowable.core.idm.api.PlatformUser
findString, isActive, isBot, isExternalUser
Methods inherited from interface com.flowable.idm.engine.impl.persistence.entity.PlatformUserEntity
getVariable, setTransientVariable, setVariable
-
Field Details
-
firstName
-
lastName
-
displayName
-
avatarId
-
email
-
creatorId
-
creationTime
-
updaterId
-
updateTime
-
password
-
tenantId
-
identityInfoInitialized
protected boolean identityInfoInitialized -
identityInfo
The identity info for the user. Make sure that it is not set otherwise MyBatis won't invoke the setter.
-
-
Constructor Details
-
PlatformUserEntityImpl
public PlatformUserEntityImpl()
-
-
Method Details
-
getPersistentState
- Specified by:
getPersistentState
in interfaceEntity
-
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
- Specified by:
setType
in interfacePlatformUserEntity
-
getSubType
- Specified by:
getSubType
in interfacePlatformUser
-
setSubType
- Specified by:
setSubType
in interfacePlatformUserEntity
-
getState
Description copied from interface:PlatformUser
Returns the state of this user.- Specified by:
getState
in interfacePlatformUser
- Returns:
- the state
-
setState
Description copied from interface:PlatformUserEntity
Set the new state for this user. This should only be done over a deactivation / reactivation method and not as part of an user update.- Specified by:
setState
in interfacePlatformUserEntity
- Parameters:
state
- the state to be set for this user (ACTIVE
orINACTIVE
)
-
getSubState
Description copied from interface:PlatformUser
Returns the sub state of this user.- Specified by:
getSubState
in interfacePlatformUser
- Returns:
- the sub state
-
setSubState
Description copied from interface:PlatformUserEntity
Set the new sub state for this user.- Specified by:
setSubState
in interfacePlatformUserEntity
- Parameters:
subState
- the sub state to be set for this user
-
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
-
getUserDefinitionKey
- Specified by:
getUserDefinitionKey
in interfacePlatformUser
-
setUserDefinitionKey
- Specified by:
setUserDefinitionKey
in interfacePlatformUserEntity
-
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
- Specified by:
setAvatarId
in interfacePlatformUserEntity
-
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
- Specified by:
setPresence
in interfacePlatformUserEntity
-
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
-
getLanguage
Description copied from interface:PlatformUser
Returns the language of this user.- Specified by:
getLanguage
in interfacePlatformUser
- Returns:
- the language
-
setLanguage
- Specified by:
setLanguage
in interfacePlatformUserEntity
-
getTheme
- Specified by:
getTheme
in interfacePlatformUser
-
setTheme
- Specified by:
setTheme
in interfacePlatformUserEntity
-
getEmail
-
setEmail
-
getCreatorId
- Specified by:
getCreatorId
in interfacePlatformUser
-
setCreatorId
- Specified by:
setCreatorId
in interfacePlatformUserEntity
-
getCreationTime
- Specified by:
getCreationTime
in interfacePlatformUser
-
setCreationTime
- Specified by:
setCreationTime
in interfacePlatformUserEntity
-
getUpdaterId
- Specified by:
getUpdaterId
in interfacePlatformUser
-
setUpdaterId
- Specified by:
setUpdaterId
in interfacePlatformUserEntity
-
getUpdateTime
- Specified by:
getUpdateTime
in interfacePlatformUser
-
setUpdateTime
- Specified by:
setUpdateTime
in interfacePlatformUserEntity
-
getPassword
- Specified by:
getPassword
in interfaceUser
-
setPassword
- Specified by:
setPassword
in interfaceUser
-
getTenantId
- Specified by:
getTenantId
in interfaceUser
- Specified by:
getTenantId
in interfaceVariableContainer
-
setTenantId
- Specified by:
setTenantId
in interfaceUser
-
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
- Specified by:
setIdentityInfo
in interfacePlatformUserEntity
-
setIdentityInfo
- Specified by:
setIdentityInfo
in interfacePlatformUserEntity
-
addIdentityInfo
-
getQueryIdentityInfo
Getter used by MyBatis when querying platform user with identity info included. -
setQueryIdentityInfo
Setter used by MyBatis when querying conversation with identity links. -
isPictureSet
public boolean isPictureSet()- Specified by:
isPictureSet
in interfaceUser
-
isIdentityInfoInitialized
public boolean isIdentityInfoInitialized()- Specified by:
isIdentityInfoInitialized
in interfacePlatformUserEntity
-
findIdentityInfo
- Specified by:
findIdentityInfo
in interfacePlatformUserEntity
-
findOrElseGet
- Specified by:
findOrElseGet
in interfacePlatformUser
- Specified by:
findOrElseGet
in interfacePlatformUserEntity
-
findOrElse
- Specified by:
findOrElse
in interfacePlatformUser
- Specified by:
findOrElse
in interfacePlatformUserEntity
-
hasVariable
- Specified by:
hasVariable
in interfaceVariableContainer
-
getValue
-
toString
-