Package main.controller.request
Class SupervisorManager
java.lang.Object
main.controller.request.SupervisorManager
SupervisorManager class
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
The maximum number of students that a supervisor can supervise -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllRequestHistory
(Supervisor supervisor) get all request history by supervisorstatic List<Supervisor>
get all supervisors that are not availablestatic int
getNumOfStudents
(String supervisorID) get number of students that a supervisor is supervisinggetPendingRequestsBySupervisor
(String supervisorID) get all pending requests by supervisorstatic void
transferToNewSupervisor
(String projectID, String supervisorID, String newSupervisorID, String studentID) Transfer a student to a new supervisorviewRequest
(String supervisorID) View all requests
-
Field Details
-
MAX_NUM_OF_STUDENTS_PER_SUPERVISOR
public static int MAX_NUM_OF_STUDENTS_PER_SUPERVISORThe 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 insupervisorID
- the supervisor ID of the supervisor that the student is currently innewSupervisorID
- the supervisor ID of the supervisor that the student is going to be transferred tostudentID
- the student ID of the student that is going to be transferred
-
viewRequest
View all requests- Parameters:
supervisorID
- the supervisor ID of the supervisor that is going to view all requests
-
getPendingRequestsBySupervisor
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
get all request history by supervisor- Parameters:
supervisor
- the supervisor that is going to view all request history- Returns:
- list of request history
-
getNumOfStudents
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
-