Package main.controller.request
Class SupervisorManager
java.lang.Object
main.controller.request.SupervisorManager
SupervisorManager class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intThe maximum number of students that a supervisor can supervise -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllRequestHistory(Supervisor supervisor) get all request history by supervisorstatic List<Supervisor>get all supervisors that are not availablestatic intgetNumOfStudents(String supervisorID) get number of students that a supervisor is supervisinggetPendingRequestsBySupervisor(String supervisorID) get all pending requests by supervisorstatic voidtransferToNewSupervisor(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
-