Package main.model.request
Class TransferStudentRequest
java.lang.Object
main.model.request.TransferStudentRequest
- All Implemented Interfaces:
Displayable
,Model
,Request
,Mappable
A class that represents a transfer student request
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
The ID of the coordinator who deals with the requestprivate String
The ID of the new supervisorprivate 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
-
Method Summary
Modifier and TypeMethodDescriptionGet the ID of the coordinatorReturns a formatted string representation of the request details for display purposes.getID()
Get the ID of the requestGet the ID of the new supervisorGet the ID of the projectGet the type of the requestGet the status of the requestGet the ID of the studentGet the ID of the supervisorvoid
setCoordinatorID
(String coordinatorID) Set the ID of the coordinatorvoid
setStatus
(RequestStatus status) Set the status of the requestvoid
setSupervisorID
(String supervisorID) Set the ID of the supervisorMethods 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 -
projectID
The ID of the project -
supervisorID
The ID of the supervisor -
newSupervisorID
The ID of the new supervisor -
studentID
The ID of the student -
coordinatorID
The ID of the coordinator who deals with the request
-
-
Constructor Details
-
TransferStudentRequest
public TransferStudentRequest(String requestID, String projectID, String supervisorID, String newSupervisorID, String studentID) Constructor- Parameters:
requestID
- The ID of the requestprojectID
- The ID of the projectsupervisorID
- The ID of the supervisornewSupervisorID
- The ID of the new supervisorstudentID
- The ID of the student
-
TransferStudentRequest
Constructor- Parameters:
map
- The map of the request
-
-
Method Details
-
getProjectID
Get the ID of the project- Specified by:
getProjectID
in interfaceRequest
- Returns:
- The ID of the project
-
getSupervisorID
Get the ID of the supervisor- Specified by:
getSupervisorID
in interfaceRequest
- Returns:
- The ID of the supervisor
-
setSupervisorID
Set the ID of the supervisor- Parameters:
supervisorID
- The ID of the supervisor to be set
-
getNewSupervisorID
Get the ID of the new supervisor- Returns:
- The ID of the new supervisor
-
getStudentID
Get the ID of the student- Specified by:
getStudentID
in interfaceRequest
- Returns:
- The ID of the student
-
getCoordinatorID
Get the ID of the coordinator- Returns:
- The ID of the coordinator
-
setCoordinatorID
Set the ID of the coordinator- Parameters:
coordinatorID
- The ID of the coordinator
-
getID
Get the ID of the request -
getStatus
Get the status of the request -
setStatus
Set the status of the request -
getRequestType
Get the type of the request- Specified by:
getRequestType
in interfaceRequest
- Returns:
- The type of the request
-
getDisplayableString
Returns a formatted string representation of the request details for display purposes.- Specified by:
getDisplayableString
in interfaceDisplayable
- Returns:
- a string with formatted request details
-