public class OwObjectCollectionIterableAdapter<T> extends OwIterableAttributeBag<T>
Adapter from OwObjectCollection
to OwIterable
.
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 |
---|
OwObjectCollectionIterableAdapter(OwObjectCollection owCollection) |
OwObjectCollectionIterableAdapter(OwObjectCollection owCollection,
boolean hasMoreItems) |
OwObjectCollectionIterableAdapter(OwObjectCollection owCollection,
boolean hasNext,
int maxNumItems) |
OwObjectCollectionIterableAdapter(OwObjectCollection owCollection,
int maxNumItems) |
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.
|
Iterator<T> |
iterator() |
OwIterable<T> |
skipTo(long position) |
attributecount, getAttribute, getAttribute, getAttributeNames, getSafeAttribute, hasAttribute
public OwObjectCollectionIterableAdapter(OwObjectCollection owCollection)
public OwObjectCollectionIterableAdapter(OwObjectCollection owCollection, int maxNumItems)
public OwObjectCollectionIterableAdapter(OwObjectCollection owCollection, boolean hasMoreItems)
public OwObjectCollectionIterableAdapter(OwObjectCollection owCollection, boolean hasNext, int maxNumItems)
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()
OwIterable
public OwIterable<T> getPage(int maxNumItems)
OwIterable
maxNumItems
- maximum number of items the sub collection will containpublic long getPageNumItems()
OwIterable
public boolean getHasMoreItems()
OwIterable
public long getTotalNumItems()
OwIterable
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.