Class StudentDeregistrationRequest

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

public class StudentDeregistrationRequest extends Object implements Request
A request for a student to deregister from a project
  • Field Details

    • requestType

      private final RequestType requestType
      The type of the request
    • requestID

      public String requestID
      The ID of the request
    • requestStatus

      private RequestStatus requestStatus
      The status 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
    • coordinatorID

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

    • StudentDeregistrationRequest

      public StudentDeregistrationRequest(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
    • StudentDeregistrationRequest

      public StudentDeregistrationRequest(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 project ID of the request.
      Specified by:
      getProjectID in interface Request
      Returns:
      the project ID of the request.
    • getRequestType

      public RequestType getRequestType()
      Get the request type.
      Specified by:
      getRequestType in interface Request
      Returns:
      the request type.
    • 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()
      This method 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