fr.paris.lutece.plugins.mylutece.modules.database.authentication.business
Class DatabaseUser

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.DatabaseUser
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EmailDatabaseUser

public class DatabaseUser
extends Object
implements Serializable

This class represents the business object DatabaseUser

See Also:
Serialized Form

Field Summary
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 Summary
DatabaseUser()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

DatabaseUser

public DatabaseUser()
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 String getEmail()
Returns the Email

Returns:
The Email

setEmail

public void setEmail(String strEmail)
Sets the Email

Parameters:
strEmail - The email

getFirstName

public String getFirstName()
Returns user first name

Returns:
The first name

setFirstName

public void setFirstName(String strFirstName)
Sets the first name

Parameters:
strFirstName - The first name

getLastName

public String getLastName()
Returns the last name

Returns:
The last name

setLastName

public void setLastName(String strLastName)
Sets the last name

Parameters:
strLastName - The last name

getLogin

public String getLogin()
Returns the login

Returns:
The login

setLogin

public void setLogin(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(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 Timestamp getPasswordMaxValidDate()
Get the password maximum valide date of a user

Returns:
The password maximum valide date of a user

getAccountMaxValidDate

public 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(Timestamp accountMaxValidDate)
Set the maximum valid date of the account of the user

Parameters:
accountMaxValidDate - The maximum valid date


Copyright © 2014 Mairie de Paris. All Rights Reserved.