public abstract class AbstractReviewCollection<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration> extends AbstractCommentCollection<R,C> implements ReviewCollectionSocialComponent<R,C>
DEFAULT_SELECTOR, INDEX_SELECTOR, QUERY_SELECTOR, TRANSLATE_SELECTOR
Constructor and Description |
---|
AbstractReviewCollection(Resource resource,
ClientUtilities clientUtils,
CommentSocialComponentListProviderManager listProviderManager)
Construct a
CommentCollection using the specified Resource which should be the root of the
collection. |
AbstractReviewCollection(Resource resource,
ClientUtilities clientUtils,
CommentSocialComponentListProviderManager listProviderManager,
UgcSearch search) |
AbstractReviewCollection(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo queryInfo,
CommentSocialComponentListProviderManager listProviderManager) |
AbstractReviewCollection(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo queryInfo,
CommentSocialComponentListProviderManager listProviderManager,
UgcSearch search)
Construct a
CommentCollection using the specified Resource which should be the root of the
collection with specified pagination for the children listing. |
Modifier and Type | Method and Description |
---|---|
List<Map<String,String>> |
getAllowedRatings() |
Map<String,ResponseValue> |
getCurrentUserResponse() |
String |
getName() |
RatingSocialComponent |
getOverallRating() |
Map<String,String> |
getRatingAverages() |
Map<String,RatingSocialComponent> |
getRatings() |
Long |
getTotalNumberOfResponses() |
boolean |
isCompositeRating()
Return true if the review has composite ratings.
|
boolean |
isIncludeHistogram()
Return true if the review summary includes histogram.
|
getConfiguration, getCreated, getFriendlyUrl, getItems, getLastModified, getPageInfo, getTotalSize, isTaggingAllowed, setPagination, setSortedOrder
buildJSONString, getAsMap, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getCreated, getLastModified, getPageInfo, isTaggingAllowed
getItems, getTotalSize, setPagination, setSortedOrder
getAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
public AbstractReviewCollection(Resource resource, ClientUtilities clientUtils, CommentSocialComponentListProviderManager listProviderManager)
CommentCollection
using the specified Resource
which should be the root of the
collection.resource
- the resource where the CommentCollection
is locatedclientUtils
- the clientUtilities instancepublic AbstractReviewCollection(Resource resource, ClientUtilities clientUtils, CommentSocialComponentListProviderManager listProviderManager, UgcSearch search)
public AbstractReviewCollection(Resource resource, ClientUtilities clientUtils, QueryRequestInfo queryInfo, CommentSocialComponentListProviderManager listProviderManager)
public AbstractReviewCollection(Resource resource, ClientUtilities clientUtils, QueryRequestInfo queryInfo, CommentSocialComponentListProviderManager listProviderManager, UgcSearch search)
CommentCollection
using the specified Resource
which should be the root of the
collection with specified pagination for the children listing.resource
- the resource where the CommentCollection
is locatedclientUtils
- the clientUtilities instancepublic RatingSocialComponent getOverallRating()
getOverallRating
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
public String getName()
getName
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
public Long getTotalNumberOfResponses()
getTotalNumberOfResponses
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
public Map<String,ResponseValue> getCurrentUserResponse() throws TallyException, RepositoryException
getCurrentUserResponse
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
TallyException
- if there was an error retrieving the current users response.RepositoryException
- if there was an error retrieving the current users response.public Map<String,RatingSocialComponent> getRatings()
getRatings
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
public Map<String,String> getRatingAverages()
getRatingAverages
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
public List<Map<String,String>> getAllowedRatings()
getAllowedRatings
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
public boolean isCompositeRating()
ReviewCollectionSocialComponent
isCompositeRating
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
public boolean isIncludeHistogram()
ReviewCollectionSocialComponent
isIncludeHistogram
in interface ReviewCollectionSocialComponent<R extends ReviewSocialComponent,C extends CommentCollectionConfiguration>
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"