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:
Samuel Langlois
2013-08-20 17:17:31 +00:00
parent 0a36e2af67
commit ab4ca7177f
1576 changed files with 36419 additions and 8603 deletions

View File

@@ -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>.