public class UserEntity extends Object implements User, Serializable, PersistentObject, HasRevision
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 |
Constructor and Description |
---|
UserEntity() |
UserEntity(String id) |
Modifier and Type | Method and Description |
---|---|
void |
encryptPassword() |
protected String |
encryptPassword(String password) |
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() |
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) |
String |
toString() |
protected String id
protected int revision
protected String firstName
protected String lastName
protected String email
protected String password
protected String newPassword
public UserEntity()
public UserEntity(String id)
public Object getPersistentState()
PersistentObject
getPersistentState
in interface PersistentObject
public int getRevisionNext()
getRevisionNext
in interface HasRevision
public String getId()
getId
in interface User
getId
in interface PersistentObject
public void setId(String id)
setId
in interface User
setId
in interface PersistentObject
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 void setDbPassword(String password)
public int getRevision()
getRevision
in interface HasRevision
public void setRevision(int revision)
setRevision
in interface HasRevision
public void encryptPassword()
Copyright © 2015. All rights reserved.