Commit Graph

7 Commits

Author SHA1 Message Date
Neil McErlean
2f6aaaa819 Rating Service. Added DELETE webscript and fixed bug.
There is now a rating.delete webscript.
  Plus a bug was fixed where the ratings weren't actually being deleted.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-14 13:28:46 +00:00
Neil McErlean
4db99ec25f Rating Service. Allow fractional ratings.
I've changed the ratings 'score' from an integer to a float as fractional ratings seems like a reasonable idea to me.
  This had impact all through the Java layer, the REST layer, the model and the test code.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21128 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-13 13:31:07 +00:00
Neil McErlean
e80119fe6c RatingService GET node ratings statistics via REST.
Added node rating stats to the ratings.get webscript (for each scheme):
    average (mean) of all ratings for this node.
    total (sum) of all ratings for this node.
    count of all ratings for this node.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21108 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-12 16:07:08 +00:00
Neil McErlean
f156a4f4b5 RatingService.
Added rating, ratingScheme to the POST response.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21090 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-12 12:17:30 +00:00
Neil McErlean
83bb722d2e Rating Service. Work ongoing.
Added a POST webscript to apply a rating to a node.
  Associated REST test: apply rating as user one, get, apply rating as user two, get.
  Deleted the PUT webscript (half-formed anyway)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21086 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-12 11:33:57 +00:00
Neil McErlean
9e57d41da1 Rating Service.
Removing dead code from not-yet-implemented Post, Put webscript controllers.
  (Accidentally checked in works in progress in previous check-in)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21069 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-12 09:00:27 +00:00
Neil McErlean
a9adddf1d6 Rating Service checkpoint.
Added some of the REST API for the rating service. (Work in progress)
    GET ratingdefinitions url=/api/rating/schemedefinitions
    GET ratings url=/api/node/{store_type}/{store_id}/{id}/ratings


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21068 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-07-12 08:41:01 +00:00