Module sc2002_fypms
Package services

Class RequestSupervisorService

    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestSupervisorService

        public RequestSupervisorService()
        Constructs an instance of the RequestSupervisorService class.
    • Method Detail

      • getStudentPendingRequests

        public java.util.ArrayList<Request> getStudentPendingRequests​(java.lang.String supervisorID)
        Description copied from interface: IRequestSupervisorService
        Retrieves a list of pending requests made by the students of the supervisor with the specified ID.
        Specified by:
        getStudentPendingRequests in interface IRequestSupervisorService
        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

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

        public java.util.ArrayList<Request> getOutgoingRequests​(java.lang.String supervisorID)
        Description copied from interface: IRequestSupervisorService
        Retrieves a list of outgoing requests sent by the supervisor with the specified ID.
        Specified by:
        getOutgoingRequests in interface IRequestSupervisorService
        Parameters:
        supervisorID - the ID of the supervisor
        Returns:
        an ArrayList of Request objects representing the outgoing requests sent by the supervisor
      • createTransferStudentRequest

        public boolean createTransferStudentRequest​(java.lang.String senderID,
                                                    java.lang.String receiverID,
                                                    int projectID,
                                                    java.lang.String replacementSupervisorID)
        Description copied from interface: IRequestSupervisorService
        Creates a new transfer student request with the specified sender ID, receiver ID, project ID, and replacement supervisor ID.
        Specified by:
        createTransferStudentRequest in interface IRequestSupervisorService
        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