mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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
This commit is contained in:
@@ -268,6 +268,10 @@ public class RatingServiceImpl implements RatingService
|
||||
{
|
||||
// There is a rating and the associated data are at the index'th place in each property.
|
||||
RatingStruct removed = ratingProps.removeRatingAt(index);
|
||||
|
||||
// Now apply the properties with one deleted.
|
||||
Map<QName, Serializable> props = ratingProps.toNodeProperties();
|
||||
nodeService.setProperties(lastChild.getChildRef(), props);
|
||||
|
||||
return new Rating(this.getRatingScheme(removed.getScheme()),
|
||||
removed.getScore(), user, removed.getDate());
|
||||
|
Reference in New Issue
Block a user