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
FieldsModifier and TypeFieldDescriptionprivate StringThe new title of the projectprivate 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 who deals with the request -
Constructor Summary
Constructors -
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 supervisorvoidsetNewTitle(String newTitle) Set the new title of the projectvoidsetProjectID(String projectID) Set the id of the projectvoidsetStatus(RequestStatus status) Set the status of the request.voidsetStudentID(String studentID) Set the id of the studentvoidsetSupervisorID(String supervisorID) Set the id of the supervisorMethods 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 -
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:
getStudentIDin 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:
getSupervisorIDin 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:
getProjectIDin 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:
getRequestTypein 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:
getDisplayableStringin interfaceDisplayable- Returns:
- a formatted string representing the object for display purposes.
-