java.lang.Object
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:
  • Field Details

    • STATUS_NOT_ACTIVATED

      public static final int STATUS_NOT_ACTIVATED
      Status of not activated users.
      See Also:
    • STATUS_ACTIVATED

      public static final int STATUS_ACTIVATED
      Status of activated users.
      See Also:
    • STATUS_EXPIRED

      public static final int STATUS_EXPIRED
      Status of expired users. Expired users will be anonymized.
      See Also:
    • STATUS_ANONYMIZED

      public static final int STATUS_ANONYMIZED
      Status of anonymized users.
      See Also:
    • DEFAULT_DATE_LAST_LOGIN

      public static final Timestamp 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

      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