Package main.controller.request
Class CoordinatorManager
java.lang.Object
main.controller.request.CoordinatorManager
CoordinatorManager class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
approveDeregisterStudent
(String studentID, String projectID, String supervisorID) approve a student deregistration requeststatic void
approveRegisterStudent
(String studentID, String projectID, String supervisorID) register a student to a projectstatic void
changeProjectTitle
(String requestID, String newtitle) change the project titleget all the pending requests that the coordinator can managedisplay all the requestsget all the pending requestsstatic void
rejectRegisterStudent
(String studentID, String projectID, String supervisorID) reject a student deregistration request
-
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 projectprojectID
- the project ID of the project that the student is going to deregister fromsupervisorID
- the supervisor ID of the supervisor that the student is going to deregister from- Throws:
ModelNotFoundException
- if the student, project or supervisor is not foundIllegalStateException
- if the project is not allocated to a studentStudentStatusException
- 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 IDprojectID
- the project IDsupervisorID
- 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 IDprojectID
- the project IDsupervisorID
- 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 IDnewtitle
- the new title- Throws:
ModelNotFoundException
- if the request is not foundModelAlreadyExistsException
- if the project title already exists
-
getAllRequests
display all the requests- Returns:
- a list of requests
-
getPendingRequests
get all the pending requests- Returns:
- a list of pending requests
-
getAllPendingRequestsCoordinatorCanManage
get all the pending requests that the coordinator can manage- Returns:
- a list of pending requests
-