-
- All Known Subinterfaces:
IRequestFYPCoordinatorService
- All Known Implementing Classes:
RequestFYPCoordinatorService
,RequestSupervisorService
public interface IRequestSupervisorService
TheIRequestSupervisorService
interface defines a contract for managing supervisor-related request services.
-
-
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
ofRequest
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
ofRequest
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
ofRequest
objects representing the outgoing requests sent by the supervisor
-
approveProject
boolean approveProject(Request request)
Approves the specified project request.- Parameters:
request
- theRequest
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
- theRequest
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 requestreceiverID
- the ID of the receiver of the requestprojectID
- the ID of the project associated with the requestreplacementSupervisorID
- 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
-
-