Class CoordinatorManager

java.lang.Object
main.controller.request.CoordinatorManager

public class CoordinatorManager extends Object
CoordinatorManager class
  • Constructor Details

    • CoordinatorManager

      public CoordinatorManager()
  • Method Details

    • approveDeregisterStudent

      public static void approveDeregisterStudent(String studentID, String projectID, String supervisorID) throws ModelNotFoundException, IllegalStateException, StudentStatusException
      approve a student deregistration request
      Parameters:
      studentID - the student ID of the student that is going to deregister from the project
      projectID - the project ID of the project that the student is going to deregister from
      supervisorID - the supervisor ID of the supervisor that the student is going to deregister from
      Throws:
      ModelNotFoundException - if the student, project or supervisor is not found
      IllegalStateException - if the project is not allocated to a student
      StudentStatusException - if the student is not registered
    • approveRegisterStudent

      public static void approveRegisterStudent(String studentID, String projectID, String supervisorID) throws ModelNotFoundException
      register a student to a project
      Parameters:
      studentID - the student ID
      projectID - the project ID
      supervisorID - the supervisor ID
      Throws:
      ModelNotFoundException - if the student, project or supervisor is not found
    • rejectRegisterStudent

      public static void rejectRegisterStudent(String studentID, String projectID, String supervisorID) throws ModelNotFoundException
      reject a student deregistration request
      Parameters:
      studentID - the student ID
      projectID - the project ID
      supervisorID - the supervisor ID
      Throws:
      ModelNotFoundException - if the student, project or supervisor is not found
    • changeProjectTitle

      public static void changeProjectTitle(String requestID, String newtitle) throws ModelNotFoundException, ModelAlreadyExistsException
      change the project title
      Parameters:
      requestID - the request ID
      newtitle - the new title
      Throws:
      ModelNotFoundException - if the request is not found
      ModelAlreadyExistsException - if the project title already exists
    • getAllRequests

      public static List<Request> getAllRequests()
      display all the requests
      Returns:
      a list of requests
    • getPendingRequests

      public static List<Request> getPendingRequests()
      get all the pending requests
      Returns:
      a list of pending requests
    • getAllPendingRequestsCoordinatorCanManage

      public static List<Request> getAllPendingRequestsCoordinatorCanManage()
      get all the pending requests that the coordinator can manage
      Returns:
      a list of pending requests