public abstract class AbstractRating extends AbstractTally implements RatingSocialComponent
RATING_RESOURCE_TYPEDEFAULT_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(String value) |
Float |
getAverageRating() |
boolean |
getCanUserRespond() |
ResponseValue |
getCurrentUserResponse() |
String |
getFormattedAverageRating() |
String |
getName() |
List<String[]> |
getRatingResults() |
Map<String,Long> |
getResponseTallies() |
Long |
getTotalNumberOfResponses() |
void |
removeCurrentUserResponse() |
getFriendlyUrlbuildJSONString, getAsMap, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringpublic AbstractRating(Resource resource)
public AbstractRating(Resource resource, ClientUtilities clientUtils)
public String getName()
getName in interface TallySocialComponentgetName in class AbstractTallypublic 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 Map<String,Long> getResponseTallies()
getResponseTallies in interface TallySocialComponentgetResponseTallies in class AbstractTallypublic void addResponse(String value)
addResponse in class AbstractTallypublic void removeCurrentUserResponse()
removeCurrentUserResponse in class AbstractTallypublic Float getAverageRating()
getAverageRating in interface RatingSocialComponentpublic String getFormattedAverageRating()
getFormattedAverageRating in interface RatingSocialComponentpublic List<String[]> getRatingResults()
getRatingResults in interface RatingSocialComponentpublic boolean getCanUserRespond()
getCanUserRespond in interface TallySocialComponentgetCanUserRespond in class AbstractTally"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"