-
- All Known Implementing Classes:
RequestStudentService
public interface IRequestStudentService
TheIRequestStudentService
interface defines a contract for managing student-related request services.
-
-
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
ofRequest
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 requestreceiverID
- the ID of the receiver of the requestprojectID
- 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 requestreceiverID
- the ID of the receiver of the requestprojectID
- 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 requestreceiverID
- the ID of the receiver of the requestprojectID
- the ID of the project associated with the requestnewTitle
- the new title of the project- Returns:
- true if the request was created successfully, false otherwise
-
-