org.alfresco.repo.web.scripts.rating
Class AbstractRatingWebScript

java.lang.Object
  extended by org.springframework.extensions.webscripts.AbstractWebScript
      extended by org.springframework.extensions.webscripts.DeclarativeWebScript
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
 
Field Summary
protected static java.lang.String AVERAGE_RATINGS
           
protected static java.lang.String NODE_REF
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
protected static java.lang.String RATED_NODE
           
protected static java.lang.String RATING
           
protected static java.lang.String RATING_SCHEME
           
protected static java.lang.String RATINGS
           
protected static java.lang.String RATINGS_COUNTS
           
protected static java.lang.String RATINGS_TOTALS
           
protected  org.alfresco.service.cmr.rating.RatingService ratingService
           
 
Constructor Summary
AbstractRatingWebScript()
           
 
Method Summary
protected  org.alfresco.service.cmr.repository.NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Sets the node service instance
 void setRatingService(org.alfresco.service.cmr.rating.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
createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RATING_SCHEME

protected static final java.lang.String RATING_SCHEME
See Also:
Constant Field Values

RATING

protected static final java.lang.String RATING
See Also:
Constant Field Values

RATED_NODE

protected static final java.lang.String RATED_NODE
See Also:
Constant Field Values

NODE_REF

protected static final java.lang.String NODE_REF
See Also:
Constant Field Values

RATINGS

protected static final java.lang.String RATINGS
See Also:
Constant Field Values

AVERAGE_RATINGS

protected static final java.lang.String AVERAGE_RATINGS
See Also:
Constant Field Values

RATINGS_TOTALS

protected static final java.lang.String RATINGS_TOTALS
See Also:
Constant Field Values

RATINGS_COUNTS

protected static final java.lang.String RATINGS_COUNTS
See Also:
Constant Field Values

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

ratingService

protected org.alfresco.service.cmr.rating.RatingService ratingService
Constructor Detail

AbstractRatingWebScript

public AbstractRatingWebScript()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service instance

Parameters:
nodeService - the node service to set

setRatingService

public void setRatingService(org.alfresco.service.cmr.rating.RatingService ratingService)
Sets the rating service instance

Parameters:
ratingService - the rating service to set

parseRequestForNodeRef

protected org.alfresco.service.cmr.repository.NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.