Package org.alfresco.service.cmr.rating
Class Rating
- java.lang.Object
-
- org.alfresco.service.cmr.rating.Rating
-
public class Rating extends java.lang.ObjectThis struct class holds the essential data of a rating.- Since:
- 3.4
- Author:
- Neil McErlean
-
-
Constructor Summary
Constructors Constructor Description Rating(RatingScheme scheme, float score, java.lang.String appliedBy, java.util.Date appliedAt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetAppliedAt()Gets the time/date at which the rating was applied.java.lang.StringgetAppliedBy()Gets the user name of the user who applied this rating.RatingSchemegetScheme()Gets theRatingSchemeunder which the rating was applied.floatgetScore()Gets the score applied as part of this rating.
-
-
-
Constructor Detail
-
Rating
public Rating(RatingScheme scheme, float score, java.lang.String appliedBy, java.util.Date appliedAt)
-
-
Method Detail
-
getScore
public float getScore()
Gets the score applied as part of this rating. In normal circumstances a score should always lie within the bounds defined by theRatingScheme.- Returns:
- the score.
-
getAppliedBy
public java.lang.String getAppliedBy()
Gets the user name of the user who applied this rating.- Returns:
- the user who applied the rating.
-
getAppliedAt
public java.util.Date getAppliedAt()
Gets the time/date at which the rating was applied.- Returns:
- the date/time at which the rating was applied.
-
getScheme
public RatingScheme getScheme()
Gets theRatingSchemeunder which the rating was applied.- Returns:
- the rating scheme used for this rating.
-
-