public class CustomRatingsServiceImpl extends OnPremiseRatingsServiceImpl implements CustomRatingsService
CREATOR
CONTENT_CACHE, RENDITION_CACHE, session
Constructor and Description |
---|
CustomRatingsServiceImpl(RepositorySession repositorySession)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyStarRating(Node node,
float rating)
Apply 5 star rating to the specified node.
|
StarRating |
getStarRating(Node node)
Get the star ratings value for the specified node (Document or Folder)
|
float |
getUserStarRatingValue(Node node)
Get the user star ratings value for the specified node (Document or
Folder)
|
computeIsRated, computeRatingsCount, getRatingsObject, getRatingsUrl, getUnlikeUrl
getLikeCount, isLiked, like, unlike
clear, convertException, convertNode, convertNode, convertStatusCode, delete, describeContents, getHttpInvoker, getSessionHttp, isCloudSession, isListNull, isMapNull, isObjectNull, isOnPremiseSession, isStringNull, post, put, read, saveContentStream, writeToParcel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLikeCount, isLiked, like, unlike
public CustomRatingsServiceImpl(RepositorySession repositorySession)
ServiceRegistry
repositorySession
- public void applyStarRating(Node node, float rating)
applyStarRating
in interface CustomRatingsService
node
- : Node object (Folder or Document).rating
- : Scale 0 to 5 stars.AlfrescoServiceException
- : If comment is not defined or If
network problems occur during the process.public StarRating getStarRating(Node node)
getStarRating
in interface CustomRatingsService
node
- : Node object (Folder or Document).AlfrescoServiceException
- : If comment is not defined or If
network problems occur during the process.public float getUserStarRatingValue(Node node)
getUserStarRatingValue
in interface CustomRatingsService
node
- : Node object (Folder or Document).AlfrescoServiceException
- : If comment is not defined or If
network problems occur during the process.Copyright © 2012-2018 Alfresco Software. All Rights Reserved.