Package interfaces
Interface ISuggestionCommitteeService
-
- All Known Implementing Classes:
SuggestionCommitteeService
public interface ISuggestionCommitteeService
TheISuggestionCommitteeService
interface 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 boolean
deleteSuggestion(Suggestion suggestion)
Deletes the specified suggestion.boolean
editSuggestion(Suggestion suggestion, java.lang.String newQuestion)
Edits the specified suggestion with a new question.boolean
submitSuggestions(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
ArrayList
ofSuggestion
objects representing all suggestions.
-
viewProcessingSuggestions
java.util.ArrayList<Suggestion> viewProcessingSuggestions()
Retrieves a list of processing suggestions.- Returns:
- An
ArrayList
ofSuggestion
objects representing processing suggestions.
-
submitSuggestions
boolean submitSuggestions(Camp camp)
Submits a suggestion for the specified camp.- Parameters:
camp
- TheCamp
object for which the suggestion is submitted.- Returns:
true
if the suggestion is submitted successfully,false
otherwise.
-
editSuggestion
boolean editSuggestion(Suggestion suggestion, java.lang.String newQuestion)
Edits the specified suggestion with a new question.- Parameters:
suggestion
- TheSuggestion
object to be edited.newQuestion
- The edited suggestion.- Returns:
true
if the suggestion is edited successfully,false
otherwise.
-
deleteSuggestion
boolean deleteSuggestion(Suggestion suggestion)
Deletes the specified suggestion.- Parameters:
suggestion
- TheSuggestion
object to be deleted.- Returns:
true
if the suggestion is deleted successfully,false
otherwise.
-
-