Package main.model.request
Class StudentChangeTitleRequest
java.lang.Object
main.model.request.StudentChangeTitleRequest
- All Implemented Interfaces:
Displayable
,Model
,Request
,Mappable
This class represents a student request to change the title of a project
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
The new title of the projectprivate 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 who deals with the request -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a string representation of the object suitable for display purposes.getID()
Get the ID of the request.Get the new title of the projectGet the id of the projectGet the type of the request.Get the status of the request.Get the id of the studentGet the id of the supervisorvoid
setNewTitle
(String newTitle) Set the new title of the projectvoid
setProjectID
(String projectID) Set the id of the projectvoid
setStatus
(RequestStatus status) Set the status of the request.void
setStudentID
(String studentID) Set the id of the studentvoid
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 -
studentID
The ID of the student -
supervisorID
The ID of the supervisor who deals with the request -
projectID
The ID of the project -
newTitle
The new title of the project
-
-
Constructor Details
-
StudentChangeTitleRequest
public StudentChangeTitleRequest(String requestID, String studentID, String supervisorID, String projectID, String newTitle) Constructor- Parameters:
requestID
- The ID of the requeststudentID
- The ID of the studentsupervisorID
- The ID of the supervisorprojectID
- The ID of the projectnewTitle
- The new title of the project
-
StudentChangeTitleRequest
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
-
setStudentID
Set the id of the student- Parameters:
studentID
- the id of the student
-
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
-
getProjectID
Get the id of the project- Specified by:
getProjectID
in interfaceRequest
- Returns:
- the id of the project
-
setProjectID
Set the id of the project- Parameters:
projectID
- the id of the project
-
getNewTitle
Get the new title of the project- Returns:
- the new title of the project
-
setNewTitle
Set the new title of the project- Parameters:
newTitle
- the new title of the project
-
getRequestType
Get the type of the request.- Specified by:
getRequestType
in interfaceRequest
- Returns:
- the type of 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 string representation of the object suitable for display purposes. The string includes the request ID, request type, request status (with colorful formatting), project ID, supervisor ID, student ID, and new title.- Specified by:
getDisplayableString
in interfaceDisplayable
- Returns:
- a formatted string representing the object for display purposes.
-