public abstract class AbstractPaginateList extends Object
| Constructor and Description |
|---|
AbstractPaginateList() |
| Modifier and Type | Method and Description |
|---|---|
DataResponse |
paginateList(org.restlet.data.Form form,
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
|
protected abstract List |
processList(List list) |
public DataResponse paginateList(org.restlet.data.Form form, 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 © 2013 Alfresco. All rights reserved.