@Unstable
@Role
public interface RatingsConfiguration
RatingsManager
.Modifier and Type | Method and Description |
---|---|
String |
getAverageRatingStorageHint() |
Set<org.xwiki.model.reference.EntityReference> |
getExcludedReferencesFromRatings()
Allow to define a set of references that cannot be rated.
|
String |
getRatingsStorageHint() |
int |
getScaleUpperBound() |
boolean |
hasDedicatedCore() |
boolean |
isAverageStored() |
boolean |
isEnabled() |
boolean |
isZeroStored() |
boolean isZeroStored()
false
if a rating set to 0 shoud lead to the deletion of a previously made vote.
true
means that all ratings noted to 0 are stored. Note that this option will impact the
average rating.int getScaleUpperBound()
boolean hasDedicatedCore()
true
to create - if possible, depending on the storage implementation - a dedicated store.
false
means that all ratings from any applications will be stored on the same storage.boolean isAverageStored()
true
to store the average rating. false
means that the average rating is never stored
nor computed.String getRatingsStorageHint()
String getAverageRatingStorageHint()
Set<org.xwiki.model.reference.EntityReference> getExcludedReferencesFromRatings()
boolean isEnabled()
true
if the ratings is enabled. This configuration is only used to control the UI.Copyright © 2004–2021 XWiki. All rights reserved.