Package main.controller.request
Class CoordinatorManager
java.lang.Object
main.controller.request.CoordinatorManager
CoordinatorManager class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidapproveDeregisterStudent(String studentID, String projectID, String supervisorID) approve a student deregistration requeststatic voidapproveRegisterStudent(String studentID, String projectID, String supervisorID) register a student to a projectstatic voidchangeProjectTitle(String requestID, String newtitle) change the project titleget all the pending requests that the coordinator can managedisplay all the requestsget all the pending requestsstatic voidrejectRegisterStudent(String studentID, String projectID, String supervisorID) reject a student deregistration request
- 
Constructor Details- 
CoordinatorManagerpublic CoordinatorManager()
 
- 
- 
Method Details- 
approveDeregisterStudentpublic 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
 
- 
approveRegisterStudentpublic 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
 
- 
rejectRegisterStudentpublic 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
 
- 
changeProjectTitlepublic 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
 
- 
getAllRequestsdisplay all the requests- Returns:
- a list of requests
 
- 
getPendingRequestsget all the pending requests- Returns:
- a list of pending requests
 
- 
getAllPendingRequestsCoordinatorCanManageget all the pending requests that the coordinator can manage- Returns:
- a list of pending requests
 
 
-