Module sc2002_fypms
Package interfaces

Interface IRequestStudentService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean createAllocateProjectRequest​(java.lang.String senderID, java.lang.String receiverID, int projectID)
      Creates a new allocate project request with the specified sender ID, receiver ID, and project ID.
      boolean createChangeProjectTitleRequest​(java.lang.String senderID, java.lang.String receiverID, int projectID, java.lang.String newTitle)
      Creates a new change project title request with the specified sender ID, receiver ID, project ID, and new title.
      boolean createDeregisterProjectRequest​(java.lang.String senderID, java.lang.String receiverID, int projectID)
      Creates a new deregister project request with the specified sender ID, receiver ID, and project ID.
      java.util.ArrayList<Request> getStudentRequests​(java.lang.String studentID)
      Retrieves a list of requests made by the student with the specified ID.
    • Method Detail

      • getStudentRequests

        java.util.ArrayList<Request> getStudentRequests​(java.lang.String studentID)
        Retrieves a list of requests made by the student with the specified ID.
        Parameters:
        studentID - the ID of the student
        Returns:
        an ArrayList of Request objects representing the requests made by the student
      • createAllocateProjectRequest

        boolean createAllocateProjectRequest​(java.lang.String senderID,
                                             java.lang.String receiverID,
                                             int projectID)
        Creates a new allocate project request with the specified sender ID, receiver ID, and project ID.
        Parameters:
        senderID - the ID of the sender of the request
        receiverID - the ID of the receiver of the request
        projectID - the ID of the project associated with the request
        Returns:
        true if the request was created successfully, false otherwise
      • createDeregisterProjectRequest

        boolean createDeregisterProjectRequest​(java.lang.String senderID,
                                               java.lang.String receiverID,
                                               int projectID)
        Creates a new deregister project request with the specified sender ID, receiver ID, and project ID.
        Parameters:
        senderID - the ID of the sender of the request
        receiverID - the ID of the receiver of the request
        projectID - the ID of the project associated with the request
        Returns:
        true if the request was created successfully, false otherwise
      • createChangeProjectTitleRequest

        boolean createChangeProjectTitleRequest​(java.lang.String senderID,
                                                java.lang.String receiverID,
                                                int projectID,
                                                java.lang.String newTitle)
        Creates a new change project title request with the specified sender ID, receiver ID, project ID, and new title.
        Parameters:
        senderID - the ID of the sender of the request
        receiverID - the ID of the receiver of the request
        projectID - the ID of the project associated with the request
        newTitle - the new title of the project
        Returns:
        true if the request was created successfully, false otherwise