- java.lang.Object
-
- services.RequestStudentService
-
- All Implemented Interfaces:
IRequestStudentService
public class RequestStudentService extends java.lang.Object implements IRequestStudentService
TheRequestStudentService
class implementsIRequestStudentService
, providing request-related functionalities for students.
-
-
Constructor Summary
Constructors Constructor Description RequestStudentService()
Constructs an instance of theRequestStudentService
class.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
RequestStudentService
public RequestStudentService()
Constructs an instance of theRequestStudentService
class.
-
-
Method Detail
-
getStudentRequests
public java.util.ArrayList<Request> getStudentRequests(java.lang.String studentID)
Description copied from interface:IRequestStudentService
Retrieves a list of requests made by the student with the specified ID.- Specified by:
getStudentRequests
in interfaceIRequestStudentService
- Parameters:
studentID
- the ID of the student- Returns:
- an
ArrayList
ofRequest
objects 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:IRequestStudentService
Creates a new allocate project request with the specified sender ID, receiver ID, and project ID.- Specified by:
createAllocateProjectRequest
in 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:IRequestStudentService
Creates a new deregister project request with the specified sender ID, receiver ID, and project ID.- Specified by:
createDeregisterProjectRequest
in 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:IRequestStudentService
Creates a new change project title request with the specified sender ID, receiver ID, project ID, and new title.- Specified by:
createChangeProjectTitleRequest
in 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
-
-