Class LoginDO

java.lang.Object
org.europa.together.domain.acl.LoginDO
All Implemented Interfaces:
Serializable

@Entity public class LoginDO extends Object implements Serializable
LOGIN OBJECT. Store the Logins of an user (Account) for statistics. The timestamp is stored in UTC format and need transformed to the client timezone.
See Also:
  • Field Details

    • TABLE_NAME

      public static final String TABLE_NAME
      The name of the used database table for this domain object.
      See Also:
  • Constructor Details

    • LoginDO

      public LoginDO()
      Default Constructor.
    • LoginDO

      public LoginDO(AccountDO account)
      Constructor.
      Parameters:
      account - as Account
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUuid

      public String getUuid()
      Get the UUID of an Login Object. Primary Key.
      Returns:
      uuid as String
    • setUuid

      public void setUuid(String uuid)
      Set the UUID of an Login Object. Primary Key.
      Parameters:
      uuid - as String
    • getAccount

      public AccountDO getAccount()
      Get the Login of an Account.
      Returns:
      Account as Object
    • setAccount

      public void setAccount(AccountDO account)
      Create a login for an Account.
      Parameters:
      account - as Object
    • getLogin

      public Date getLogin()
      Get the Date of this specific Login.
      Returns:
      login as Timestamp
    • setLogin

      public void setLogin(Date login)
      Set the Date for the login.
      Parameters:
      login - as Date
    • getIpAddress

      public String getIpAddress()
      Get the IP Address of the Account for this login.
      Returns:
      ipAddress as String
    • setIpAddress

      public void setIpAddress(String ipAddress)
      Set the IP Address of the Account for this login.
      Parameters:
      ipAddress - as String
    • getBrowserID

      public String getBrowserID()
      Get the Browser ID of the Account for this login.
      Returns:
      browserId as String
    • setBrowserID

      public void setBrowserID(String browserID)
      Set the Browser ID of the Account for this login.
      Parameters:
      browserID - as String
    • getOperationSystem

      public String getOperationSystem()
      Get the Operation System of the Account for this login.
      Returns:
      operationSystem as String
    • setOperationSystem

      public void setOperationSystem(String operationSystem)
      Set the Operation System of the Account for this login.
      Parameters:
      operationSystem - as String
    • getLogout

      public Date getLogout()
      Get the logout timestamp of a login object.
      Returns:
      logout as Date
    • setLogout

      public void setLogout(Date logout)
      Set the logout time for a login object.
      Parameters:
      logout - as Date