Class UserEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.UserEntity
-
- All Implemented Interfaces:
java.io.Serializable
,User
,DbEntity
,HasDbRevision
- Direct Known Subclasses:
LdapUserEntity
public class UserEntity extends java.lang.Object implements User, java.io.Serializable, DbEntity, HasDbRevision
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
attempts
protected java.lang.String
email
protected java.lang.String
firstName
protected java.lang.String
id
protected java.lang.String
lastName
protected java.util.Date
lockExpirationTime
protected java.lang.String
newPassword
protected java.lang.String
password
protected int
revision
protected java.lang.String
salt
-
Constructor Summary
Constructors Constructor Description UserEntity()
UserEntity(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkPasswordAgainstPolicy()
void
encryptPassword()
protected java.lang.String
encryptPassword(java.lang.String password, java.lang.String salt)
protected java.lang.String
generateSalt()
int
getAttempts()
java.lang.String
getEmail()
java.lang.String
getFirstName()
java.lang.String
getId()
java.lang.String
getLastName()
java.util.Date
getLockExpirationTime()
java.lang.String
getPassword()
java.lang.Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.int
getRevision()
int
getRevisionNext()
java.lang.String
getSalt()
boolean
hasNewPassword()
void
setAttempts(int attempts)
void
setDbPassword(java.lang.String password)
Special setter for MyBatis.void
setEmail(java.lang.String email)
void
setFirstName(java.lang.String firstName)
void
setId(java.lang.String id)
void
setLastName(java.lang.String lastName)
void
setLockExpirationTime(java.util.Date lockExpirationTime)
void
setPassword(java.lang.String password)
void
setRevision(int revision)
void
setSalt(java.lang.String salt)
java.lang.String
toString()
-
-
-
Field Detail
-
id
protected java.lang.String id
-
revision
protected int revision
-
firstName
protected java.lang.String firstName
-
lastName
protected java.lang.String lastName
-
email
protected java.lang.String email
-
password
protected java.lang.String password
-
newPassword
protected java.lang.String newPassword
-
salt
protected java.lang.String salt
-
lockExpirationTime
protected java.util.Date lockExpirationTime
-
attempts
protected int attempts
-
-
Method Detail
-
getPersistentState
public java.lang.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 interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getFirstName
public java.lang.String getFirstName()
- Specified by:
getFirstName
in interfaceUser
-
setFirstName
public void setFirstName(java.lang.String firstName)
- Specified by:
setFirstName
in interfaceUser
-
getLastName
public java.lang.String getLastName()
- Specified by:
getLastName
in interfaceUser
-
setLastName
public void setLastName(java.lang.String lastName)
- Specified by:
setLastName
in interfaceUser
-
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interfaceUser
-
setPassword
public void setPassword(java.lang.String password)
- Specified by:
setPassword
in interfaceUser
-
getSalt
public java.lang.String getSalt()
-
setSalt
public void setSalt(java.lang.String salt)
-
setDbPassword
public void setDbPassword(java.lang.String password)
Special setter for MyBatis.
-
getRevision
public int getRevision()
- Specified by:
getRevision
in interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevision
in interfaceHasDbRevision
-
getLockExpirationTime
public java.util.Date getLockExpirationTime()
-
setLockExpirationTime
public void setLockExpirationTime(java.util.Date lockExpirationTime)
-
getAttempts
public int getAttempts()
-
setAttempts
public void setAttempts(int attempts)
-
encryptPassword
public void encryptPassword()
-
encryptPassword
protected java.lang.String encryptPassword(java.lang.String password, java.lang.String salt)
-
generateSalt
protected java.lang.String generateSalt()
-
checkPasswordAgainstPolicy
public boolean checkPasswordAgainstPolicy()
-
hasNewPassword
public boolean hasNewPassword()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-