Interface Requestable
- All Known Implementing Classes:
BTOApplication,BTOWithdrawal,Enquiry,OfficerRegistration,Request
public interface Requestable
Defines the essential contract for any object that represents a request
within the system. Implementing classes must provide methods to get and set
core request attributes like ID, type, associated user and project IDs, and status.
-
Method Summary
Modifier and TypeMethodDescriptionGets the project ID related to this request, if applicable.Gets the unique identifier for this request.Gets the overall processing status of this request (e.g., PENDING, DONE).Gets the type of this request.Gets the user ID associated with this request (e.g., the user who submitted it).voidsetProjectID(String projectID) Sets the project ID related to this request.voidsetRequestID(String requestID) Sets the unique identifier for this request.voidsetRequestStatus(RequestStatus requestStatus) Sets the overall processing status of this request.voidsetRequestType(RequestType requestType) Sets the type of this request.voidSets the user ID associated with this request.
-
Method Details
-
getRequestID
-
setRequestID
Sets the unique identifier for this request.- Parameters:
requestID- The request ID string to set.
-
getRequestType
RequestType getRequestType()Gets the type of this request.- Returns:
- The
RequestTypeenum value indicating the request's purpose.
-
setRequestType
Sets the type of this request.- Parameters:
requestType- TheRequestTypeenum value to set.
-
getUserID
String getUserID()Gets the user ID associated with this request (e.g., the user who submitted it).- Returns:
- The user ID string.
-
setUserID
Sets the user ID associated with this request.- Parameters:
userID- The user ID string to set.
-
getProjectID
String getProjectID()Gets the project ID related to this request, if applicable.- Returns:
- The project ID string. May be null or empty if the request is not project-specific.
-
setProjectID
Sets the project ID related to this request.- Parameters:
projectID- The project ID string to set.
-
getRequestStatus
RequestStatus getRequestStatus()Gets the overall processing status of this request (e.g., PENDING, DONE).- Returns:
- The
RequestStatusenum value.
-
setRequestStatus
Sets the overall processing status of this request.- Parameters:
requestStatus- TheRequestStatusenum value to set.
-