public abstract class AbstractRating extends AbstractTally implements RatingSocialComponent
RATING_RESOURCE_TYPE
CSV_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() |
getFriendlyUrl
buildJSONString, getAsMap, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
public AbstractRating(Resource resource)
public AbstractRating(Resource resource, ClientUtilities clientUtils)
public java.lang.String getName()
getName
in interface TallySocialComponent
getName
in class AbstractTally
public java.lang.Long getTotalNumberOfResponses()
getTotalNumberOfResponses
in interface TallySocialComponent
getTotalNumberOfResponses
in class AbstractTally
public ResponseValue getCurrentUserResponse() throws TallyException
getCurrentUserResponse
in interface TallySocialComponent
getCurrentUserResponse
in class AbstractTally
TallyException
- if there was an error retrieving the current users response.public java.util.Map<java.lang.String,java.lang.Long> getResponseTallies()
getResponseTallies
in interface TallySocialComponent
getResponseTallies
in class AbstractTally
public void addResponse(java.lang.String value)
addResponse
in class AbstractTally
public void removeCurrentUserResponse()
removeCurrentUserResponse
in class AbstractTally
public java.lang.Float getAverageRating()
getAverageRating
in interface RatingSocialComponent
public java.lang.String getFormattedAverageRating()
getFormattedAverageRating
in interface RatingSocialComponent
public java.util.List<java.lang.String[]> getRatingResults()
getRatingResults
in interface RatingSocialComponent
public boolean getCanUserRespond()
getCanUserRespond
in interface TallySocialComponent
getCanUserRespond
in class AbstractTally
Copyright © 2010 - 2020 Adobe. All Rights Reserved