Module sc2002_fypms
Package services

Class RequestStudentService

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

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

      • RequestStudentService

        public RequestStudentService()
        Constructs an instance of the RequestStudentService 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 interface IRequestStudentService
        Parameters:
        studentID - the ID of the student
        Returns:
        an ArrayList of Request 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 interface IRequestStudentService
        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
        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 interface IRequestStudentService
        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
        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 interface IRequestStudentService
        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
        newTitle - the new title of the project
        Returns:
        true if the request was created successfully, false otherwise