/** * Removes any rating by the current user in the specified scheme from the specified * noderef. * @param node ScriptNode * @param ratingSchemeName String */ public void removeRating(ScriptNode node, String ratingSchemeName) { ratingService.removeRatingByCurrentUser(node.getNodeRef(), ratingSchemeName); }
/** * Removes any rating by the current user in the specified scheme from the specified * noderef. * @param node ScriptNode * @param ratingSchemeName String */ public void removeRating(ScriptNode node, String ratingSchemeName) { ratingService.removeRatingByCurrentUser(node.getNodeRef(), ratingSchemeName); }
assertNull("Expected a null remove result.", RATING_SERVICE.removeRatingByCurrentUser(testDoc_Admin, LIKES_SCHEME_NAME)); Rating deletedStarRating = RATING_SERVICE.removeRatingByCurrentUser(testDoc_Admin, FIVE_STAR_SCHEME_NAME); assertModifierIs(testDoc_Admin, AuthenticationUtil.getAdminUserName());
RATING_SERVICE.removeRatingByCurrentUser(testDoc_Admin, FIVE_STAR_SCHEME_NAME);