public interface PaginationServiceInternal extends PaginationService
| Modifier and Type | Method and Description |
|---|---|
<F,T> Paginated<T> |
createPaginated(PaginationBatch<F> fetchBatch,
com.google.common.base.Function<Iterable<F>,Iterable<T>> modelConverter,
int maxLimit)
Constructs a Paginated implementation backed by the given PaginationBatch.
|
<F,T> PagingIterator<T> |
createPagingIterator(PaginationBatch<F> fetchBatch,
int resultsPerPage,
com.google.common.base.Function<Iterable<F>,Iterable<T>> modelConverter)
Constructs a PagingIterator backed by the given PaginationBatch.
|
doPaginationListRequest, doPaginationRequest<F,T> PagingIterator<T> createPagingIterator(PaginationBatch<F> fetchBatch, int resultsPerPage, com.google.common.base.Function<Iterable<F>,Iterable<T>> modelConverter)
fetchBatch - - a request for a range of dataresultsPerPage - - number of results to request from PaginationBatch each invocation.modelConverter - - a function to convert from the supplied object to a model object, this will be executed within a transaction.com.atlassian.confluence.api.model.pagination.PagingIterator<F,T> Paginated<T> createPaginated(PaginationBatch<F> fetchBatch, com.google.common.base.Function<Iterable<F>,Iterable<T>> modelConverter, int maxLimit)
fetchBatch - - a request for a range of datamodelConverter - - a function to convert from the supplied object to a model object, this will be executed within a transaction.maxLimit - - the max limit to apply when creating LimitedRequests for paged requests from the Paginated.com.atlassian.confluence.api.model.pagination.PaginatedCopyright © 2003–2018 Atlassian. All rights reserved.