public abstract class AbstractRatingScheme extends Object implements RatingScheme, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected ActivityService |
activityService |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected org.alfresco.util.registry.NamedObjectRegistry<RatingScheme> |
nodeRatingSchemeRegistry |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected String |
ratingSchemeId |
protected String |
ratingSchemeName |
protected RatingService |
ratingService |
protected SiteService |
siteService |
Constructor and Description |
---|
AbstractRatingScheme(String ratingSchemeId,
String ratingSchemeName) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected abstract Object |
getApiRating(Float rating) |
protected abstract DocumentRatingSummary |
getDocumentRatingSummary(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
NodeRating |
getNodeRating(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
String |
getRatingSchemeId() |
String |
getRatingServiceName() |
protected RatingScheme |
getRepoRatingScheme() |
protected void |
postActivity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String activityType) |
void |
setActivityService(ActivityService activityService) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNodeRatingSchemeRegistry(org.alfresco.util.registry.NamedObjectRegistry<RatingScheme> nodeRatingSchemeRegistry) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setRatingService(RatingService ratingService) |
void |
setSiteService(SiteService siteService) |
void |
validateRating(Float rating) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRating, removeRating
protected String ratingSchemeName
protected String ratingSchemeId
protected RatingService ratingService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected ActivityService activityService
protected SiteService siteService
protected org.alfresco.util.registry.NamedObjectRegistry<RatingScheme> nodeRatingSchemeRegistry
public String getRatingSchemeId()
public String getRatingServiceName()
public void setNodeRatingSchemeRegistry(org.alfresco.util.registry.NamedObjectRegistry<RatingScheme> nodeRatingSchemeRegistry)
public void setActivityService(ActivityService activityService)
public void setSiteService(SiteService siteService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setRatingService(RatingService ratingService)
protected RatingScheme getRepoRatingScheme()
protected abstract DocumentRatingSummary getDocumentRatingSummary(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void validateRating(Float rating)
public NodeRating getNodeRating(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getNodeRating
in interface RatingScheme
protected void postActivity(org.alfresco.service.cmr.repository.NodeRef nodeRef, String activityType)
Copyright © 2005–2017 Alfresco Software. All rights reserved.