Class 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

      Fields 
      Modifier and Type Field Description
      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  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        addModuleBundleToCache, checkModuleBundleCache, 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

      • AVERAGE_RATINGS

        protected static final java.lang.String AVERAGE_RATINGS
        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)