java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.UserEntity
All Implemented Interfaces:
Serializable, User, DbEntity, HasDbRevision
Direct Known Subclasses:
LdapUserEntity

public class UserEntity extends Object implements User, Serializable, DbEntity, HasDbRevision
Author:
Tom Baeyens
See Also:
  • Field Details

    • id

      protected String id
    • revision

      protected int revision
    • firstName

      protected String firstName
    • lastName

      protected String lastName
    • email

      protected String email
    • password

      protected String password
    • newPassword

      protected String newPassword
    • salt

      protected String salt
    • lockExpirationTime

      protected Date lockExpirationTime
    • attempts

      protected int attempts
  • Constructor Details

    • UserEntity

      public UserEntity()
    • UserEntity

      public UserEntity(String id)
  • Method Details

    • getPersistentState

      public Object getPersistentState()
      Description copied from interface: DbEntity
      Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.
      Specified by:
      getPersistentState in interface DbEntity
    • getRevisionNext

      public int getRevisionNext()
      Specified by:
      getRevisionNext in interface HasDbRevision
    • getId

      public String getId()
      Specified by:
      getId in interface DbEntity
      Specified by:
      getId in interface User
    • setId

      public void setId(String id)
      Specified by:
      setId in interface DbEntity
      Specified by:
      setId in interface User
    • getFirstName

      public String getFirstName()
      Specified by:
      getFirstName in interface User
    • setFirstName

      public void setFirstName(String firstName)
      Specified by:
      setFirstName in interface User
    • getLastName

      public String getLastName()
      Specified by:
      getLastName in interface User
    • setLastName

      public void setLastName(String lastName)
      Specified by:
      setLastName in interface User
    • getEmail

      public String getEmail()
      Specified by:
      getEmail in interface User
    • setEmail

      public void setEmail(String email)
      Specified by:
      setEmail in interface User
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface User
    • setPassword

      public void setPassword(String password)
      Specified by:
      setPassword in interface User
    • getSalt

      public String getSalt()
    • setSalt

      public void setSalt(String salt)
    • setDbPassword

      public void setDbPassword(String password)
      Special setter for MyBatis.
    • getRevision

      public int getRevision()
      Specified by:
      getRevision in interface HasDbRevision
    • setRevision

      public void setRevision(int revision)
      Specified by:
      setRevision in interface HasDbRevision
    • getLockExpirationTime

      public Date getLockExpirationTime()
    • setLockExpirationTime

      public void setLockExpirationTime(Date lockExpirationTime)
    • getAttempts

      public int getAttempts()
    • setAttempts

      public void setAttempts(int attempts)
    • encryptPassword

      public void encryptPassword()
    • encryptPassword

      protected String encryptPassword(String password, String salt)
    • generateSalt

      protected String generateSalt()
    • checkPasswordAgainstPolicy

      public boolean checkPasswordAgainstPolicy()
    • hasNewPassword

      public boolean hasNewPassword()
    • toString

      public String toString()
      Overrides:
      toString in class Object