Package main.model.user
Class Coordinator
java.lang.Object
main.model.user.Coordinator
A class that represents a coordinator
-
Field Summary
-
Constructor Summary
ConstructorDescriptiondefault constructorCoordinator
(String coordinatorID, String coordinatorName, String email) constructor of a new Coordinator object with the specified coordinator ID,Name and emailCoordinator
(String coordinatorID, String coordinatorName, String email, String password) constructor of a new Coordinator object with the specified coordinator ID and passwordCoordinator
(Map<String, String> map) Converts the map to a coordinator object -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
gets the email of the usergets the hashed password of the usergetID()
gets the user ID of the userstatic User
Returns a User object representing a Coordinator, created from the given map of key-value pairs.gets the name of the uservoid
setCoordinatorID
(String coordinatorID) setter for the coordinatorIDvoid
setCoordinatorName
(String coordinatorName) setter for the coordinatorNamevoid
setter for the emailvoid
setHashedPassword
(String hashedPassword) sets the hashed password of the userMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface main.model.user.User
checkUsername
-
Field Details
-
coordinatorID
The ID of the coordinator -
coordinatorName
The name of the coordinator -
email
The email of a coordinator -
hashedPassword
The password of a coordinator
-
-
Constructor Details
-
Coordinator
constructor of a new Coordinator object with the specified coordinator ID,Name and email- Parameters:
coordinatorID
- the ID of the coordinatorcoordinatorName
- the name of the coordinatoremail
- the email of the coordinator
-
Coordinator
constructor of a new Coordinator object with the specified coordinator ID and password- Parameters:
coordinatorID
- the ID of the coordinatorcoordinatorName
- the name of the coordinatoremail
- the email of the coordinatorpassword
- the password of the coordinator
-
Coordinator
Converts the map to a coordinator object- Parameters:
map
- the map
-
Coordinator
public Coordinator()default constructor
-
-
Method Details
-
getUser
Returns a User object representing a Coordinator, created from the given map of key-value pairs. The map should contain the necessary data to construct a Coordinator object.- Parameters:
map
- a Map object containing key-value pairs of user data- Returns:
- a User object representing a Coordinator
-
getID
gets the user ID of the user -
getUserName
gets the name of the user- Specified by:
getUserName
in interfaceUser
- Returns:
- name of the user
-
getHashedPassword
gets the hashed password of the user- Specified by:
getHashedPassword
in interfaceUser
- Returns:
- the hashed password of the user
-
setHashedPassword
sets the hashed password of the user- Specified by:
setHashedPassword
in interfaceUser
- Parameters:
hashedPassword
- the hashed password of the user
-
getEmail
gets the email of the user -
setEmail
setter for the email- Parameters:
email
- the coordinator's email to be set
-
setCoordinatorID
setter for the coordinatorID- Parameters:
coordinatorID
- the coordinator's ID to be set
-
setCoordinatorName
setter for the coordinatorName- Parameters:
coordinatorName
- the coordinator's name to be set
-