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 Details

    • getRequestID

      String getRequestID()
      Gets the unique identifier for this request.
      Returns:
      The request ID string.
    • setRequestID

      void setRequestID(String requestID)
      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 RequestType enum value indicating the request's purpose.
    • setRequestType

      void setRequestType(RequestType requestType)
      Sets the type of this request.
      Parameters:
      requestType - The RequestType enum 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

      void setUserID(String userID)
      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

      void setProjectID(String projectID)
      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 RequestStatus enum value.
    • setRequestStatus

      void setRequestStatus(RequestStatus requestStatus)
      Sets the overall processing status of this request.
      Parameters:
      requestStatus - The RequestStatus enum value to set.