Class LikesRatingScheme
- java.lang.Object
-
- org.alfresco.rest.api.impl.node.ratings.AbstractRatingScheme
-
- org.alfresco.rest.api.impl.node.ratings.LikesRatingScheme
-
- All Implemented Interfaces:
RatingScheme
,org.springframework.beans.factory.InitializingBean
public class LikesRatingScheme extends AbstractRatingScheme
The rest api representation of the 'likes' rating scheme.- Author:
- steveglover
-
-
Field Summary
-
Fields inherited from class org.alfresco.rest.api.impl.node.ratings.AbstractRatingScheme
activityService, dictionaryService, nodeRatingSchemeRegistry, nodeService, ratingSchemeId, ratingSchemeName, ratingService, siteService
-
-
Constructor Summary
Constructors Constructor Description LikesRatingScheme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyRating(NodeRef nodeRef, Object rating)
protected Object
getApiRating(Float rating)
protected DocumentRatingSummary
getDocumentRatingSummary(NodeRef nodeRef)
Float
getRatingServiceRating(Object rating)
void
removeRating(NodeRef nodeRef)
-
Methods inherited from class org.alfresco.rest.api.impl.node.ratings.AbstractRatingScheme
afterPropertiesSet, getNodeRating, getRatingSchemeId, getRatingServiceName, getRepoRatingScheme, postActivity, setActivityService, setDictionaryService, setNodeRatingSchemeRegistry, setNodeService, setRatingService, setSiteService, validateRating
-
-
-
-
Method Detail
-
removeRating
public void removeRating(NodeRef nodeRef)
-
getApiRating
protected Object getApiRating(Float rating)
- Specified by:
getApiRating
in classAbstractRatingScheme
-
getDocumentRatingSummary
protected DocumentRatingSummary getDocumentRatingSummary(NodeRef nodeRef)
- Specified by:
getDocumentRatingSummary
in classAbstractRatingScheme
-
-