- java.lang.Object
-
- services.SuggestionStaffService
-
- All Implemented Interfaces:
ISuggestionStaffService
public class SuggestionStaffService extends java.lang.Object implements ISuggestionStaffService
SuggestionStaffService
implementsISuggestionStaffService
interface 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 boolean
approveSuggestion(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:ISuggestionStaffService
Retrieves a list of suggestions associated with the specified camp.- Specified by:
viewEnquiries
in interfaceISuggestionStaffService
- Parameters:
camp
- TheCamp
object for which to retrieve suggestions.- Returns:
- An
ArrayList
ofSuggestion
objects representing suggestions for the camp.
-
approveSuggestion
public boolean approveSuggestion(Suggestion suggestion, java.lang.String reply, boolean approve)
Description copied from interface:ISuggestionStaffService
Approves or rejects the specified suggestion with an reply.- Specified by:
approveSuggestion
in interfaceISuggestionStaffService
- Parameters:
suggestion
- TheSuggestion
object to be approved or rejected.reply
- A reply to the suggestion.approve
-true
if the suggestion is approved,false
if rejected.- Returns:
true
if the approval or rejection is successful,false
otherwise.
-
-