Package | Description |
---|---|
org.xwiki.ratings | |
org.xwiki.ratings.events | |
org.xwiki.ratings.script |
Modifier and Type | Method and Description |
---|---|
AverageRating |
AverageRating.addRating(int rating)
Update the average rating by adding a new rating.
|
AverageRating |
RatingsManager.getAverageRating(org.xwiki.model.reference.EntityReference entityReference)
Retrieve the average rating information of the given reference.
|
AverageRating |
RatingsManager.recomputeAverageRating(org.xwiki.model.reference.EntityReference entityReference)
Compute back the average rating for all the ratings existing for the given reference.
|
AverageRating |
AverageRating.removeRating(int rating)
Update the average rating by removing the given rating.
|
AverageRating |
AverageRating.updateRating(int oldRating,
int newRating)
Update the average rating by performing a change in an existing rating.
|
Modifier and Type | Method and Description |
---|---|
AverageRating |
AbstractAverageRatingEvent.getNewAverageRating() |
Constructor and Description |
---|
AbstractAverageRatingEvent(AverageRating newAverageRating,
float oldAverageVote,
int oldTotalVote)
Default constructor.
|
UpdateAverageRatingFailedEvent(AverageRating newAverageRating,
float oldAverageVote,
int oldTotalVote)
Default constructor.
|
UpdatedAverageRatingEvent(AverageRating newAverageRating,
float oldAverageVote,
int oldTotalVote)
Default constructor.
|
UpdatingAverageRatingEvent(AverageRating newAverageRating,
float oldAverageVote,
int oldTotalVote)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Optional<AverageRating> |
RatingsScriptServiceAPI.getAverageRating(org.xwiki.model.reference.EntityReference reference)
Retrieve the average rating of a specific reference.
|
Optional<AverageRating> |
AbstractScriptRatingsManager.getAverageRating(org.xwiki.model.reference.EntityReference reference) |
Copyright © 2004–2021 XWiki. All rights reserved.