Package main.model.request
Class StudentRegistrationRequest
java.lang.Object
main.model.request.StudentRegistrationRequest
- All Implemented Interfaces:
Displayable,Model,Request,Mappable
A class that represents a student registration request
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe ID of the coordinator who deals with the requestprivate StringThe ID of the projectprivate StringThe 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 Summary
ConstructorsConstructorDescriptionStudentRegistrationRequest(String requestID, String studentID, String supervisorID, String projectID) ConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptionGet the ID of the coordinator who deals with the request.Returns a formatted string representation of the request's information.getID()Get the ID of the request.Get the ID of the project.Get the type of the request.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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface main.model.request.Request
getSplitter
-
Field Details
-
requestType
The type of the request -
studentID
The ID of the student -
supervisorID
The ID of the supervisor -
projectID
The ID of the project -
requestStatus
The status of the request -
requestID
The ID of the request -
coordinatorID
The ID of the coordinator who deals with the request
-
-
Constructor Details
-
StudentRegistrationRequest
public StudentRegistrationRequest(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
-
StudentRegistrationRequest
Constructor- Parameters:
map- The map of the request
-
-
Method Details
-
getStudentID
Get the ID of the student.- Specified by:
getStudentIDin interfaceRequest- Returns:
- the ID of the student.
-
getSupervisorID
Get the ID of the supervisor.- Specified by:
getSupervisorIDin interfaceRequest- Returns:
- the ID of the supervisor.
-
getProjectID
Get the ID of the project.- Specified by:
getProjectIDin interfaceRequest- Returns:
- the ID of the project.
-
getRequestType
Get the type of the request.- Specified by:
getRequestTypein interfaceRequest- Returns:
- the type of the request.
-
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
Returns a formatted string representation of the request's information.- Specified by:
getDisplayableStringin interfaceDisplayable- Returns:
- a string with all request information formatted in a table
-