Class CampRegistrationController

java.lang.Object
app.controller.camp.CampRegistrationController

public class CampRegistrationController extends Object
The CampRegistrationController class is responsible for handling the registration and deregistration of students for camps. This class acts as a app.controller for camp registration operations, leveraging its inner class CampRegistrationService for specific actions.

It provides an interface to manage the addition and removal of students as attendees in various camp events.

  • Method Details

    • checkConflict

      public static Camp checkConflict(Camp camp, Student student)
      Registers a student to a camp by adding them to the camp's list of attendees. This method is used to add a Student to the attendee list of a specified Camp.
      Parameters:
      camp - The Camp to which the student is to be registered.
      student - The Student to be registered for the camp.
    • registerCamp

      public static OperationResult registerCamp(Camp camp, Student student)
    • checkJoinedAsCommittee

      public static boolean checkJoinedAsCommittee(Student student)
    • registerCampAsCommittee

      public static OperationResult registerCampAsCommittee(Camp camp, Student student)
    • deregisterCamp

      public static OperationResult deregisterCamp(Camp camp, Student student)
      Deregisters a student from a camp by removing them from the camp's list of attendees. This method is used to remove a Student from the attendee list of a specified Camp.
      Parameters:
      camp - The Camp from which the student is to be deregistered.
      student - The Student to be deregistered from the camp.