|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.rating.RatingSchemeImpl
public class RatingSchemeImpl
| Constructor Summary | |
|---|---|
RatingSchemeImpl(RatingSchemeRegistry registry)
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
float |
getMaxRating()
This method returns the maximum rating defined for this scheme. |
float |
getMinRating()
This method returns the minimum rating defined for this scheme. |
java.lang.String |
getName()
This method returns the name which uniquely identifies the rating scheme. |
java.util.List |
getPropertyRollups()
This method returns a List of property rollup algorithms
which are used in order to calculate rating totals, counts etc for a rated node. |
void |
init()
|
boolean |
isSelfRatingAllowed()
This method returns true if the cm:creator of the node is allowed
to apply a rating to it, else false. |
void |
setBeanName(java.lang.String name)
|
void |
setMaxRating(float maxRating)
|
void |
setMinRating(float minRating)
|
void |
setPropertyRollups(java.util.List rollupAlgorithms)
|
void |
setSelfRatingAllowed(boolean selfRatingAllowed)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RatingSchemeImpl(RatingSchemeRegistry registry)
| Method Detail |
|---|
public void setPropertyRollups(java.util.List rollupAlgorithms)
public void init()
public java.util.List getPropertyRollups()
RatingSchemeproperty rollup algorithms
which are used in order to calculate rating totals, counts etc for a rated node.
getPropertyRollups in interface RatingSchemepublic void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setMinRating(float minRating)
public void setMaxRating(float maxRating)
public void setSelfRatingAllowed(boolean selfRatingAllowed)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic float getMaxRating()
RatingScheme
getMaxRating in interface RatingSchemepublic float getMinRating()
RatingScheme
getMinRating in interface RatingSchemepublic boolean isSelfRatingAllowed()
RatingSchemetrue if the cm:creator of the node is allowed
to apply a rating to it, else false.
isSelfRatingAllowed in interface RatingSchemepublic java.lang.String getName()
RatingScheme
getName in interface RatingSchemepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||