Class TransferStudentRequest

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

public class TransferStudentRequest extends Object implements Request
A class that represents a transfer student request
  • Field Details

    • requestType

      private final RequestType requestType
      The type of the request
    • requestID

      private String requestID
      The ID of the request
    • requestStatus

      private RequestStatus requestStatus
      The status of the request
    • projectID

      private String projectID
      The ID of the project
    • supervisorID

      private String supervisorID
      The ID of the supervisor
    • newSupervisorID

      private String newSupervisorID
      The ID of the new supervisor
    • studentID

      private String studentID
      The ID of the student
    • coordinatorID

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

    • TransferStudentRequest

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

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

    • getProjectID

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

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

      public void setSupervisorID(String supervisorID)
      Set the ID of the supervisor
      Parameters:
      supervisorID - The ID of the supervisor to be set
    • getNewSupervisorID

      public String getNewSupervisorID()
      Get the ID of the new supervisor
      Returns:
      The ID of the new supervisor
    • getStudentID

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

      public String getCoordinatorID()
      Get the ID of the coordinator
      Returns:
      The ID of the coordinator
    • setCoordinatorID

      public void setCoordinatorID(String coordinatorID)
      Set the ID of the coordinator
      Parameters:
      coordinatorID - The ID of the coordinator
    • 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 request
    • 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.
    • getRequestType

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

      public String getDisplayableString()
      Returns a formatted string representation of the request details for display purposes.
      Specified by:
      getDisplayableString in interface Displayable
      Returns:
      a string with formatted request details