Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.operations.services
Class PaginableDocumentModelListImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<DocumentModel>
              extended by org.nuxeo.ecm.core.api.impl.DocumentModelListImpl
                  extended by org.nuxeo.ecm.automation.core.operations.services.PaginableDocumentModelListImpl
All Implemented Interfaces:
Serializable, Cloneable, Iterable<DocumentModel>, Collection<DocumentModel>, List<DocumentModel>, RandomAccess, PaginableDocumentModelList, DocumentModelList

public class PaginableDocumentModelListImpl
extends DocumentModelListImpl
implements PaginableDocumentModelList

Wraps a PageProvider as a DocumentListener

Author:
Tiry (tdelprat@nuxeo.com)
See Also:
Serialized Form

Constructor Summary
PaginableDocumentModelListImpl(PageProvider<DocumentModel> provider)
           
 
Method Summary
 long getCurrentPageIndex()
           
 long getNumberOfPages()
           
 long getPageSize()
           
 PageProvider<DocumentModel> getProvider()
           
 
Methods inherited from class org.nuxeo.ecm.core.api.impl.DocumentModelListImpl
setTotalSize, totalSize
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.core.api.DocumentModelList
totalSize
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

PaginableDocumentModelListImpl

public PaginableDocumentModelListImpl(PageProvider<DocumentModel> provider)
Method Detail

getProvider

public PageProvider<DocumentModel> getProvider()

getCurrentPageIndex

public long getCurrentPageIndex()
Specified by:
getCurrentPageIndex in interface PaginableDocumentModelList

getNumberOfPages

public long getNumberOfPages()
Specified by:
getNumberOfPages in interface PaginableDocumentModelList

getPageSize

public long getPageSize()
Specified by:
getPageSize in interface PaginableDocumentModelList

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.