Class PaginableDocumentModelListImpl
java.lang.Object
java.util.AbstractCollection<DocumentModel>
java.util.AbstractList<DocumentModel>
java.util.ArrayList<DocumentModel>
org.nuxeo.ecm.automation.core.util.PaginablePageProvider<DocumentModel>
org.nuxeo.ecm.automation.io.rest.documents.PaginableDocumentModelListImpl
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<DocumentModel>,Collection<DocumentModel>,List<DocumentModel>,RandomAccess,SequencedCollection<DocumentModel>,Paginable<DocumentModel>,PaginableDocumentModelList,DocumentModelList
public class PaginableDocumentModelListImpl
extends PaginablePageProvider<DocumentModel>
implements PaginableDocumentModelList
Wraps a
PageProvider as a DocumentModelList- Author:
- Tiry ([email protected])
- See Also:
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.automation.core.util.PaginablePageProvider
pageProviderFields inherited from class java.util.AbstractList
modCountFields inherited from interface org.nuxeo.ecm.automation.core.util.PaginableDocumentModelList
CODEC_PARAMETER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionPaginableDocumentModelListImpl(PageProvider<DocumentModel> provider, String documentLinkBuilder) Creates aPaginableDocumentModelListImplwith more display information. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of what will be used to compute the document URLs, usually a codec name.longReturns the total size of the bigger list this is a part of.Methods inherited from class org.nuxeo.ecm.automation.core.util.PaginablePageProvider
getActiveQuickFilters, getAggregates, getAvailableQuickFilters, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getErrorMessage, getMaxPageSize, getNumberOfPages, getPageSize, getResultsCount, getResultsCountLimit, hasAggregateSupport, hasError, isLastPageAvailable, isNextPageAvailable, isPreviousPageAvailable, isSortableMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArrayMethods inherited from interface org.nuxeo.ecm.automation.core.util.Paginable
getActiveQuickFilters, getAggregates, getAvailableQuickFilters, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getErrorMessage, getMaxPageSize, getNumberOfPages, getPageSize, getResultsCount, getResultsCountLimit, hasAggregateSupport, hasError, isLastPageAvailable, isNextPageAvailable, isPreviousPageAvailable, isSortable
-
Field Details
-
documentLinkBuilder
-
-
Constructor Details
-
PaginableDocumentModelListImpl
-
PaginableDocumentModelListImpl
public PaginableDocumentModelListImpl(PageProvider<DocumentModel> provider, String documentLinkBuilder) Creates aPaginableDocumentModelListImplwith more display information.- Parameters:
documentLinkBuilder- the name of what will be used to compute the document URLs, usually a codec name.- Since:
- 5.6
-
-
Method Details
-
getProvider
-
getDocumentLinkBuilder
Description copied from interface:PaginableDocumentModelListReturns the name of what will be used to compute the document URLs, usually a codec name.- Specified by:
getDocumentLinkBuilderin interfacePaginableDocumentModelList
-
totalSize
public long totalSize()Description copied from interface:DocumentModelListReturns the total size of the bigger list this is a part of.- Specified by:
totalSizein interfaceDocumentModelList- Returns:
- the total size
-