Class SupervisorManager

java.lang.Object
main.controller.request.SupervisorManager

public class SupervisorManager extends Object
SupervisorManager class
  • Field Details

    • MAX_NUM_OF_STUDENTS_PER_SUPERVISOR

      public static int MAX_NUM_OF_STUDENTS_PER_SUPERVISOR
      The maximum number of students that a supervisor can supervise
  • Constructor Details

    • SupervisorManager

      public SupervisorManager()
  • Method Details

    • transferToNewSupervisor

      public static void transferToNewSupervisor(String projectID, String supervisorID, String newSupervisorID, String studentID)
      Transfer a student to a new supervisor
      Parameters:
      projectID - the project ID of the project that the student is currently in
      supervisorID - the supervisor ID of the supervisor that the student is currently in
      newSupervisorID - the supervisor ID of the supervisor that the student is going to be transferred to
      studentID - the student ID of the student that is going to be transferred
    • viewRequest

      public static List<Request> viewRequest(String supervisorID)
      View all requests
      Parameters:
      supervisorID - the supervisor ID of the supervisor that is going to view all requests
    • getPendingRequestsBySupervisor

      public static List<Request> getPendingRequestsBySupervisor(String supervisorID)
      get all pending requests by supervisor
      Parameters:
      supervisorID - the supervisor ID of the supervisor that is going to view all pending requests
      Returns:
      list of pending requests
    • getAllRequestHistory

      public static List<Request> getAllRequestHistory(Supervisor supervisor)
      get all request history by supervisor
      Parameters:
      supervisor - the supervisor that is going to view all request history
      Returns:
      list of request history
    • getNumOfStudents

      public static int getNumOfStudents(String supervisorID)
      get number of students that a supervisor is supervising
      Parameters:
      supervisorID - the supervisor ID of the supervisor
      Returns:
      number of students that a supervisor is supervising
    • getAllUnavailableSupervisors

      public static List<Supervisor> getAllUnavailableSupervisors()
      get all supervisors that are not available
      Returns:
      list of supervisors that are not available