Package main.Models

Class EditTitleReq

java.lang.Object
main.Models.Request
main.Models.EditTitleReq

public class EditTitleReq extends Request
EditTitleReq is a subclass of Request that deals with edit title request
Since:
13-4-2023
  • Constructor Details

    • EditTitleReq

      public EditTitleReq(String requestID, String requesterID, String requesteeID, String requestType, requestStatus_ENUM status, String projectID, String comment, String newTitle)
      Constructor for EditTitleReq
      Parameters:
      requestID - ID of this request
      requesterID - ID of the user sending this request
      requesteeID - ID of the user receiving this request
      requestType - Type of this request
      status - status of this request
      projectID - project ID associated with this request
      comment - comments
      newTitle - new title to be changed to
  • Method Details

    • getTitle

      public String getTitle()
      Method to get the new title of request
      Returns:
      the new title
    • setTitle

      public void setTitle(String newTitle)
      Method to set title of a project
      Parameters:
      newTitle - new title to change to
    • printInfo

      public void printInfo(String currentTitle, String null1, String null2)
      Method to print the information of the request
      Specified by:
      printInfo in class Request
      Parameters:
      currentTitle - userID of student
      null1 - dummy variable
      null2 - dummy variable
    • processRequest

      public void processRequest(String decision)
      Method to process request
      Specified by:
      processRequest in class Request
      Parameters:
      decision - whether the request is approved/rejected