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