public abstract class OwAbstractIterable<T> extends OwIterableAttributeBag<T>
Abstarct implementation of 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
Modifier | Constructor and Description |
---|---|
protected |
OwAbstractIterable(long skipCount,
OwAbstractPageFetcher<T> pageFetcher) |
Modifier and Type | Method and Description |
---|---|
protected abstract OwAbstractIterator<T> |
createIterator()
Sublcasses should create a specific iterator to itterate on the entire collection or on sub-collections/pages only.
|
boolean |
getHasMoreItems()
Returns whether the repository contains additional items beyond the page of
items already fetched.
|
protected OwAbstractIterator<T> |
getIterator() |
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
|
protected OwAbstractPageFetcher<T> |
getPageFetcher() |
long |
getPageNumItems()
Returns the number of items fetched for the current page.
|
protected long |
getSkipCount() |
long |
getTotalNumItems()
This will return a "guestimation"
since parts/pages will be retrieved on request.
|
OwIterable<T> |
skipTo(long position) |
attributecount, getAttribute, getAttribute, getAttributeNames, getSafeAttribute, hasAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator
protected OwAbstractIterable(long skipCount, OwAbstractPageFetcher<T> pageFetcher)
public long getTotalNumItems()
OwIterable
protected OwAbstractIterator<T> getIterator()
protected OwAbstractPageFetcher<T> getPageFetcher()
protected long getSkipCount()
public long getPageNumItems()
OwIterable
public boolean getHasMoreItems()
OwIterable
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 containprotected abstract OwAbstractIterator<T> createIterator()
OwAbstractIterator
used to iterate this collection.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.