Package main.model.user
Class Supervisor
java.lang.Object
main.model.user.Supervisor
This class represents a supervisor, which is a type of user.
 It extends the User class and includes a supervisor ID field.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptiondefault constructor for Supervisor classSupervisor(String supervisorID, String supervisorName, String email) Constructs a new Supervisor object with the specified supervisor ID.Supervisor(String supervisorID, String supervisorName, String email, String hashedPassword) Constructs a new Supervisor object with the specified supervisor ID and password.Supervisor(Map<String, String> map) Constructs a new Supervisor object from a map
- 
Method SummaryModifier and TypeMethodDescriptiongetEmail()Gets the email of the userGets the hashed password of the usergetID()Gets the user ID of the user.static UserGets the usernamevoidsetHashedPassword(String hashedPassword) Sets the hashed password of the userMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface main.model.user.UsercheckUsername
- 
Field Details- 
supervisorIDThe ID of the supervisor.
- 
supervisorNameThe name of the supervisor
- 
emailThe email of a supervisor
- 
hashedPassword
 
- 
- 
Constructor Details- 
SupervisorConstructs a new Supervisor object with the specified supervisor ID.- Parameters:
- supervisorID- the ID of the supervisor.
- supervisorName- the name of the supervisor.
- email- the email of the supervisor.
 
- 
SupervisorConstructs a new Supervisor object with the specified supervisor ID and password.- Parameters:
- supervisorID- the ID of the supervisor.
- supervisorName- the name of the supervisor.
- email- the email of the supervisor.
- hashedPassword- the password of the supervisor.
 
- 
SupervisorConstructs a new Supervisor object from a map- Parameters:
- map- the map
 
- 
Supervisorpublic Supervisor()default constructor for Supervisor class
 
- 
- 
Method Details- 
getUser
- 
getIDGets the user ID of the user.
- 
getUserNameGets the username- Specified by:
- getUserNamein interface- User
- Returns:
- the name of the user
 
- 
getHashedPasswordGets the hashed password of the user- Specified by:
- getHashedPasswordin interface- User
- Returns:
- the hashed password of the user
 
- 
setHashedPasswordSets the hashed password of the user- Specified by:
- setHashedPasswordin interface- User
- Parameters:
- hashedPassword- the hashed password of the user
 
- 
getEmailGets the email of the user
 
-