Class CampViewController

java.lang.Object
app.controller.camp.CampViewController

public class CampViewController extends Object
The CampViewController class provides methods to retrieve information about camps.
  • Method Details

    • getCamp

      public static Camp[] getCamp(String school)
      Retrieves an array of camps filtered by school.
      Parameters:
      school - The name of the school to filter camps by.
      Returns:
      An array of camps that match the specified school.
    • getCamp

      public static Camp[] getCamp()
      Retrieves an array of all available camps.
      Returns:
      An array containing all camps.
    • getCamp

      public static Camp[] getCamp(Staff staff)
      Retrieves an array of camps associated with a staff member.
      Parameters:
      staff - The staff member for whom camps are to be retrieved.
      Returns:
      An array of camps associated with the specified staff member.
    • getCamp

      public static Camp[] getCamp(Student student)
      Retrieves an array of camps associated with a student.
      Parameters:
      student - The student for whom camps are to be retrieved.
      Returns:
      An array of camps associated with the specified student.