- 
- All Known Implementing Classes:
 CampStaffService
public interface ICampStaffServiceTheICampStaffServiceinterface 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 booleancreateCamp(Camp camp)Creates camps based on the provided list.booleandeleteCamp(Camp camp)Deletes a camp.booleaneditCamp(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.booleantoggleCampVisibilty(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:
 trueif the camps are created successfully,falseotherwise.
 
- 
getAllCamps
java.util.ArrayList<Camp> getAllCamps()
Retrieves all camps.- Returns:
 - An 
ArrayListofCampcontaining all camps. 
 
- 
getCreatedCamps
java.util.ArrayList<Camp> getCreatedCamps()
Retrieves camps created by the staff member.- Returns:
 - An 
ArrayListofCampcontaining 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:
 trueif the camp is edited successfully,falseotherwise.
 
- 
deleteCamp
boolean deleteCamp(Camp camp)
Deletes a camp.- Parameters:
 camp- The camp to be deleted.- Returns:
 trueif the camp is deleted successfully,falseotherwise.
 
 - 
 
 -