|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is a mixin interface for rateable elements.
Rating| Method Summary | |
Rating |
addRating(User rater,
double value)
Adds a rating for the given user to this element. |
double |
getAverageRatingValue()
Returns the average value (the arithmetic mean) of all current ratings for this element. |
String |
getId()
Returns the id of the element that is unique within the ontology. |
Rating |
getRating(User rater)
Returns the rating of the given user for this element. |
Collection |
getRatings()
Returns a collection of all current Rating objects (from different users) for this element. |
int |
getRatingsCount()
Returns the number of ratings for this element. |
| Method Detail |
public String getId()
null)
public Rating addRating(User rater,
double value)
throws RatingManagerException,
DynamicRightsManagerException
RatingManager methods.
rater - the user who wants to add or change the ratingvalue - the new value
RatingManagerException - if the rating could not be created/changed
DynamicRightsManagerException - if the user is not allowed to rate this elementRatingManager,
DynamicRightsManager.mayAddRating(Rating, Rateable)public Collection getRatings()
getRatings() methods of RatingManager.
nullRating,
RatingManagerpublic int getRatingsCount()
public Rating getRating(User rater)
getRatings() methods of RatingManager.
rater - the user who's rating shall be returned
null if the user hasn't rated this element yetRatingManagerpublic double getAverageRatingValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||