-
- All Known Implementing Classes:
CampStudentService
public interface ICampStudentServiceTheICampStudentServiceinterface 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.booleanregisterForCamp(java.lang.String studentID, int campID, boolean committee)Registers a student for a specific camp.booleanwithdrawFromCamp(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
ArrayListofCamps 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
ArrayListofCamps 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:
trueif the registration is successful,falseotherwise.
-
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:
trueif the withdrawal is successful,falseotherwise.
-
-