public abstract class AbstractRating extends AbstractTally implements RatingSocialComponent
RATING_RESOURCE_TYPECSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, PROP_REFERER, QUERY_SELECTOR, TRANSLATE_SELECTOR| Constructor and Description |
|---|
AbstractRating(Resource resource) |
AbstractRating(Resource resource,
ClientUtilities clientUtils) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResponse(java.lang.String value) |
java.lang.Float |
getAverageRating() |
boolean |
getCanUserRespond() |
ResponseValue |
getCurrentUserResponse() |
java.lang.String |
getFormattedAverageRating() |
java.lang.String |
getName() |
java.util.List<java.lang.String[]> |
getRatingResults() |
java.util.Map<java.lang.String,java.lang.Long> |
getResponseTallies() |
java.lang.Long |
getTotalNumberOfResponses() |
void |
removeCurrentUserResponse() |
getFriendlyUrlbuildJSONString, getAsMap, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringpublic AbstractRating(Resource resource)
public AbstractRating(Resource resource, ClientUtilities clientUtils)
public java.lang.String getName()
getName in interface TallySocialComponentgetName in class AbstractTallypublic java.lang.Long getTotalNumberOfResponses()
getTotalNumberOfResponses in interface TallySocialComponentgetTotalNumberOfResponses in class AbstractTallypublic ResponseValue getCurrentUserResponse() throws TallyException
getCurrentUserResponse in interface TallySocialComponentgetCurrentUserResponse in class AbstractTallyTallyException - if there was an error retrieving the current users response.public java.util.Map<java.lang.String,java.lang.Long> getResponseTallies()
getResponseTallies in interface TallySocialComponentgetResponseTallies in class AbstractTallypublic void addResponse(java.lang.String value)
addResponse in class AbstractTallypublic void removeCurrentUserResponse()
removeCurrentUserResponse in class AbstractTallypublic java.lang.Float getAverageRating()
getAverageRating in interface RatingSocialComponentpublic java.lang.String getFormattedAverageRating()
getFormattedAverageRating in interface RatingSocialComponentpublic java.util.List<java.lang.String[]> getRatingResults()
getRatingResults in interface RatingSocialComponentpublic boolean getCanUserRespond()
getCanUserRespond in interface TallySocialComponentgetCanUserRespond in class AbstractTallyCopyright © 2010 - 2023 Adobe. All Rights Reserved