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