Class FeedbackService
java.lang.Object
org.deltava.service.WebService
org.deltava.service.feedback.FeedbackService
- Direct Known Subclasses:
EventFeedbackService
,TourFeedbackService
An abstract Web Service for common feedback capabilities.
- Since:
- 11.6
- Version:
- 11.6
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isLogged()
Returns whether this web service calls are logged.boolean
isSecure()
Returns whether this web service requires authentication.protected static org.json.JSONObject
renderScore
(FeedbackBean fb, boolean includeComments) Renders a Feedback score and comments into a JSON object.
-
Constructor Details
-
FeedbackService
FeedbackService()
-
-
Method Details
-
renderScore
Renders a Feedback score and comments into a JSON object.- Parameters:
fb
- a FeedbackBeanincludeComments
- TRUE if comments should be rendered, otherwise FALSE- Returns:
- a JSONObject with the rendered results
-
isSecure
public boolean isSecure()Description copied from class:WebService
Returns whether this web service requires authentication.- Overrides:
isSecure
in classWebService
- Returns:
- TRUE if authentication is required, otherwise FALSE
-
isLogged
public boolean isLogged()Description copied from class:WebService
Returns whether this web service calls are logged. High volume services like the Map/ServInfo route services will not be logged.- Overrides:
isLogged
in classWebService
- Returns:
- TRUE if invocation logging should be performed by the servlet, otherwise FALSE
-