This service should be used in conjunction with the Like renderer
to handle requests for liking and unliking nodes.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Methods
-
getAddRatingsUrl(nodeRefUri)
-
Returns a URL for adding and removing ratings for a node.
Parameters:
Name Type Description nodeRefUri
string The nodeRef URI fragment representation - Source:
-
getRemoveRatingsUrl(nodeRefUri)
-
Returns a URL for adding and removing ratings for a node.
Parameters:
Name Type Description nodeRefUri
string The nodeRef URI fragment representation - Source:
-
onAddRating(payload)
-
Adds a rating
Parameters:
Name Type Description payload
object - Source:
-
onRemoveRating(payload)
-
Removes a rating
Parameters:
Name Type Description payload
object - Source:
-
registerSubscriptions()
-
Sets up the subscriptions for the RatingsService
- Since:
- 1.0.32
- Source: