Modifier and Type | Method and Description |
---|---|
<H,M> PageResponse<M> |
PaginationServiceImpl.performPaginationListRequestWithCursor(LimitedRequest initialRequest,
Function<LimitedRequest,PageResponse<H>> fetchBatch,
Function<Iterable<H>,Iterable<M>> modelConverter,
BiFunction<H,Boolean,Cursor> cursorCalculator) |
Modifier and Type | Class and Description |
---|---|
class |
ContentCursor
A class which could be used to generate cursor for the next/previous content pagination request or get cursor from string
|
class |
SpaceCursor
A class which could be used to generate cursor for the next/previous space pagination request or get cursor from space
|
Modifier and Type | Method and Description |
---|---|
Cursor |
SimplePageRequest.getCursor() |
default Cursor |
PageRequest.getCursor() |
default Cursor |
LimitedRequest.getCursor() |
Cursor |
LimitedRequestImpl.getCursor() |
default Cursor |
PageResponse.getNextCursor() |
Cursor |
PageResponseImpl.getNextCursor() |
default Cursor |
PageResponse.getPrevCursor() |
Cursor |
PageResponseImpl.getPrevCursor() |
Modifier and Type | Method and Description |
---|---|
static LimitedRequest |
LimitedRequestImpl.create(Cursor cursor,
int limit,
int maxLimit) |
B |
PageResponseImpl.Builder.nextCursor(Cursor nextCursor) |
B |
PageResponseImpl.Builder.prevCursor(Cursor prevCursor) |
Modifier and Type | Method and Description |
---|---|
static <T> PageResponse<T> |
PageResponseImpl.filteredResponseWithCursor(LimitedRequest limitedRequest,
List<T> items,
Predicate<? super T> predicate,
BiFunction<T,Boolean,Cursor> cursorCalculator,
Comparator<T> ascComparator)
Reduces a list of items for a limited request by the predicate provided.
|
Constructor and Description |
---|
LimitedRequestImpl(int start,
Cursor cursor,
int limit,
int needed,
int maxLimit,
boolean shouldSkipDiscardingThreshold) |
SimplePageRequest(Cursor cursor,
int limit) |
SimplePageRequest(int start,
Cursor cursor,
int limit) |
Modifier and Type | Method and Description |
---|---|
static Cursor |
CursorFactory.buildFrom(String cursorString)
Create cursor from string
|
Modifier and Type | Method and Description |
---|---|
default <H,M> PageResponse<M> |
PaginationService.performPaginationListRequestWithCursor(LimitedRequest pageRequest,
Function<LimitedRequest,PageResponse<H>> fetchBatch,
Function<Iterable<H>,Iterable<M>> modelConverter,
BiFunction<H,Boolean,Cursor> cursorCalculator)
Perform a pagination request, this will execute the fetchBatch function as many times as
to retrieve the page of results.
|
Modifier and Type | Method and Description |
---|---|
Cursor |
RestPageRequest.getCursor() |
Cursor |
RestList.getNextCursor() |
Cursor |
RestList.getPrevCursor() |
Modifier and Type | Method and Description |
---|---|
RestList.Builder<T> |
RestList.Builder.results(List<T> results,
Cursor nextCursor,
Cursor prevCursor,
boolean hasMore) |
Constructor and Description |
---|
RestPageRequest(Navigation.Builder navBuilder,
Cursor cursor,
int limit) |
RestPageRequest(javax.ws.rs.core.UriBuilder requestUri,
Cursor cursor,
int limit) |
RestPageRequest(javax.ws.rs.core.UriBuilder requestUri,
int start,
Cursor cursor,
int limit) |
RestPageRequest(javax.ws.rs.core.UriInfo requestInfo,
Cursor cursor,
int limit) |
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences