Class BasicPlatformUser

java.lang.Object
com.flowable.idm.engine.impl.BasicPlatformUser
All Implemented Interfaces:
PlatformUser, Serializable, org.flowable.common.engine.api.variable.VariableContainer, org.flowable.idm.api.User
Direct Known Subclasses:
LdapPlatformUser

public class BasicPlatformUser extends Object implements PlatformUser, org.flowable.common.engine.api.variable.VariableContainer
A base implementation of PlatformUser that can be used when implementing a custom PlatformIdentityService
Author:
Filip Hrisafov
See Also:
  • Field Details

    • 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
  • Constructor Details

    • BasicPlatformUser

      public BasicPlatformUser()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.flowable.idm.api.User
    • setId

      public void setId(String id)
      Specified by:
      setId in interface org.flowable.idm.api.User
    • getFirstName

      public String getFirstName()
      Specified by:
      getFirstName in interface org.flowable.idm.api.User
    • setFirstName

      public void setFirstName(String firstName)
      Specified by:
      setFirstName in interface org.flowable.idm.api.User
    • getLastName

      public String getLastName()
      Specified by:
      getLastName in interface org.flowable.idm.api.User
    • setLastName

      public void setLastName(String lastName)
      Specified by:
      setLastName in interface org.flowable.idm.api.User
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface org.flowable.idm.api.User
    • setDisplayName

      public void setDisplayName(String displayName)
      Specified by:
      setDisplayName in interface org.flowable.idm.api.User
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface org.flowable.idm.api.User
    • setEmail

      public void setEmail(String email)
      Specified by:
      setEmail in interface org.flowable.idm.api.User
    • isActive

      public boolean isActive()
      Description copied from interface: PlatformUser
      Returns true 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 interface PlatformUser
      Returns:
      true if this user is active
    • setActive

      public void setActive(Boolean active)
    • getTenantId

      public String getTenantId()
      Specified by:
      getTenantId in interface org.flowable.idm.api.User
      Specified by:
      getTenantId in interface org.flowable.common.engine.api.variable.VariableContainer
    • setTenantId

      public void setTenantId(String tenantId)
      Specified by:
      setTenantId in interface org.flowable.idm.api.User
    • getAvatarId

      public String 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 interface PlatformUser
      Returns:
      the optional avatar image ID
    • setAvatarId

      public void setAvatarId(String avatarId)
    • getState

      public String getState()
      Description copied from interface: PlatformUser
      Returns the state of this user.
      Specified by:
      getState in interface PlatformUser
      Returns:
      the state
    • setState

      public void setState(String state)
    • getSubState

      public String getSubState()
      Description copied from interface: PlatformUser
      Returns the sub state of this user.
      Specified by:
      getSubState in interface PlatformUser
      Returns:
      the sub state
    • setSubState

      public void setSubState(String subState)
    • getType

      public String 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 interface PlatformUser
      Returns:
      the type of the user
      See Also:
    • setType

      public void setType(String type)
    • getSubType

      public String getSubType()
      Specified by:
      getSubType in interface PlatformUser
    • setSubType

      public void setSubType(String subType)
    • getUserDefinitionKey

      public String getUserDefinitionKey()
      Specified by:
      getUserDefinitionKey in interface PlatformUser
    • setUserDefinitionKey

      public void setUserDefinitionKey(String userDefinitionKey)
    • getLanguage

      public String getLanguage()
      Description copied from interface: PlatformUser
      Returns the language of this user.
      Specified by:
      getLanguage in interface PlatformUser
      Returns:
      the language
    • setLanguage

      public void setLanguage(String language)
    • getTheme

      public String getTheme()
      Specified by:
      getTheme in interface PlatformUser
    • setTheme

      public void setTheme(String theme)
    • getPresence

      public String getPresence()
      Description copied from interface: PlatformUser
      Returns the current presence of the user.
      Specified by:
      getPresence in interface PlatformUser
      Returns:
      the presence of the user
      See Also:
    • setPresence

      public void setPresence(String presence)
    • getPresenceTime

      public Date getPresenceTime()
      Description copied from interface: PlatformUser
      The time the current presence of the user was set
      Specified by:
      getPresenceTime in interface PlatformUser
      Returns:
      the time the presence of the user was set
    • setPresenceTime

      public void setPresenceTime(Date presenceTime)
    • getCreatorId

      public String getCreatorId()
      Specified by:
      getCreatorId in interface PlatformUser
    • setCreatorId

      public void setCreatorId(String creatorId)
    • getCreationTime

      public Date getCreationTime()
      Specified by:
      getCreationTime in interface PlatformUser
    • setCreationTime

      public void setCreationTime(Date creationTime)
    • getUpdaterId

      public String getUpdaterId()
      Specified by:
      getUpdaterId in interface PlatformUser
    • setUpdaterId

      public void setUpdaterId(String updaterId)
    • getUpdateTime

      public Date getUpdateTime()
      Specified by:
      getUpdateTime in interface PlatformUser
    • setUpdateTime

      public void setUpdateTime(Date updateTime)
    • getIdentityInfo

      public List<PlatformIdentityInfo> getIdentityInfo()
      Description copied from interface: PlatformUser
      Returns the identity info properties of this user.
      Specified by:
      getIdentityInfo in interface PlatformUser
      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:
      findOrElseGet in interface PlatformUser
    • findOrElse

      public <T> T findOrElse(String name, Class<T> clazz, T defaultValue)
      Specified by:
      findOrElse in interface PlatformUser
    • getValue

      protected <T> T getValue(String name, Class<T> clazz)
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.flowable.idm.api.User
    • setPassword

      public void setPassword(String password)
      Specified by:
      setPassword in interface org.flowable.idm.api.User
    • isPictureSet

      public boolean isPictureSet()
      Specified by:
      isPictureSet in interface org.flowable.idm.api.User
    • hasVariable

      public boolean hasVariable(String variableName)
      Specified by:
      hasVariable in interface org.flowable.common.engine.api.variable.VariableContainer
    • getVariable

      public Object getVariable(String variableName)
      Specified by:
      getVariable in interface org.flowable.common.engine.api.variable.VariableContainer
    • setVariable

      public void setVariable(String variableName, Object variableValue)
      Specified by:
      setVariable in interface org.flowable.common.engine.api.variable.VariableContainer
    • setTransientVariable

      public void setTransientVariable(String variableName, Object variableValue)
      Specified by:
      setTransientVariable in interface org.flowable.common.engine.api.variable.VariableContainer
    • getVariableNames

      public Set<String> getVariableNames()
      Specified by:
      getVariableNames in interface org.flowable.common.engine.api.variable.VariableContainer
    • toString

      public String toString()
      Overrides:
      toString in class Object