public class AbstractRelationshipCollection extends BaseSocialComponent implements RelationshipCollection
RESOURCE_TYPE
CSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, PROP_REFERER, QUERY_SELECTOR, TRANSLATE_SELECTOR
Constructor and Description |
---|
AbstractRelationshipCollection(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo requestInfo) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
getItems()
Returns a list of children of this collection.
|
int |
getTotalSize()
Get total size of the collection.
|
void |
setPagination(CollectionPagination pagination)
Set the collection pagination to define how getItems() should be paginated.
|
void |
setSortedOrder(CollectionSortedOrder sortedOrder)
Set the collection sorted order.
|
buildJSONString, getAsMap, getFriendlyUrl, 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 AbstractRelationshipCollection(Resource resource, ClientUtilities clientUtils, QueryRequestInfo requestInfo)
public int getTotalSize()
SocialCollectionComponent
getTotalSize
in interface SocialCollectionComponent
public void setPagination(CollectionPagination pagination)
SocialCollectionComponent
setPagination
in interface SocialCollectionComponent
pagination
- an object defining the how the list of items should be paginated.public void setSortedOrder(CollectionSortedOrder sortedOrder)
SocialCollectionComponent
setSortedOrder
in interface SocialCollectionComponent
sortedOrder
- the order definition of how the items should be sorted.public java.util.List<java.lang.Object> getItems()
SocialCollectionComponent
getItems
in interface SocialCollectionComponent
List
of children of this collection, or an empty list if no children are present. If the
children is the first level child, then the child is embedded in the list, otherwise, the child url is
included in the list."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"