Class Index | File Index

Classes


Class Alfresco.service.Ratings

Extends Alfresco.service.BaseService
Alfresco Ratings Service.
Defined in: alfresco.js
Constructor Summary
Constructor Attributes Constructor Name and Description
 
Alfresco.service.Ratings(ratingScheme)
Ratings Service constructor.
Method Summary
Method Attributes Method Name and Description
 
remove(node, responseConfig)
Removes a user's rating from a node.
 
request(node, responseConfig)
Requests a list of ratings for the specified NodeRef
 
set(node, rating, responseConfig)
Sets a user rating on the specified NodeRef
Constructor Detail
Alfresco.service.Ratings(ratingScheme)
Ratings Service constructor.
Parameters:
{string} ratingScheme
Rating Scheme
Returns:
{Alfresco.service.Ratings} The new Alfresco.service.Ratings instance
Method Detail
remove(node, responseConfig)
Removes a user's rating from a node.
Parameters:
{NodeRef} node
Node reference
{object} responseConfig
A config object with only success and failure callbacks and messages

request(node, responseConfig)
Requests a list of ratings for the specified NodeRef
Parameters:
{NodeRef} node
Node reference
{object} responseConfig
A config object with only success and failure callbacks and messages

set(node, rating, responseConfig)
Sets a user rating on the specified NodeRef
Parameters:
{NodeRef} node
Node reference
{number} rating
The rating score to set
{object} responseConfig
A config object with only success and failure callbacks and messages

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 16 2012 12:24:27 GMT-0000 (GMT)