Class AbstractRatingWebScript
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.rating.AbstractRatingWebScript
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
RatingDefinitionsGet
,RatingDelete
,RatingPost
,RatingsGet
public abstract class AbstractRatingWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
This class is an abstract base class for the various webscript controllers in the
RatingService.
- Since:
- 3.4
- Author:
- Neil McErlean
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected NodeService
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected RatingService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeRef
parseRequestForNodeRef
(org.springframework.extensions.webscripts.WebScriptRequest req) void
setNodeService
(NodeService nodeService) Sets the node service instancevoid
setRatingService
(RatingService ratingService) Sets the rating service instanceMethods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Field Details
-
RATING_SCHEME
- See Also:
-
RATING
- See Also:
-
RATED_NODE
- See Also:
-
NODE_REF
- See Also:
-
RATINGS
- See Also:
-
AVERAGE_RATINGS
- See Also:
-
RATINGS_TOTALS
- See Also:
-
RATINGS_COUNTS
- See Also:
-
nodeService
-
ratingService
-
-
Constructor Details
-
AbstractRatingWebScript
public AbstractRatingWebScript()
-
-
Method Details
-
setNodeService
Sets the node service instance- Parameters:
nodeService
- the node service to set
-
setRatingService
Sets the rating service instance- Parameters:
ratingService
- the rating service to set
-
parseRequestForNodeRef
protected NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
-