Class AbstractRatingScheme
java.lang.Object
org.alfresco.rest.api.impl.node.ratings.AbstractRatingScheme
- All Implemented Interfaces:
RatingScheme,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
FiveStarRatingScheme,LikesRatingScheme
public abstract class AbstractRatingScheme
extends Object
implements RatingScheme, org.springframework.beans.factory.InitializingBean
Manages the mapping between the rest api's representation of a node rating and the repository's representation of a node rating.
- Author:
- steveglover
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivityServiceprotected org.alfresco.service.cmr.dictionary.DictionaryServiceprotected org.alfresco.util.registry.NamedObjectRegistry<RatingScheme>protected NodeServiceprotected Stringprotected Stringprotected RatingServiceprotected SiteService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract ObjectgetApiRating(Float rating) protected abstract DocumentRatingSummarygetDocumentRatingSummary(NodeRef nodeRef) getNodeRating(NodeRef nodeRef) protected RatingSchemeprotected voidpostActivity(NodeRef nodeRef, String activityType) voidsetActivityService(ActivityService activityService) voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) voidsetNodeRatingSchemeRegistry(org.alfresco.util.registry.NamedObjectRegistry<RatingScheme> nodeRatingSchemeRegistry) voidsetNodeService(NodeService nodeService) voidsetRatingService(RatingService ratingService) voidsetSiteService(SiteService siteService) voidvalidateRating(Float rating) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.rest.api.impl.node.ratings.RatingScheme
applyRating, removeRating
-
Field Details
-
ratingSchemeName
-
ratingSchemeId
-
ratingService
-
nodeService
-
dictionaryService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService -
activityService
-
siteService
-
nodeRatingSchemeRegistry
-
-
Constructor Details
-
AbstractRatingScheme
-
-
Method Details
-
getRatingSchemeId
-
getRatingServiceName
-
setNodeRatingSchemeRegistry
public void setNodeRatingSchemeRegistry(org.alfresco.util.registry.NamedObjectRegistry<RatingScheme> nodeRatingSchemeRegistry) -
setActivityService
-
setSiteService
-
setNodeService
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) -
setRatingService
-
getRepoRatingScheme
-
getDocumentRatingSummary
-
getApiRating
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
validateRating
-
getNodeRating
- Specified by:
getNodeRatingin interfaceRatingScheme
-
postActivity
-