-
- All Known Implementing Classes:
CampStaffService
public interface ICampStaffService
TheICampStaffService
interface defines a contract for classes that provide services related to camp management for staff members. It includes methods for creating, retrieving, editing, and deleting camps, as well as toggling the visibility of camps.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
createCamp(Camp camp)
Creates camps based on the provided list.boolean
deleteCamp(Camp camp)
Deletes a camp.boolean
editCamp(Camp camp, int field, java.lang.Object value)
Edits a specific field (such as date, description ...) of a camp.java.util.ArrayList<Camp>
getAllCamps()
Retrieves all camps.java.util.ArrayList<Camp>
getCreatedCamps()
Retrieves camps created by the staff member.boolean
toggleCampVisibilty(java.util.ArrayList<Camp> camps)
Toggles the visibility of the provided list of camps.
-
-
-
Method Detail
-
createCamp
boolean createCamp(Camp camp)
Creates camps based on the provided list.- Parameters:
camp
- The list of camps that exists already.- Returns:
true
if the camps are created successfully,false
otherwise.
-
getAllCamps
java.util.ArrayList<Camp> getAllCamps()
Retrieves all camps.- Returns:
- An
ArrayList
ofCamp
containing all camps.
-
getCreatedCamps
java.util.ArrayList<Camp> getCreatedCamps()
Retrieves camps created by the staff member.- Returns:
- An
ArrayList
ofCamp
containing camps created by the staff member.
-
editCamp
boolean editCamp(Camp camp, int field, java.lang.Object value)
Edits a specific field (such as date, description ...) of a camp.- Parameters:
camp
- The camp to be edited.field
- The field index to be edited.value
- The new value for the field.- Returns:
true
if the camp is edited successfully,false
otherwise.
-
deleteCamp
boolean deleteCamp(Camp camp)
Deletes a camp.- Parameters:
camp
- The camp to be deleted.- Returns:
true
if the camp is deleted successfully,false
otherwise.
-
-