Package interfaces

Interface ICampStaffService

  • All Known Implementing Classes:
    CampStaffService

    public interface ICampStaffService
    The ICampStaffService 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 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 of Camp containing all camps.
      • getCreatedCamps

        java.util.ArrayList<Camp> getCreatedCamps()
        Retrieves camps created by the staff member.
        Returns:
        An ArrayList of Camp 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.
      • toggleCampVisibilty

        boolean toggleCampVisibilty​(java.util.ArrayList<Camp> camps)
        Toggles the visibility of the provided list of camps.
        Parameters:
        camps - The ArrayList of Camps for which visibility will be toggled.
        Returns:
        true if the visibility is toggled successfully, false otherwise.