- java.lang.Object
-
- controllers.UserController
-
- controllers.StudentController
-
- controllers.CommitteeController
-
public class CommitteeController extends StudentController
TheCommitteeController
class for managing activities related to the camp. Extends the functionality of theStudentController
class
-
-
Field Summary
Fields Modifier and Type Field Description private Camp
camp
This class has-aCamp
which the committee member are incharge ofprivate static IEnquiryCommitteeService
enquiryCommitteeService
This class has-aIEnquiryCommitteeService
object which the member has to deal with enquiries that the participants sentprivate static IReportGeneratorService
reportGeneratorService
This class has-aIReportGeneratorService
object which the member can use to generate a report regarding the campprivate static ISuggestionCommitteeService
suggestionCommitteeService
This class has-aISuggestionCommitteeService
object 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 void
deleteSuggestion()
Method to delete suggestionprivate void
editSuggestion()
Edits a selected suggestion's question.private void
generateReport()
Generates a report for the associated camp based on user-selected filters.private void
replyToEnquiries(IEnquiryView enquiryView)
Allows the committee to reply to a selected enquiryvoid
start(Committee committee, Camp camp)
Starts the committee controller, allows the committee member to perform various actions related to specific camp.\private void
submitSuggestion()
Submits a suggestion for the associated campprivate void
viewEnquiries(IEnquiryView enquiryView)
Displays a list of enquiries associated with the given camp that theCommittee
is associated withprivate void
viewSuggestions(ISuggestionView suggestionView)
Displays a list of suggestions associated with the given camp that theCommittee
is 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-aIEnquiryCommitteeService
object which the member has to deal with enquiries that the participants sent
-
suggestionCommitteeService
private static final ISuggestionCommitteeService suggestionCommitteeService
This class has-aISuggestionCommitteeService
object which the member has to deal with Suggestions that the participants sent
-
reportGeneratorService
private static final IReportGeneratorService reportGeneratorService
This class has-aIReportGeneratorService
object 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 theCommittee
is 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 theCommittee
is 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.
-
-