Package main.model.user
Interface User
- All Known Implementing Classes:
Coordinator
,Student
,Supervisor
A class that represents a user
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
checkUsername
(String username) The function to check if username is equal to the user's username regardless of casegetEmail()
Gets the email of the userGets the hashed password of the usergetID()
Gets the user ID of the user.Gets the username of the uservoid
setHashedPassword
(String hashedPassword) Sets the hashed password of the user
-
Method Details
-
getID
String getID()Gets the user ID of the user. -
getUserName
String getUserName()Gets the username of the user- Returns:
- the name of the user
-
getHashedPassword
String getHashedPassword()Gets the hashed password of the user- Returns:
- the hashed password of the user
-
setHashedPassword
Sets the hashed password of the user- Parameters:
hashedPassword
- the hashed password of the user
-
getEmail
String getEmail()Gets the email of the user- Returns:
- the email of the user
-
checkUsername
The function to check if username is equal to the user's username regardless of case- Parameters:
username
- the username to be checked- Returns:
- true if the username is equal to the user's username regardless of case
-