org.alfresco.repo.rating
Class RatingCountRollupAlgorithm

java.lang.Object
  extended by org.alfresco.repo.rating.AbstractRatingRollupAlgorithm
      extended by org.alfresco.repo.rating.RatingCountRollupAlgorithm
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class RatingCountRollupAlgorithm
extends AbstractRatingRollupAlgorithm

An implementation of AbstractRatingRollupAlgorithm which calculates the count (number) of all ratings in a given scheme.

Since:
3.5

Field Summary
static java.lang.String ROLLUP_NAME
           
 
Fields inherited from class org.alfresco.repo.rating.AbstractRatingRollupAlgorithm
namespaceService, nodeService, ratingSchemeName, ratingServiceImpl, rollupName
 
Constructor Summary
RatingCountRollupAlgorithm()
           
 
Method Summary
 java.lang.Integer recalculate(org.alfresco.service.cmr.repository.NodeRef ratedNode)
           
 
Methods inherited from class org.alfresco.repo.rating.AbstractRatingRollupAlgorithm
afterPropertiesSet, getRollupName, setNamespaceService, setNodeService, setRatingSchemeName, setRatingService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLLUP_NAME

public static final java.lang.String ROLLUP_NAME
See Also:
Constant Field Values
Constructor Detail

RatingCountRollupAlgorithm

public RatingCountRollupAlgorithm()
Method Detail

recalculate

public java.lang.Integer recalculate(org.alfresco.service.cmr.repository.NodeRef ratedNode)
Specified by:
recalculate in class AbstractRatingRollupAlgorithm


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