Package interfaces
Interface ISuggestionCommitteeService
-
- All Known Implementing Classes:
SuggestionCommitteeService
public interface ISuggestionCommitteeServiceTheISuggestionCommitteeServiceinterface defines a contract for classes that provide methods to manage suggestions submitted by students related to camps.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandeleteSuggestion(Suggestion suggestion)Deletes the specified suggestion.booleaneditSuggestion(Suggestion suggestion, java.lang.String newQuestion)Edits the specified suggestion with a new question.booleansubmitSuggestions(Camp camp)Submits a suggestion for the specified camp.java.util.ArrayList<Suggestion>viewAllSuggestions()Retrieves a list of all suggestions.java.util.ArrayList<Suggestion>viewProcessingSuggestions()Retrieves a list of processing suggestions.
-
-
-
Method Detail
-
viewAllSuggestions
java.util.ArrayList<Suggestion> viewAllSuggestions()
Retrieves a list of all suggestions.- Returns:
- An
ArrayListofSuggestionobjects representing all suggestions.
-
viewProcessingSuggestions
java.util.ArrayList<Suggestion> viewProcessingSuggestions()
Retrieves a list of processing suggestions.- Returns:
- An
ArrayListofSuggestionobjects representing processing suggestions.
-
submitSuggestions
boolean submitSuggestions(Camp camp)
Submits a suggestion for the specified camp.- Parameters:
camp- TheCampobject for which the suggestion is submitted.- Returns:
trueif the suggestion is submitted successfully,falseotherwise.
-
editSuggestion
boolean editSuggestion(Suggestion suggestion, java.lang.String newQuestion)
Edits the specified suggestion with a new question.- Parameters:
suggestion- TheSuggestionobject to be edited.newQuestion- The edited suggestion.- Returns:
trueif the suggestion is edited successfully,falseotherwise.
-
deleteSuggestion
boolean deleteSuggestion(Suggestion suggestion)
Deletes the specified suggestion.- Parameters:
suggestion- TheSuggestionobject to be deleted.- Returns:
trueif the suggestion is deleted successfully,falseotherwise.
-
-