Package org.alfresco.service.cmr.rating
Class Rating
java.lang.Object
org.alfresco.service.cmr.rating.Rating
This struct class holds the essential data of a rating.
- Since:
- 3.4
- Author:
- Neil McErlean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the time/date at which the rating was applied.Gets the user name of the user who applied this rating.Gets theRatingSchemeunder which the rating was applied.floatgetScore()Gets the score applied as part of this rating.
-
Constructor Details
-
Rating
-
-
Method Details
-
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
Gets the user name of the user who applied this rating.- Returns:
- the user who applied the rating.
-
getAppliedAt
Gets the time/date at which the rating was applied.- Returns:
- the date/time at which the rating was applied.
-
getScheme
Gets theRatingSchemeunder which the rating was applied.- Returns:
- the rating scheme used for this rating.
-