- java.lang.Object
-
- services.SuggestionStaffService
-
- All Implemented Interfaces:
ISuggestionStaffService
public class SuggestionStaffService extends java.lang.Object implements ISuggestionStaffService
SuggestionStaffServiceimplementsISuggestionStaffServiceinterface and provide suggestions related functions for a staff user for selected camp
-
-
Constructor Summary
Constructors Constructor Description SuggestionStaffService()Create an instance ofSuggestionStaffService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapproveSuggestion(Suggestion suggestion, java.lang.String reply, boolean approve)Approves or rejects the specified suggestion with an reply.java.util.ArrayList<Suggestion>viewEnquiries(Camp camp)Retrieves a list of suggestions associated with the specified camp.
-
-
-
Constructor Detail
-
SuggestionStaffService
public SuggestionStaffService()
Create an instance ofSuggestionStaffService
-
-
Method Detail
-
viewEnquiries
public java.util.ArrayList<Suggestion> viewEnquiries(Camp camp)
Description copied from interface:ISuggestionStaffServiceRetrieves a list of suggestions associated with the specified camp.- Specified by:
viewEnquiriesin interfaceISuggestionStaffService- Parameters:
camp- TheCampobject for which to retrieve suggestions.- Returns:
- An
ArrayListofSuggestionobjects representing suggestions for the camp.
-
approveSuggestion
public boolean approveSuggestion(Suggestion suggestion, java.lang.String reply, boolean approve)
Description copied from interface:ISuggestionStaffServiceApproves or rejects the specified suggestion with an reply.- Specified by:
approveSuggestionin interfaceISuggestionStaffService- Parameters:
suggestion- TheSuggestionobject to be approved or rejected.reply- A reply to the suggestion.approve-trueif the suggestion is approved,falseif rejected.- Returns:
trueif the approval or rejection is successful,falseotherwise.
-
-