Class Coordinator

java.lang.Object
main.model.user.Coordinator
All Implemented Interfaces:
Model, User, Mappable

public class Coordinator extends Object implements User
A class that represents a coordinator
  • Field Details

    • coordinatorID

      private String coordinatorID
      The ID of the coordinator
    • coordinatorName

      private String coordinatorName
      The name of the coordinator
    • email

      private String email
      The email of a coordinator
    • hashedPassword

      private String hashedPassword
      The password of a coordinator
  • Constructor Details

    • Coordinator

      public Coordinator(String coordinatorID, String coordinatorName, String email)
      constructor of a new Coordinator object with the specified coordinator ID,Name and email
      Parameters:
      coordinatorID - the ID of the coordinator
      coordinatorName - the name of the coordinator
      email - the email of the coordinator
    • Coordinator

      public Coordinator(String coordinatorID, String coordinatorName, String email, String password)
      constructor of a new Coordinator object with the specified coordinator ID and password
      Parameters:
      coordinatorID - the ID of the coordinator
      coordinatorName - the name of the coordinator
      email - the email of the coordinator
      password - the password of the coordinator
    • Coordinator

      public Coordinator(Map<String,String> map)
      Converts the map to a coordinator object
      Parameters:
      map - the map
    • Coordinator

      public Coordinator()
      default constructor
  • Method Details

    • getUser

      public static User getUser(Map<String,String> map)
      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

      public String getID()
      gets the user ID of the user
      Specified by:
      getID in interface Model
      Specified by:
      getID in interface User
      Returns:
      the ID of the user
    • getUserName

      public String getUserName()
      gets the name of the user
      Specified by:
      getUserName in interface User
      Returns:
      name of the user
    • getHashedPassword

      public String getHashedPassword()
      gets the hashed password of the user
      Specified by:
      getHashedPassword in interface User
      Returns:
      the hashed password of the user
    • setHashedPassword

      public void setHashedPassword(String hashedPassword)
      sets the hashed password of the user
      Specified by:
      setHashedPassword in interface User
      Parameters:
      hashedPassword - the hashed password of the user
    • getEmail

      public String getEmail()
      gets the email of the user
      Specified by:
      getEmail in interface User
      Returns:
      the email of the user
    • setEmail

      public void setEmail(String email)
      setter for the email
      Parameters:
      email - the coordinator's email to be set
    • setCoordinatorID

      public void setCoordinatorID(String coordinatorID)
      setter for the coordinatorID
      Parameters:
      coordinatorID - the coordinator's ID to be set
    • setCoordinatorName

      public void setCoordinatorName(String coordinatorName)
      setter for the coordinatorName
      Parameters:
      coordinatorName - the coordinator's name to be set