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
Modifier and TypeFieldDescriptionprivate String
The ID of the coordinator who deals with the requestprivate String
The ID of the projectprivate String
The 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
ConstructorDescriptionStudentRegistrationRequest
(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.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 -
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:
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 ID of the project.- Specified by:
getProjectID
in interfaceRequest
- Returns:
- the ID of the project.
-
getRequestType
Get the type of the request.- Specified by:
getRequestType
in 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:
getDisplayableString
in interfaceDisplayable
- Returns:
- a string with all request information formatted in a table
-