public abstract class AbstractPaginateList extends Object
Constructor and Description |
---|
AbstractPaginateList() |
Modifier and Type | Method and Description |
---|---|
DataResponse |
paginateList(Map<String,String> requestParams,
PaginateRequest paginateRequest,
Query query,
String defaultSort,
Map<String,QueryProperty> properties)
uses the pagination parameters form the request and makes sure to order the result and set all pagination
attributes for the response to render
|
DataResponse |
paginateList(Map<String,String> requestParams,
Query query,
String defaultSort,
Map<String,QueryProperty> properties)
uses the pagination parameters from the request and makes sure to order the result and set all pagination
attributes for the response to render
|
protected abstract List |
processList(List list) |
public DataResponse paginateList(Map<String,String> requestParams, PaginateRequest paginateRequest, Query query, String defaultSort, Map<String,QueryProperty> properties)
req
- The request containing the pagination parametersquery
- The query to get the paged list fromlistName
- The name model attribute name to use for the result listmodel
- The model to put the list and the pagination attributes indefaultSort
- THe default sort column (the rest attribute) that later will be mapped to an internal engine namepublic DataResponse paginateList(Map<String,String> requestParams, Query query, String defaultSort, Map<String,QueryProperty> properties)
req
- The request containing the pagination parametersquery
- The query to get the paged list fromlistName
- The name model attribute name to use for the result listmodel
- The model to put the list and the pagination attributes indefaultSort
- THe default sort column (the rest attribute) that later will be mapped to an internal engine nameCopyright © 2016 Alfresco. All rights reserved.