Package com.ubs.backend.classes.database
Class UserLogin
java.lang.Object
com.ubs.backend.classes.database.UserLogin
Dataclass to Store UserLogins for the AdminTool
- Since:
- 17.07.2021
- Author:
- Marc Andri Fuchs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StatistikTimesthe last time this user was logged in (updated as soon as the user logs in)private BooleanIf a User is allowed to create more usersprivate StringThe Email address of this UserLoginprivate StringThe Password for this UserLoginprivate StatistikTimesthe 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 pageprivate longThe ID of this UserLogin in the Database -
Constructor Summary
ConstructorsConstructorDescriptionNo-args constructorUserLogin(long userLoginID, String email, boolean canCreateUsers, StatistikTimes actualLastTimeLoggedIn)ConstructorRecommended ConstructorUserLogin(String email, String password, boolean canCreateUsers, StatistikTimes actualLastTimeLoggedIn) -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()longvoidsetActualLastTimeLoggedIn(StatistikTimes lastTimeLoggedIn)voidsetCanCreateUsers(boolean canCreateUsers)voidvoidsetPassword(String password)voidsetTempLastTimeLoggedIn(StatistikTimes tempLastTimeLoggedIn)voidsetUserLoginID(long id)toString()
-
Field Details
-
userLoginID
private long userLoginIDThe ID of this UserLogin in the Database- Since:
- 17.07.2021
-
email
The Email address of this UserLogin- Since:
- 17.07.2021
-
password
The Password for this UserLogin- Since:
- 17.07.2021
-
canCreateUsers
If a User is allowed to create more users -
actualLastTimeLoggedIn
the last time this user was logged in (updated as soon as the user logs in) -
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
Constructor- Parameters:
email- the Email Address for this UserLoginpassword- the Password for this UserLogin- Since:
- 17.07.2021
-
UserLogin
Recommended Constructor- Parameters:
email- the Email Address for this UserLoginpassword- the Password for this UserLogin- Since:
- 17.07.2021
-
UserLogin
-
UserLogin
-
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
-
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
- Returns:
- the Email Address of this UserLogin
- Since:
- 17.07.2021
-
setEmail
- Parameters:
email- the new Email Address for this UserLogin- Since:
- 17.07.2021
-
getPassword
- Returns:
- the Password of this UserLogin
- Since:
- 17.07.2021
-
setPassword
- 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
- Returns:
- if the User is allowed to create more Users
-
getActualLastTimeLoggedIn
-
setActualLastTimeLoggedIn
-
getTempLastTimeLoggedIn
-
setTempLastTimeLoggedIn
-