public class UserEntity extends Object implements User, Serializable, DbEntity, HasDbRevision
Modifier and Type | Field and Description |
---|---|
protected String |
email |
protected String |
firstName |
protected String |
id |
protected String |
lastName |
protected String |
newPassword |
protected String |
password |
protected int |
revision |
protected String |
salt |
Constructor and Description |
---|
UserEntity() |
UserEntity(String id) |
Modifier and Type | Method and Description |
---|---|
void |
encryptPassword() |
protected String |
encryptPassword(String password,
String salt) |
protected String |
generateSalt() |
String |
getEmail() |
String |
getFirstName() |
String |
getId() |
String |
getLastName() |
String |
getPassword() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
int |
getRevision() |
int |
getRevisionNext() |
String |
getSalt() |
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 |
setPassword(String password) |
void |
setRevision(int revision) |
void |
setSalt(String salt) |
String |
toString() |
protected String id
protected int revision
protected String firstName
protected String lastName
protected String email
protected String password
protected String newPassword
protected String salt
public UserEntity()
public UserEntity(String id)
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getId()
public void setId(String id)
public String getFirstName()
getFirstName
in interface User
public void setFirstName(String firstName)
setFirstName
in interface User
public String getLastName()
getLastName
in interface User
public void setLastName(String lastName)
setLastName
in interface User
public String getPassword()
getPassword
in interface User
public void setPassword(String password)
setPassword
in interface User
public String getSalt()
public void setSalt(String salt)
public void setDbPassword(String password)
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public void encryptPassword()
protected String generateSalt()
Copyright © 2018. All rights reserved.