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
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
AVERAGE_RATINGS
protected static String
NODE_REF
protected NodeService
nodeService
protected static String
RATED_NODE
protected static String
RATING
protected static String
RATING_SCHEME
protected static String
RATINGS
protected static String
RATINGS_COUNTS
protected static String
RATINGS_TOTALS
protected RatingService
ratingService
-
Constructor Summary
Constructors Constructor Description AbstractRatingWebScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodeRef
parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
void
setNodeService(NodeService nodeService)
Sets the node service instancevoid
setRatingService(RatingService ratingService)
Sets the rating service instance-
Methods 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 Detail
-
RATING_SCHEME
protected static final String RATING_SCHEME
- See Also:
- Constant Field Values
-
RATING
protected static final String RATING
- See Also:
- Constant Field Values
-
RATED_NODE
protected static final String RATED_NODE
- See Also:
- Constant Field Values
-
NODE_REF
protected static final String NODE_REF
- See Also:
- Constant Field Values
-
RATINGS
protected static final String RATINGS
- See Also:
- Constant Field Values
-
AVERAGE_RATINGS
protected static final String AVERAGE_RATINGS
- See Also:
- Constant Field Values
-
RATINGS_TOTALS
protected static final String RATINGS_TOTALS
- See Also:
- Constant Field Values
-
RATINGS_COUNTS
protected static final String RATINGS_COUNTS
- See Also:
- Constant Field Values
-
nodeService
protected NodeService nodeService
-
ratingService
protected RatingService ratingService
-
-
Method Detail
-
setNodeService
public void setNodeService(NodeService nodeService)
Sets the node service instance- Parameters:
nodeService
- the node service to set
-
setRatingService
public void setRatingService(RatingService ratingService)
Sets the rating service instance- Parameters:
ratingService
- the rating service to set
-
parseRequestForNodeRef
protected NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
-
-