Module sc2002_fypms
Package interfaces

Interface IRequestSupervisorService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean approveProject​(Request request)
      Approves the specified project request.
      boolean createTransferStudentRequest​(java.lang.String senderID, java.lang.String receiverID, int projectID, java.lang.String replacementSupervisorID)
      Creates a new transfer student request with the specified sender ID, receiver ID, project ID, and replacement supervisor ID.
      java.util.ArrayList<Request> getIncomingRequests​(java.lang.String supervisorID)
      Retrieves a list of incoming requests sent to the supervisor with the specified ID.
      java.util.ArrayList<Request> getOutgoingRequests​(java.lang.String supervisorID)
      Retrieves a list of outgoing requests sent by the supervisor with the specified ID.
      java.util.ArrayList<Request> getStudentPendingRequests​(java.lang.String supervisorID)
      Retrieves a list of pending requests made by the students of the supervisor with the specified ID.
      boolean rejectProject​(Request request)
      Rejects the specified project request.
    • Method Detail

      • getStudentPendingRequests

        java.util.ArrayList<Request> getStudentPendingRequests​(java.lang.String supervisorID)
        Retrieves a list of pending requests made by the students of the supervisor with the specified ID.
        Parameters:
        supervisorID - the ID of the supervisor
        Returns:
        an ArrayList of Request objects representing the pending requests made by the students of the supervisor
      • getIncomingRequests

        java.util.ArrayList<Request> getIncomingRequests​(java.lang.String supervisorID)
        Retrieves a list of incoming requests sent to the supervisor with the specified ID.
        Parameters:
        supervisorID - the ID of the supervisor
        Returns:
        an ArrayList of Request objects representing the incoming requests sent to the supervisor
      • getOutgoingRequests

        java.util.ArrayList<Request> getOutgoingRequests​(java.lang.String supervisorID)
        Retrieves a list of outgoing requests sent by the supervisor with the specified ID.
        Parameters:
        supervisorID - the ID of the supervisor
        Returns:
        an ArrayList of Request objects representing the outgoing requests sent by the supervisor
      • approveProject

        boolean approveProject​(Request request)
        Approves the specified project request.
        Parameters:
        request - the Request object to be approved
        Returns:
        true if the request was approved successfully, false otherwise
      • rejectProject

        boolean rejectProject​(Request request)
        Rejects the specified project request.
        Parameters:
        request - the Request object to be rejected
        Returns:
        true if the request was rejected successfully, false otherwise
      • createTransferStudentRequest

        boolean createTransferStudentRequest​(java.lang.String senderID,
                                             java.lang.String receiverID,
                                             int projectID,
                                             java.lang.String replacementSupervisorID)
        Creates a new transfer student request with the specified sender ID, receiver ID, project ID, and replacement supervisor 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
        replacementSupervisorID - the ID of the supervisor who will be the new supervisor for the transferred student
        Returns:
        true if the request was created successfully, false otherwise