- java.lang.Object
-
- controllers.UserController
-
- controllers.StudentController
-
- controllers.CommitteeController
-
public class CommitteeController extends StudentController
TheCommitteeControllerclass for managing activities related to the camp. Extends the functionality of theStudentControllerclass
-
-
Field Summary
Fields Modifier and Type Field Description private CampcampThis class has-aCampwhich the committee member are incharge ofprivate static IEnquiryCommitteeServiceenquiryCommitteeServiceThis class has-aIEnquiryCommitteeServiceobject which the member has to deal with enquiries that the participants sentprivate static IReportGeneratorServicereportGeneratorServiceThis class has-aIReportGeneratorServiceobject which the member can use to generate a report regarding the campprivate static ISuggestionCommitteeServicesuggestionCommitteeServiceThis class has-aISuggestionCommitteeServiceobject which the member has to deal with Suggestions that the participants sent-
Fields inherited from class controllers.StudentController
sc
-
-
Constructor Summary
Constructors Constructor Description CommitteeController()Default constructor for CommitteeController class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddeleteSuggestion()Method to delete suggestionprivate voideditSuggestion()Edits a selected suggestion's question.private voidgenerateReport()Generates a report for the associated camp based on user-selected filters.private voidreplyToEnquiries(IEnquiryView enquiryView)Allows the committee to reply to a selected enquiryvoidstart(Committee committee, Camp camp)Starts the committee controller, allows the committee member to perform various actions related to specific camp.\private voidsubmitSuggestion()Submits a suggestion for the associated campprivate voidviewEnquiries(IEnquiryView enquiryView)Displays a list of enquiries associated with the given camp that theCommitteeis associated withprivate voidviewSuggestions(ISuggestionView suggestionView)Displays a list of suggestions associated with the given camp that theCommitteeis associated with-
Methods inherited from class controllers.StudentController
start
-
Methods inherited from class controllers.UserController
changePassword
-
-
-
-
Field Detail
-
enquiryCommitteeService
private static final IEnquiryCommitteeService enquiryCommitteeService
This class has-aIEnquiryCommitteeServiceobject which the member has to deal with enquiries that the participants sent
-
suggestionCommitteeService
private static final ISuggestionCommitteeService suggestionCommitteeService
This class has-aISuggestionCommitteeServiceobject which the member has to deal with Suggestions that the participants sent
-
reportGeneratorService
private static final IReportGeneratorService reportGeneratorService
This class has-aIReportGeneratorServiceobject which the member can use to generate a report regarding the camp
-
-
Method Detail
-
start
public void start(Committee committee, Camp camp)
Starts the committee controller, allows the committee member to perform various actions related to specific camp.\- Parameters:
committee- The committee member associated with this controllercamp- The camp for which the committee actions are performed.
-
viewEnquiries
private void viewEnquiries(IEnquiryView enquiryView)
Displays a list of enquiries associated with the given camp that theCommitteeis associated with- Parameters:
enquiryView- The view is responsible for displaying enquiry information regarding the camp.
-
replyToEnquiries
private void replyToEnquiries(IEnquiryView enquiryView)
Allows the committee to reply to a selected enquiry- Parameters:
enquiryView- The view that is responsible for displaying enquiry information regarding the camp
-
viewSuggestions
private void viewSuggestions(ISuggestionView suggestionView)
Displays a list of suggestions associated with the given camp that theCommitteeis associated with- Parameters:
suggestionView- The view is responsible for displaying suggestion information regarding the camp.
-
submitSuggestion
private void submitSuggestion()
Submits a suggestion for the associated camp
-
editSuggestion
private void editSuggestion()
Edits a selected suggestion's question. The committee member is prompted to provide the new question.
-
deleteSuggestion
private void deleteSuggestion()
Method to delete suggestion
-
generateReport
private void generateReport()
Generates a report for the associated camp based on user-selected filters. Filters include attendees only, camp committee only, or both.
-
-