mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -22,6 +22,7 @@ package org.alfresco.service.cmr.rating;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.repo.rating.AbstractRatingRollupAlgorithm;
|
||||
import org.alfresco.repo.rating.RatingNamingConventionsUtil;
|
||||
import org.alfresco.repo.rating.RatingSchemeRegistry;
|
||||
|
||||
/**
|
||||
@@ -34,7 +35,7 @@ import org.alfresco.repo.rating.RatingSchemeRegistry;
|
||||
* @author Neil McErlean
|
||||
* @since 3.4
|
||||
*/
|
||||
public interface RatingScheme
|
||||
public interface RatingScheme extends Comparable<RatingScheme>
|
||||
{
|
||||
/**
|
||||
* This method returns the name which uniquely identifies the rating scheme.
|
||||
@@ -57,6 +58,14 @@ public interface RatingScheme
|
||||
*/
|
||||
public float getMaxRating();
|
||||
|
||||
/**
|
||||
* This method returns the namespace (prefix e.g. "cm") of the Alfresco content model
|
||||
* containing the definitions of the rollup aspect and properties.
|
||||
* @since 4.1.5
|
||||
* @see RatingNamingConventionsUtil
|
||||
*/
|
||||
public String getModelPrefix();
|
||||
|
||||
/**
|
||||
* This method returns <code>true</code> if the cm:creator of the node is allowed
|
||||
* to apply a rating to it, else <code>false</code>.
|
||||
|
Reference in New Issue
Block a user