public class DatabaseUser extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_ACTIVATED
Status of activated users.
|
static int |
STATUS_ANONYMIZED
Status of anonymized users.
|
static int |
STATUS_EXPIRED
Status of expired users.
|
static int |
STATUS_NOT_ACTIVATED
Status of not activated users.
|
Constructor and Description |
---|
DatabaseUser() |
Modifier and Type | Method and Description |
---|---|
Timestamp |
getAccountMaxValidDate()
Get the maximum valid date of the account of the user
|
String |
getEmail()
Returns the Email
|
String |
getFirstName()
Returns user first name
|
String |
getLastName()
Returns the last name
|
String |
getLogin()
Returns the login
|
Timestamp |
getPasswordMaxValidDate()
Get the password maximum valide date of a user
|
int |
getStatus()
Get the status of the user
|
int |
getUserId()
Returns the UserId
|
boolean |
isActive()
Check if the user is active
|
void |
setAccountMaxValidDate(Timestamp accountMaxValidDate)
Set the maximum valid date of the account of the user
|
void |
setEmail(String strEmail)
Sets the Email
|
void |
setFirstName(String strFirstName)
Sets the first name
|
void |
setLastName(String strLastName)
Sets the last name
|
void |
setLogin(String strLogin)
Sets the login
|
void |
setPasswordMaxValidDate(Timestamp passwordMaxValidDate)
Set the password maximum valide date of a user
|
void |
setStatus(int nStatus)
Set the status of the user
|
void |
setUserId(int nUserId)
Sets the UserId
|
public static final int STATUS_NOT_ACTIVATED
public static final int STATUS_ACTIVATED
public static final int STATUS_EXPIRED
public static final int STATUS_ANONYMIZED
public int getUserId()
public void setUserId(int nUserId)
nUserId
- The UserIdpublic String getEmail()
public void setEmail(String strEmail)
strEmail
- The emailpublic String getFirstName()
public void setFirstName(String strFirstName)
strFirstName
- The first namepublic String getLastName()
public void setLastName(String strLastName)
strLastName
- The last namepublic String getLogin()
public void setLogin(String strLogin)
strLogin
- The loginpublic int getStatus()
public void setStatus(int nStatus)
nStatus
- The status of the userpublic boolean isActive()
public void setPasswordMaxValidDate(Timestamp passwordMaxValidDate)
passwordMaxValidDate
- The new value of the password maximum valide
date of a userpublic Timestamp getPasswordMaxValidDate()
public Timestamp getAccountMaxValidDate()
public void setAccountMaxValidDate(Timestamp accountMaxValidDate)
accountMaxValidDate
- The maximum valid dateCopyright © 2018 City of Paris. All rights reserved.