C
- any SocialComponent type that extends the Comment
data type.public abstract class AbstractCommentCollection<C extends Comment,T extends CommentCollectionConfiguration> extends BaseSocialComponent implements CommentCollection<C,T>
Comment
.Constructor and Description |
---|
AbstractCommentCollection(Resource resource,
ClientUtilities clientUtils,
CommentSocialComponentListProviderManager commentListProviderManager)
Constructor using the specified
Resource which should be the root of the collection without paging
specification. |
AbstractCommentCollection(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo queryInfo,
CommentSocialComponentListProviderManager commentListProviderManager)
Construct a
CommentCollection using the specified Resource which should be the root of the
collection. |
AbstractCommentCollection(ResourceID id,
ResourceResolver resolver,
ClientUtilities clientUtils,
CommentSocialComponentListProviderManager commentListProviderManager)
Constructor using the specified
ResourceID which should be the root of the collection without paging
specification. |
Modifier and Type | Method and Description |
---|---|
T |
createConfiguration(Resource resource,
CommentSystem cs)
Create configuration for the specified resource
|
T |
getConfiguration()
Get the configuration for this collection
|
Calendar |
getCreated()
Returns the moment in time this collection was created.
|
List<Object> |
getItems()
Get the comments of this
CommentCollection base on the pagination configuration. |
Calendar |
getLastModified()
Returns the moment in time this collection was last modified.
|
PageInfo |
getPageInfo()
Gets information about the pages for this collection.
|
int |
getTotalSize()
Get total size of the collection.
|
boolean |
isTaggingAllowed()
Checks if is tagging allowed.
|
void |
setPagination(CollectionPagination pagination)
Set the collection list range.
|
void |
setSortedOrder(CollectionSortedOrder sortedOrder)
Set the collection sorted order.
|
getAsMap, getId, getProperties, getResource, getResourceType, getUrl, toJSONString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsMap, getId, getProperties, getResource, getResourceType, getUrl, toJSONString
public AbstractCommentCollection(ResourceID id, ResourceResolver resolver, ClientUtilities clientUtils, CommentSocialComponentListProviderManager commentListProviderManager)
ResourceID
which should be the root of the collection without paging
specification. Paging information is not created until the pagination is specified.id
- the resource id of the CommentCollection
resolver
- the resource resolver used to obtain the resource in the JCR.clientUtils
- the clientUtilssetPagination(CollectionPagination)
public AbstractCommentCollection(Resource resource, ClientUtilities clientUtils, CommentSocialComponentListProviderManager commentListProviderManager)
Resource
which should be the root of the collection without paging
specification. Paging information is not created until the pagination is specified.resource
- the resource.clientUtils
- the clientUtilssetPagination(CollectionPagination)
public AbstractCommentCollection(Resource resource, ClientUtilities clientUtils, QueryRequestInfo queryInfo, CommentSocialComponentListProviderManager commentListProviderManager)
CommentCollection
using the specified Resource
which should be the root of the
collection.resource
- the resource where the CommentCollection
is locatedclientUtils
- the clientUtilities instancepublic void setPagination(CollectionPagination pagination)
setPagination
in interface SocialCollectionComponent
pagination
- pagination configurationpublic Calendar getCreated()
getCreated
in interface CommentCollection<C extends Comment,T extends CommentCollectionConfiguration>
public Calendar getLastModified()
getLastModified
in interface CommentCollection<C extends Comment,T extends CommentCollectionConfiguration>
public int getTotalSize()
getTotalSize
in interface SocialCollectionComponent
public List<Object> getItems()
CommentCollection
base on the pagination configuration.getItems
in interface SocialCollectionComponent
public void setSortedOrder(CollectionSortedOrder sortedOrder)
setSortedOrder
in interface SocialCollectionComponent
sortedOrder
- the order definition of how the items should be sorted.public PageInfo getPageInfo()
CommentCollection
getPageInfo
in interface CommentCollection<C extends Comment,T extends CommentCollectionConfiguration>
public boolean isTaggingAllowed()
CommentCollection
isTaggingAllowed
in interface CommentCollection<C extends Comment,T extends CommentCollectionConfiguration>
public T getConfiguration()
CommentCollection
getConfiguration
in interface CommentCollection<C extends Comment,T extends CommentCollectionConfiguration>
public T createConfiguration(Resource resource, CommentSystem cs)
CommentCollection
createConfiguration
in interface CommentCollection<C extends Comment,T extends CommentCollectionConfiguration>
resource
- thecs
- The CommentSystem
of the comment"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"