Class StudentRegistrationRequest

java.lang.Object
main.model.request.StudentRegistrationRequest
All Implemented Interfaces:
Displayable, Model, Request, Mappable

public class StudentRegistrationRequest extends Object implements Request
A class that represents a student registration request
  • Field Details

    • requestType

      private final RequestType requestType
      The type of the request
    • studentID

      private String studentID
      The ID of the student
    • supervisorID

      private String supervisorID
      The ID of the supervisor
    • projectID

      private String projectID
      The ID of the project
    • requestStatus

      private RequestStatus requestStatus
      The status of the request
    • requestID

      private String requestID
      The ID of the request
    • coordinatorID

      private String coordinatorID
      The ID of the coordinator who deals with the request
  • Constructor Details

    • StudentRegistrationRequest

      public StudentRegistrationRequest(String requestID, String studentID, String supervisorID, String projectID)
      Constructor
      Parameters:
      requestID - The ID of the request
      studentID - The ID of the student
      supervisorID - The ID of the supervisor
      projectID - The ID of the project
    • StudentRegistrationRequest

      public StudentRegistrationRequest(Map<String,String> map)
      Constructor
      Parameters:
      map - The map of the request
  • Method Details

    • getStudentID

      public String getStudentID()
      Get the ID of the student.
      Specified by:
      getStudentID in interface Request
      Returns:
      the ID of the student.
    • getSupervisorID

      public String getSupervisorID()
      Get the ID of the supervisor.
      Specified by:
      getSupervisorID in interface Request
      Returns:
      the ID of the supervisor.
    • getProjectID

      public String getProjectID()
      Get the ID of the project.
      Specified by:
      getProjectID in interface Request
      Returns:
      the ID of the project.
    • getRequestType

      public RequestType getRequestType()
      Get the type of the request.
      Specified by:
      getRequestType in interface Request
      Returns:
      the type of the request.
    • getCoordinatorID

      public String getCoordinatorID()
      Get the ID of the coordinator who deals with the request.
      Returns:
      the ID of the coordinator who deals with the request.
    • setCoordinatorID

      public void setCoordinatorID(String coordinatorID)
      Set the ID of the coordinator who deals with the request.
      Parameters:
      coordinatorID - the ID of the coordinator who deals with the request.
    • getID

      public String getID()
      Get the ID of the request.
      Specified by:
      getID in interface Model
      Specified by:
      getID in interface Request
      Returns:
      the ID of the model.
    • getStatus

      public RequestStatus getStatus()
      Get the status of the request.
      Specified by:
      getStatus in interface Request
      Returns:
      the status of the request.
    • setStatus

      public void setStatus(RequestStatus status)
      Set the status of the request.
      Specified by:
      setStatus in interface Request
      Parameters:
      status - the status of the request.
    • getDisplayableString

      public String getDisplayableString()
      Returns a formatted string representation of the request's information.
      Specified by:
      getDisplayableString in interface Displayable
      Returns:
      a string with all request information formatted in a table