Class DatabaseUser
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.DatabaseUser
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EmailDatabaseUser
This class represents the business object DatabaseUser
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Timestampstatic final intStatus of activated users.static final intStatus of anonymized users.static final intStatus of expired users.static final intStatus of not activated users. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the maximum valid date of the account of the usergetEmail()Returns the EmailReturns user first nameReturns the last namegetLogin()Returns the loginGet the password maximum valide date of a userintGet the status of the userintReturns the UserIdbooleanisActive()Check if the user is activevoidsetAccountMaxValidDate(Timestamp accountMaxValidDate) Set the maximum valid date of the account of the uservoidSets the EmailvoidsetFirstName(String strFirstName) Sets the first namevoidsetLastName(String strLastName) Sets the last namevoidSets the loginvoidsetPasswordMaxValidDate(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 Details
-
STATUS_NOT_ACTIVATED
public static final int STATUS_NOT_ACTIVATEDStatus of not activated users.- See Also:
-
STATUS_ACTIVATED
public static final int STATUS_ACTIVATEDStatus of activated users.- See Also:
-
STATUS_EXPIRED
public static final int STATUS_EXPIREDStatus of expired users. Expired users will be anonymized.- See Also:
-
STATUS_ANONYMIZED
public static final int STATUS_ANONYMIZEDStatus of anonymized users.- See Also:
-
DEFAULT_DATE_LAST_LOGIN
-
-
Constructor Details
-
DatabaseUser
public DatabaseUser()
-
-
Method Details
-
getUserId
public int getUserId()Returns the UserId- Returns:
- The UserId
-
setUserId
public void setUserId(int nUserId) Sets the UserId- Parameters:
nUserId- The UserId
-
getEmail
Returns the Email- Returns:
- The Email
-
setEmail
Sets the Email- Parameters:
strEmail- The email
-
getFirstName
Returns user first name- Returns:
- The first name
-
setFirstName
Sets the first name- Parameters:
strFirstName- The first name
-
getLastName
Returns the last name- Returns:
- The last name
-
setLastName
Sets the last name- Parameters:
strLastName- The last name
-
getLogin
Returns the login- Returns:
- The login
-
setLogin
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
Set the password maximum valide date of a user- Parameters:
passwordMaxValidDate- The new value of the password maximum valide date of a user
-
getPasswordMaxValidDate
Get the password maximum valide date of a user- Returns:
- The password maximum valide date of a user
-
getAccountMaxValidDate
Get the maximum valid date of the account of the user- Returns:
- The maximum valid date of the account of the user
-
setAccountMaxValidDate
Set the maximum valid date of the account of the user- Parameters:
accountMaxValidDate- The maximum valid date
-