@AlfrescoPublicApi public abstract class AbstractRatingRollupAlgorithm extends Object implements org.springframework.beans.factory.InitializingBean
RatingScheme
and following the content
model naming conventions, 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 String |
ratingSchemeName |
protected RatingServiceImpl |
ratingServiceImpl |
protected String |
rollupName |
Constructor and Description |
---|
AbstractRatingRollupAlgorithm(String rollupName) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
getRollupName()
This method returns the rollup name, for example "Total" or "Count".
|
abstract 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(String ratingScheme) |
void |
setRatingService(RatingService ratingService) |
protected String ratingSchemeName
protected org.alfresco.service.namespace.NamespaceService namespaceService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected RatingServiceImpl ratingServiceImpl
protected final String rollupName
public AbstractRatingRollupAlgorithm(String rollupName)
public void setRatingSchemeName(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 Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public abstract Serializable recalculate(org.alfresco.service.cmr.repository.NodeRef ratedNode)
public String getRollupName()
Copyright © 2005–2017 Alfresco Software. All rights reserved.