public class OwFilteringIterable<T> extends OwIterableAttributeBag<T>
An OwIterable implementation that accepts a filtering criteria.
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 |
|---|
OwFilteringIterable(OwIterable<T> iterable,
OwItemFilter<T> filter) |
OwFilteringIterable(OwIterable<T> iterable,
OwItemFilter<T> filter,
long pageSize) |
OwFilteringIterable(OwIterable<T> iterable,
OwItemFilter<T> filter,
long pageSize,
boolean exactCalculation) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isExcatCalculation()
Is calculation enabled for
getTotalNumItems() |
Iterator<T> |
iterator() |
void |
setExactCalculation(boolean calculation)
Define if filter should be accessed for total count calculation.
|
OwIterable<T> |
skipTo(long position) |
attributecount, getAttribute, getAttribute, getAttributeNames, getSafeAttribute, hasAttributepublic OwFilteringIterable(OwIterable<T> iterable, OwItemFilter<T> filter)
public OwFilteringIterable(OwIterable<T> iterable, OwItemFilter<T> filter, long pageSize)
public OwFilteringIterable(OwIterable<T> iterable, OwItemFilter<T> filter, long pageSize, boolean exactCalculation)
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 void setExactCalculation(boolean calculation)
calculation - booleangetTotalNumItems()public boolean isExcatCalculation()
getTotalNumItems()setExactCalculation(boolean)Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.