public class PaginationFilter extends Object implements Filter
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PAGINATION |
static int |
LIMIT_PAGINATION |
static String |
PARAM_IS_DESC |
static String |
PARAM_NUMBER_PAGE |
static String |
PARAM_SORT_ATTRIBUTE |
| Constructor and Description |
|---|
PaginationFilter(String defaultOrder) |
PaginationFilter(String defaultOrder,
int limitRecord) |
PaginationFilter(String defaultOrder,
int limitRecord,
String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed.
|
String |
filter(InvocationChain chain)
Executes the filter.
|
String |
getKey() |
protected int |
getNumberPage(Input input) |
protected String |
getSortAttribute(Input input) |
protected boolean |
isDesc(Input input) |
public static final int LIMIT_PAGINATION
public static final String KEY_PAGINATION
public static final String PARAM_NUMBER_PAGE
public static final String PARAM_SORT_ATTRIBUTE
public static final String PARAM_IS_DESC
public PaginationFilter(String defaultOrder)
public PaginationFilter(String defaultOrder, int limitRecord)
public String filter(InvocationChain chain) throws Exception
Filterprotected int getNumberPage(Input input)
protected boolean isDesc(Input input)
public void destroy()
Filterpublic String getKey()
Copyright © 2015. All Rights Reserved.