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 Summary
Modifier and TypeFieldDescriptionprivate String
The ID of the coordinator who deals with the requestprivate String
The ID of the projectThe ID of the requestprivate RequestStatus
The status of the requestprivate final RequestType
The type of the requestprivate String
The ID of the studentprivate String
The ID of the supervisor -
Constructor Summary
ConstructorDescriptionStudentDeregistrationRequest
(String requestID, String studentID, String supervisorID, String projectID) ConstructorConstructor -
Method Summary
Modifier 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.void
setCoordinatorID
(String coordinatorID) Set the ID of the coordinator who deals with the request.void
setStatus
(RequestStatus status) Set the status of the request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface main.model.request.Request
getSplitter
-
Field Details
-
requestType
The type of the request -
requestID
The ID of the request -
requestStatus
The status of the request -
studentID
The ID of the student -
supervisorID
The ID of the supervisor -
projectID
The ID of the project -
coordinatorID
The ID of the coordinator who deals with the request
-
-
Constructor Details
-
StudentDeregistrationRequest
public StudentDeregistrationRequest(String requestID, String studentID, String supervisorID, String projectID) Constructor- Parameters:
requestID
- The ID of the requeststudentID
- The ID of the studentsupervisorID
- The ID of the supervisorprojectID
- The ID of the project
-
StudentDeregistrationRequest
Constructor- Parameters:
map
- The map of the request
-
-
Method Details
-
getStudentID
Get the ID of the student.- Specified by:
getStudentID
in interfaceRequest
- Returns:
- the ID of the student.
-
getSupervisorID
Get the ID of the supervisor.- Specified by:
getSupervisorID
in interfaceRequest
- Returns:
- the ID of the supervisor.
-
getProjectID
Get the project ID of the request.- Specified by:
getProjectID
in interfaceRequest
- Returns:
- the project ID of the request.
-
getRequestType
Get the request type.- Specified by:
getRequestType
in interfaceRequest
- Returns:
- the request type.
-
getCoordinatorID
Get the ID of the coordinator who deals with the request.- Returns:
- the ID of the coordinator who deals with the request.
-
setCoordinatorID
Set the ID of the coordinator who deals with the request.- Parameters:
coordinatorID
- the ID of the coordinator who deals with the request.
-
getID
Get the ID of the request. -
getStatus
Get the status of the request. -
setStatus
Set the status of the request. -
getDisplayableString
This method returns a formatted string representation of the request's information.- Specified by:
getDisplayableString
in interfaceDisplayable
- Returns:
- a string with all request information formatted in a table
-