Class DatabaseUser

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    EmailDatabaseUser

    public class DatabaseUser
    extends java.lang.Object
    implements java.io.Serializable
    This class represents the business object DatabaseUser
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DatabaseUser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Timestamp getAccountMaxValidDate()
      Get the maximum valid date of the account of the user
      java.lang.String getEmail()
      Returns the Email
      java.lang.String getFirstName()
      Returns user first name
      java.lang.String getLastName()
      Returns the last name
      java.lang.String getLogin()
      Returns the login
      java.sql.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​(java.sql.Timestamp accountMaxValidDate)
      Set the maximum valid date of the account of the user
      void setEmail​(java.lang.String strEmail)
      Sets the Email
      void setFirstName​(java.lang.String strFirstName)
      Sets the first name
      void setLastName​(java.lang.String strLastName)
      Sets the last name
      void setLogin​(java.lang.String strLogin)
      Sets the login
      void setPasswordMaxValidDate​(java.sql.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

        equals, 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
      • DEFAULT_DATE_LAST_LOGIN

        public static final java.sql.Timestamp DEFAULT_DATE_LAST_LOGIN
    • 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 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