Class UserLogin

java.lang.Object
com.ubs.backend.classes.database.UserLogin

@Entity public class UserLogin extends Object
Dataclass to Store UserLogins for the AdminTool
Since:
17.07.2021
Author:
Marc Andri Fuchs
  • Field Details

    • userLoginID

      private long userLoginID
      The ID of this UserLogin in the Database
      Since:
      17.07.2021
    • email

      private String email
      The Email address of this UserLogin
      Since:
      17.07.2021
    • password

      private String password
      The Password for this UserLogin
      Since:
      17.07.2021
    • canCreateUsers

      private Boolean canCreateUsers
      If a User is allowed to create more users
    • actualLastTimeLoggedIn

      private StatistikTimes actualLastTimeLoggedIn
      the last time this user was logged in (updated as soon as the user logs in)
    • tempLastTimeLoggedIn

      private StatistikTimes tempLastTimeLoggedIn
      the last time the user was logged in, before updating the actualLastTime. used for figuring the time out between each log in and show the correct stuff on the overview page
  • Constructor Details

    • UserLogin

      public UserLogin()
      No-args constructor
      Since:
      17.07.2021
    • UserLogin

      public UserLogin(String email, String password)
      Constructor
      Parameters:
      email - the Email Address for this UserLogin
      password - the Password for this UserLogin
      Since:
      17.07.2021
    • UserLogin

      public UserLogin(String email, String password, boolean canCreateUsers)
      Recommended Constructor
      Parameters:
      email - the Email Address for this UserLogin
      password - the Password for this UserLogin
      Since:
      17.07.2021
    • UserLogin

      public UserLogin(long userLoginID, String email, boolean canCreateUsers)
    • UserLogin

      public UserLogin(long userLoginID, String email)
    • UserLogin

      public UserLogin(long userLoginID, String email, boolean canCreateUsers, StatistikTimes actualLastTimeLoggedIn)
    • UserLogin

      public UserLogin(String email, String password, boolean canCreateUsers, StatistikTimes actualLastTimeLoggedIn)
  • Method Details

    • toString

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

      public long getUserLoginID()
      Returns:
      the ID of this UserLogin
      Since:
      17.07.2021
    • setUserLoginID

      public void setUserLoginID(long id)
      Parameters:
      id - the new ID for this UserLogin
      Since:
      17.07.2021
    • getEmail

      public String getEmail()
      Returns:
      the Email Address of this UserLogin
      Since:
      17.07.2021
    • setEmail

      public void setEmail(String email)
      Parameters:
      email - the new Email Address for this UserLogin
      Since:
      17.07.2021
    • getPassword

      public String getPassword()
      Returns:
      the Password of this UserLogin
      Since:
      17.07.2021
    • setPassword

      public void setPassword(String password)
      Parameters:
      password - the new Password for this UserLogin
      Since:
      17.07.2021
    • setCanCreateUsers

      public void setCanCreateUsers(boolean canCreateUsers)
      Parameters:
      canCreateUsers - if the User is allowed to create more Users
    • isCanCreateUsers

      public Boolean isCanCreateUsers()
      Returns:
      if the User is allowed to create more Users
    • getActualLastTimeLoggedIn

      public StatistikTimes getActualLastTimeLoggedIn()
    • setActualLastTimeLoggedIn

      public void setActualLastTimeLoggedIn(StatistikTimes lastTimeLoggedIn)
    • getTempLastTimeLoggedIn

      public StatistikTimes getTempLastTimeLoggedIn()
    • setTempLastTimeLoggedIn

      public void setTempLastTimeLoggedIn(StatistikTimes tempLastTimeLoggedIn)