public class OwAggregateIterable<T> extends OwIterableAttributeBag<T>
Trying to provide an aggregate OwIterable.
WARNING: This implementation will break as soon as any of the aggregated OwIterables do not know how to properly respond to getTotalNumItems().
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
isPage| Constructor and Description |
|---|
OwAggregateIterable(List<OwIterable<T>> iterables) |
OwAggregateIterable(OwIterable<T>... iterables) |
| Modifier and Type | Method and Description |
|---|---|
static <IT> OwIterable<IT> |
forList(List<OwIterable<IT>> list)
Decides if we really need an Aggregate iterable or not for the given input list.
|
boolean |
getHasMoreItems()
Returns whether the repository contains additional items beyond the page of
items already fetched.
|
OwIterable<T> |
getPage()
Gets an iterable for the current sub collection within the CMIS collection using
default maximum number of items
|
OwIterable<T> |
getPage(int maxNumItems)
Gets an iterable for the current sub collection within the CMIS collection
|
long |
getPageNumItems()
Returns the number of items fetched for the current page.
|
long |
getTotalNumItems()
This will return a "guestimation"
since parts/pages will be retrieved on request.
|
Iterator<T> |
iterator() |
OwIterable<T> |
skipTo(long position) |
attributecount, getAttribute, getAttribute, getAttributeNames, getSafeAttribute, hasAttributepublic OwAggregateIterable(List<OwIterable<T>> iterables)
public OwAggregateIterable(OwIterable<T>... iterables)
public OwIterable<T> skipTo(long position)
position - This is relative to the start of the whole collection of items. It is not interpreted as relative to the start of a page.this.public OwIterable<T> getPage()
OwIterablepublic OwIterable<T> getPage(int maxNumItems)
OwIterablemaxNumItems - maximum number of items the sub collection will containpublic long getPageNumItems()
OwIterablepublic boolean getHasMoreItems()
OwIterablepublic long getTotalNumItems()
OwIterablepublic static <IT> OwIterable<IT> forList(List<OwIterable<IT>> list)
IT - the type of iterables.list - OwAggregateIterable if needed or the first iterable in the list if there is only one element.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.