Class UserEntity
- 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
attempts
protected String
email
protected String
firstName
protected String
id
protected String
lastName
protected Date
lockExpirationTime
protected String
newPassword
protected String
password
protected int
revision
protected String
salt
-
Constructor Summary
Constructors Constructor Description UserEntity()
UserEntity(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkPasswordAgainstPolicy()
void
encryptPassword()
protected String
encryptPassword(String password, String salt)
protected String
generateSalt()
int
getAttempts()
String
getEmail()
String
getFirstName()
String
getId()
String
getLastName()
Date
getLockExpirationTime()
String
getPassword()
Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.int
getRevision()
int
getRevisionNext()
String
getSalt()
boolean
hasNewPassword()
void
setAttempts(int attempts)
void
setDbPassword(String password)
Special setter for MyBatis.void
setEmail(String email)
void
setFirstName(String firstName)
void
setId(String id)
void
setLastName(String lastName)
void
setLockExpirationTime(Date lockExpirationTime)
void
setPassword(String password)
void
setRevision(int revision)
void
setSalt(String salt)
String
toString()
-
-
-
Field Detail
-
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 Detail
-
UserEntity
public UserEntity()
-
UserEntity
public UserEntity(String id)
-
-
Method Detail
-
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 interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
getId
public String getId()
-
setId
public void setId(String id)
-
getFirstName
public String getFirstName()
- Specified by:
getFirstName
in interfaceUser
-
setFirstName
public void setFirstName(String firstName)
- Specified by:
setFirstName
in interfaceUser
-
getLastName
public String getLastName()
- Specified by:
getLastName
in interfaceUser
-
setLastName
public void setLastName(String lastName)
- Specified by:
setLastName
in interfaceUser
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceUser
-
setPassword
public void setPassword(String password)
- Specified by:
setPassword
in interfaceUser
-
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 interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevision
in interfaceHasDbRevision
-
getLockExpirationTime
public Date getLockExpirationTime()
-
setLockExpirationTime
public void setLockExpirationTime(Date lockExpirationTime)
-
getAttempts
public int getAttempts()
-
setAttempts
public void setAttempts(int attempts)
-
encryptPassword
public void encryptPassword()
-
generateSalt
protected String generateSalt()
-
checkPasswordAgainstPolicy
public boolean checkPasswordAgainstPolicy()
-
hasNewPassword
public boolean hasNewPassword()
-
-