Package main.Models
Class Request
java.lang.Object
main.Models.Request
- Direct Known Subclasses:
DeregisterProjectReq
,EditTitleReq
,RegisterProjectReq
,TransferStudentReq
The Request base class. Different request types will inherit this class
- Since:
- 2023-04-13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets comments in requestGets the projectIDGets ID of requesteeGets the requester's IDGets the requestIDGets the status of requestGets the type of requestabstract void
Prints the information of the requestabstract void
processRequest
(String decision) Process the requestvoid
setComments
(String comments) Sets comments in requestvoid
setProjectID
(String projectID) Sets the projectID of the requestvoid
setRequesteeID
(String requesteeID) Sets ID of requesteevoid
setRequesterID
(String requesterID) Sets the request's requester's IDvoid
setRequestID
(String requestID) Sets the requestIDvoid
setRequestStatus
(requestStatus_ENUM requestStatus) Sets request statusvoid
setRequestType
(String requestType2) Sets the type of request
-
Constructor Details
-
Request
public Request(String requestID, String requesterID, String requesteeID, String requestType, requestStatus_ENUM status, String projectID, String comment) The constructor of Request- Parameters:
requestID
- The ID of the requestrequesterID
- The ID of the requesterrequesteeID
- The ID of the requestee: either Coordinator or SupervisorrequestType
- The type of requeststatus
- The request statusprojectID
- The ID of the projectcomment
- Comments made by requester/requestee
-
-
Method Details
-
getRequestStatus
Gets the status of request- Returns:
- the request status
-
getRequestID
Gets the requestID- Returns:
- ID of request
-
setRequestID
Sets the requestID- Parameters:
requestID
- ID of request
-
getRequesterID
Gets the requester's ID- Returns:
- requester's ID
-
setRequesterID
Sets the request's requester's ID- Parameters:
requesterID
- ID of requester
-
getProjectID
Gets the projectID- Returns:
- ID of project
-
setProjectID
Sets the projectID of the request- Parameters:
projectID
- ID of project
-
getRequestType
Gets the type of request- Returns:
- request's type
-
setRequestType
Sets the type of request- Parameters:
requestType2
- type of request
-
setRequestStatus
Sets request status- Parameters:
requestStatus
- status of request
-
getComments
Gets comments in request- Returns:
- comments
-
setComments
Sets comments in request- Parameters:
comments
- comments made by requester/requestee
-
getRequesteeID
Gets ID of requestee- Returns:
- ID of requestee
-
setRequesteeID
Sets ID of requestee- Parameters:
requesteeID
- ID of requestee
-
printInfo
Prints the information of the request- Parameters:
info1
- project titleinfo2
- supervisor's IDinfo3
- supervisor's email
-
processRequest
Process the request- Parameters:
decision
- approve or reject the request
-