Package interfaces

Interface ICampStudentService

  • All Known Implementing Classes:
    CampStudentService

    public interface ICampStudentService
    The ICampStudentService interface defines a contract for classes that provide services related to camp management for students. It includes methods for retrieving available camps, registered camps, registering for a camp, and withdrawing from a camp.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.ArrayList<Camp> getAvailableCamps​(Schools school)
      Retrieves the available camps for a specific school.
      java.util.ArrayList<Camp> getRegisteredCamps​(java.lang.String studentID)
      Retrieves the camps registered by a specific student.
      boolean registerForCamp​(java.lang.String studentID, int campID, boolean committee)
      Registers a student for a specific camp.
      boolean withdrawFromCamp​(java.lang.String studentID, int campID)
      Withdraws a student from a specific camp.
    • Method Detail

      • getAvailableCamps

        java.util.ArrayList<Camp> getAvailableCamps​(Schools school)
        Retrieves the available camps for a specific school.
        Parameters:
        school - The school for which available camps are to be retrieved.
        Returns:
        An ArrayList of Camps containing the available camps.
      • getRegisteredCamps

        java.util.ArrayList<Camp> getRegisteredCamps​(java.lang.String studentID)
        Retrieves the camps registered by a specific student.
        Parameters:
        studentID - The ID of the student for whom registered camps are to be retrieved.
        Returns:
        An ArrayList of Camps containing the registered camps.
      • registerForCamp

        boolean registerForCamp​(java.lang.String studentID,
                                int campID,
                                boolean committee)
        Registers a student for a specific camp.
        Parameters:
        studentID - The ID of the student to be registered.
        campID - The ID of the camp for registration.
        committee - A boolean indicating whether the student wants to become a committee.
        Returns:
        true if the registration is successful, false otherwise.
      • withdrawFromCamp

        boolean withdrawFromCamp​(java.lang.String studentID,
                                 int campID)
        Withdraws a student from a specific camp.
        Parameters:
        studentID - The ID of the student to be withdrawn.
        campID - The ID of the camp for withdrawal.
        Returns:
        true if the withdrawal is successful, false otherwise.