- java.lang.Object
-
- services.RequestStudentService
-
- All Implemented Interfaces:
IRequestStudentService
public class RequestStudentService extends java.lang.Object implements IRequestStudentService
TheRequestStudentServiceclass implementsIRequestStudentService, providing request-related functionalities for students.
-
-
Constructor Summary
Constructors Constructor Description RequestStudentService()Constructs an instance of theRequestStudentServiceclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreateAllocateProjectRequest(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.booleancreateChangeProjectTitleRequest(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.booleancreateDeregisterProjectRequest(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.
-
-
-
Constructor Detail
-
RequestStudentService
public RequestStudentService()
Constructs an instance of theRequestStudentServiceclass.
-
-
Method Detail
-
getStudentRequests
public java.util.ArrayList<Request> getStudentRequests(java.lang.String studentID)
Description copied from interface:IRequestStudentServiceRetrieves a list of requests made by the student with the specified ID.- Specified by:
getStudentRequestsin interfaceIRequestStudentService- Parameters:
studentID- the ID of the student- Returns:
- an
ArrayListofRequestobjects representing the requests made by the student
-
createAllocateProjectRequest
public boolean createAllocateProjectRequest(java.lang.String senderID, java.lang.String receiverID, int projectID)Description copied from interface:IRequestStudentServiceCreates a new allocate project request with the specified sender ID, receiver ID, and project ID.- Specified by:
createAllocateProjectRequestin interfaceIRequestStudentService- 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
public boolean createDeregisterProjectRequest(java.lang.String senderID, java.lang.String receiverID, int projectID)Description copied from interface:IRequestStudentServiceCreates a new deregister project request with the specified sender ID, receiver ID, and project ID.- Specified by:
createDeregisterProjectRequestin interfaceIRequestStudentService- 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
public boolean createChangeProjectTitleRequest(java.lang.String senderID, java.lang.String receiverID, int projectID, java.lang.String newTitle)Description copied from interface:IRequestStudentServiceCreates a new change project title request with the specified sender ID, receiver ID, project ID, and new title.- Specified by:
createChangeProjectTitleRequestin interfaceIRequestStudentService- 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
-
-