Class StudentChangeTitleRequest

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

public class StudentChangeTitleRequest extends Object implements Request
This class represents a student request to change the title of a project
  • 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
    • studentID

      private String studentID
      The ID of the student
    • supervisorID

      private String supervisorID
      The ID of the supervisor who deals with the request
    • projectID

      private String projectID
      The ID of the project
    • newTitle

      private String newTitle
      The new title of the project
  • Constructor Details

    • StudentChangeTitleRequest

      public StudentChangeTitleRequest(String requestID, String studentID, String supervisorID, String projectID, String newTitle)
      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
      newTitle - The new title of the project
    • StudentChangeTitleRequest

      public StudentChangeTitleRequest(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
    • setStudentID

      public void setStudentID(String studentID)
      Set the id of the student
      Parameters:
      studentID - 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
    • setSupervisorID

      public void setSupervisorID(String supervisorID)
      Set the id of the supervisor
      Parameters:
      supervisorID - 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
    • setProjectID

      public void setProjectID(String projectID)
      Set the id of the project
      Parameters:
      projectID - the id of the project
    • getNewTitle

      public String getNewTitle()
      Get the new title of the project
      Returns:
      the new title of the project
    • setNewTitle

      public void setNewTitle(String newTitle)
      Set the new title of the project
      Parameters:
      newTitle - the new title 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.
    • 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 string representation of the object suitable for display purposes. The string includes the request ID, request type, request status (with colorful formatting), project ID, supervisor ID, student ID, and new title.
      Specified by:
      getDisplayableString in interface Displayable
      Returns:
      a formatted string representing the object for display purposes.