Class DatabaseUser
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.DatabaseUser
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
EmailDatabaseUser
public class DatabaseUser extends java.lang.Object implements java.io.SerializableThis class represents the business object DatabaseUser- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.sql.TimestampDEFAULT_DATE_LAST_LOGINstatic intSTATUS_ACTIVATEDStatus of activated users.static intSTATUS_ANONYMIZEDStatus of anonymized users.static intSTATUS_EXPIREDStatus of expired users.static intSTATUS_NOT_ACTIVATEDStatus of not activated users.
-
Constructor Summary
Constructors Constructor Description DatabaseUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.TimestampgetAccountMaxValidDate()Get the maximum valid date of the account of the userjava.lang.StringgetEmail()Returns the Emailjava.lang.StringgetFirstName()Returns user first namejava.lang.StringgetLastName()Returns the last namejava.lang.StringgetLogin()Returns the loginjava.sql.TimestampgetPasswordMaxValidDate()Get the password maximum valide date of a userintgetStatus()Get the status of the userintgetUserId()Returns the UserIdbooleanisActive()Check if the user is activevoidsetAccountMaxValidDate(java.sql.Timestamp accountMaxValidDate)Set the maximum valid date of the account of the uservoidsetEmail(java.lang.String strEmail)Sets the EmailvoidsetFirstName(java.lang.String strFirstName)Sets the first namevoidsetLastName(java.lang.String strLastName)Sets the last namevoidsetLogin(java.lang.String strLogin)Sets the loginvoidsetPasswordMaxValidDate(java.sql.Timestamp passwordMaxValidDate)Set the password maximum valide date of a uservoidsetStatus(int nStatus)Set the status of the uservoidsetUserId(int nUserId)Sets the UserId
-
-
-
Field Detail
-
STATUS_NOT_ACTIVATED
public static final int STATUS_NOT_ACTIVATED
Status of not activated users.- See Also:
- Constant Field Values
-
STATUS_ACTIVATED
public static final int STATUS_ACTIVATED
Status of activated users.- See Also:
- Constant Field Values
-
STATUS_EXPIRED
public static final int STATUS_EXPIRED
Status of expired users. Expired users will be anonymized.- See Also:
- Constant Field Values
-
STATUS_ANONYMIZED
public static final int STATUS_ANONYMIZED
Status of anonymized users.- See Also:
- Constant Field Values
-
DEFAULT_DATE_LAST_LOGIN
public static final java.sql.Timestamp DEFAULT_DATE_LAST_LOGIN
-
-
Method Detail
-
getUserId
public int getUserId()
Returns the UserId- Returns:
- The UserId
-
setUserId
public void setUserId(int nUserId)
Sets the UserId- Parameters:
nUserId- The UserId
-
getEmail
public java.lang.String getEmail()
Returns the Email- Returns:
- The Email
-
setEmail
public void setEmail(java.lang.String strEmail)
Sets the Email- Parameters:
strEmail- The email
-
getFirstName
public java.lang.String getFirstName()
Returns user first name- Returns:
- The first name
-
setFirstName
public void setFirstName(java.lang.String strFirstName)
Sets the first name- Parameters:
strFirstName- The first name
-
getLastName
public java.lang.String getLastName()
Returns the last name- Returns:
- The last name
-
setLastName
public void setLastName(java.lang.String strLastName)
Sets the last name- Parameters:
strLastName- The last name
-
getLogin
public java.lang.String getLogin()
Returns the login- Returns:
- The login
-
setLogin
public void setLogin(java.lang.String strLogin)
Sets the login- Parameters:
strLogin- The login
-
getStatus
public int getStatus()
Get the status of the user- Returns:
- The status of the user
-
setStatus
public void setStatus(int nStatus)
Set the status of the user- Parameters:
nStatus- The status of the user
-
isActive
public boolean isActive()
Check if the user is active- Returns:
- true if it is active, false otherwise
-
setPasswordMaxValidDate
public void setPasswordMaxValidDate(java.sql.Timestamp passwordMaxValidDate)
Set the password maximum valide date of a user- Parameters:
passwordMaxValidDate- The new value of the password maximum valide date of a user
-
getPasswordMaxValidDate
public java.sql.Timestamp getPasswordMaxValidDate()
Get the password maximum valide date of a user- Returns:
- The password maximum valide date of a user
-
getAccountMaxValidDate
public java.sql.Timestamp getAccountMaxValidDate()
Get the maximum valid date of the account of the user- Returns:
- The maximum valid date of the account of the user
-
setAccountMaxValidDate
public void setAccountMaxValidDate(java.sql.Timestamp accountMaxValidDate)
Set the maximum valid date of the account of the user- Parameters:
accountMaxValidDate- The maximum valid date
-
-