Module: alfresco/services/RatingsService

alfresco/services/RatingsService

This service should be used in conjunction with the Like renderer to handle requests for liking and unliking nodes.
Author:
  • Dave Draper
License:
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: