public abstract class AbstractRatingRollupAlgorithm
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
RatingScheme and following the content
model naming conventions described in RatingRollupNamingConventionsUtil, it
should be possible to have new rating property rollups automatically calculated
and persisted into the Alfresco content model, thereby enabling indexing, searching
and sorting of rating-related properties.| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.namespace.NamespaceService |
namespaceService |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected java.lang.String |
ratingSchemeName |
protected RatingServiceImpl |
ratingServiceImpl |
protected java.lang.String |
rollupName |
| Constructor and Description |
|---|
AbstractRatingRollupAlgorithm(java.lang.String rollupName) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
java.lang.String |
getRollupName()
This method returns the rollup name, for example "Total" or "Count".
|
abstract java.io.Serializable |
recalculate(org.alfresco.service.cmr.repository.NodeRef ratedNode) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setRatingSchemeName(java.lang.String ratingScheme) |
void |
setRatingService(RatingService ratingService) |
protected java.lang.String ratingSchemeName
protected org.alfresco.service.namespace.NamespaceService namespaceService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected RatingServiceImpl ratingServiceImpl
protected final java.lang.String rollupName
public AbstractRatingRollupAlgorithm(java.lang.String rollupName)
public void setRatingSchemeName(java.lang.String ratingScheme)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setRatingService(RatingService ratingService)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic abstract java.io.Serializable recalculate(org.alfresco.service.cmr.repository.NodeRef ratedNode)
public java.lang.String getRollupName()
RatingRollupNamingConventionsUtil.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.