Package main.model.request
Class StudentDeregistrationRequest
java.lang.Object
main.model.request.StudentDeregistrationRequest
- All Implemented Interfaces:
- Displayable,- Model,- Request,- Mappable
A request for a student to deregister from a project
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate StringThe ID of the coordinator who deals with the requestprivate StringThe ID of the projectThe ID of the requestprivate RequestStatusThe status of the requestprivate final RequestTypeThe type of the requestprivate StringThe ID of the studentprivate StringThe ID of the supervisor
- 
Constructor SummaryConstructorsConstructorDescriptionStudentDeregistrationRequest(String requestID, String studentID, String supervisorID, String projectID) ConstructorConstructor
- 
Method SummaryModifier and TypeMethodDescriptionGet the ID of the coordinator who deals with the request.This method returns a formatted string representation of the request's information.getID()Get the ID of the request.Get the project ID of the request.Get the request type.Get the status of the request.Get the ID of the student.Get the ID of the supervisor.voidsetCoordinatorID(String coordinatorID) Set the ID of the coordinator who deals with the request.voidsetStatus(RequestStatus status) Set the status of the request.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface main.model.request.RequestgetSplitter
- 
Field Details- 
requestTypeThe type of the request
- 
requestIDThe ID of the request
- 
requestStatusThe status of the request
- 
studentIDThe ID of the student
- 
supervisorIDThe ID of the supervisor
- 
projectIDThe ID of the project
- 
coordinatorIDThe ID of the coordinator who deals with the request
 
- 
- 
Constructor Details- 
StudentDeregistrationRequestpublic StudentDeregistrationRequest(String requestID, String studentID, String supervisorID, String projectID) Constructor- Parameters:
- requestID- The ID of the request
- studentID- The ID of the student
- supervisorID- The ID of the supervisor
- projectID- The ID of the project
 
- 
StudentDeregistrationRequestConstructor- Parameters:
- map- The map of the request
 
 
- 
- 
Method Details- 
getStudentIDGet the ID of the student.- Specified by:
- getStudentIDin interface- Request
- Returns:
- the ID of the student.
 
- 
getSupervisorIDGet the ID of the supervisor.- Specified by:
- getSupervisorIDin interface- Request
- Returns:
- the ID of the supervisor.
 
- 
getProjectIDGet the project ID of the request.- Specified by:
- getProjectIDin interface- Request
- Returns:
- the project ID of the request.
 
- 
getRequestTypeGet the request type.- Specified by:
- getRequestTypein interface- Request
- Returns:
- the request type.
 
- 
getCoordinatorIDGet the ID of the coordinator who deals with the request.- Returns:
- the ID of the coordinator who deals with the request.
 
- 
setCoordinatorIDSet the ID of the coordinator who deals with the request.- Parameters:
- coordinatorID- the ID of the coordinator who deals with the request.
 
- 
getIDGet the ID of the request.
- 
getStatusGet the status of the request.
- 
setStatusSet the status of the request.
- 
getDisplayableStringThis method returns a formatted string representation of the request's information.- Specified by:
- getDisplayableStringin interface- Displayable
- Returns:
- a string with all request information formatted in a table
 
 
-