public interface PaginateListUtil
| Modifier and Type | Method and Description |
|---|---|
static <RES,REQ> DataResponse<RES> |
paginateList(Map<String,String> requestParams,
PaginateRequest paginateRequest,
Query<?,REQ> query,
String defaultSort,
Map<String,QueryProperty> properties,
ListProcessor<REQ,RES> listProcessor)
Uses the pagination parameters form the request and makes sure to order the result and set all pagination attributes for the response to render.
|
static <RES,REQ> DataResponse<RES> |
paginateList(Map<String,String> requestParams,
Query<?,REQ> query,
String defaultSort,
Map<String,QueryProperty> properties,
ListProcessor<REQ,RES> listProcessor)
Uses the pagination parameters from the request and makes sure to order the result and set all pagination attributes for the response to render.
|
static <RES,REQ> DataResponse<RES> |
paginateList(PaginateRequest paginateRequest,
Query<?,REQ> query,
String defaultSort,
Map<String,QueryProperty> properties,
ListProcessor<REQ,RES> listProcessor)
Uses the pagination attributes perform the querying and render the response.
|
static <RES,REQ> DataResponse<RES> paginateList(Map<String,String> requestParams, Query<?,REQ> query, String defaultSort, Map<String,QueryProperty> properties, ListProcessor<REQ,RES> listProcessor)
REQ - The type returned by the queryRES - The type of the responserequestParams - The request containing the pagination parametersquery - The query to get the paged list fromdefaultSort - The default sort column (the rest attribute) that later will be mapped to an internal engine nameproperties - The sort propertieslistProcessor - The processor that would convert the result elements of the query into the response elementsstatic <RES,REQ> DataResponse<RES> paginateList(Map<String,String> requestParams, PaginateRequest paginateRequest, Query<?,REQ> query, String defaultSort, Map<String,QueryProperty> properties, ListProcessor<REQ,RES> listProcessor)
REQ - The type returned by the queryRES - The type of the responserequestParams - The request containing the pagination parameterspaginateRequest - The paginated request that can be used to get the parameters fromquery - The query to get the paged list fromdefaultSort - The default sort column (the rest attribute) that later will be mapped to an internal engine nameproperties - The sort propertieslistProcessor - The processor that would convert the result elements of the query into the response elementsstatic <RES,REQ> DataResponse<RES> paginateList(PaginateRequest paginateRequest, Query<?,REQ> query, String defaultSort, Map<String,QueryProperty> properties, ListProcessor<REQ,RES> listProcessor)
REQ - The type returned by the queryRES - The type of the responsepaginateRequest - The paginated request that is used to get the pagination parameters fromquery - The query to get the paged list fromdefaultSort - The default sort column (the rest attribute) that later will be mapped to an internal engine nameproperties - The sort propertieslistProcessor - The processor that would convert the result elements of the query into the response elementsCopyright © 2020 Flowable. All rights reserved.