public class FilterAndSortCriteria extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
filterValues |
static String |
IS_NOT_NULL_FILTER_VALUE |
static String |
IS_NULL_FILTER_VALUE |
static String |
MAX_INDEX_PARAMETER |
protected String |
propertyId |
protected RestrictionType |
restrictionType |
static String |
SORT_DIRECTION_PARAMETER |
static String |
SORT_PROPERTY_PARAMETER |
protected SortDirection |
sortDirection |
static String |
START_INDEX_PARAMETER |
| Constructor and Description |
|---|
FilterAndSortCriteria(String propertyId) |
FilterAndSortCriteria(String propertyId,
List<String> filterValues) |
FilterAndSortCriteria(String propertyId,
List<String> filterValues,
SortDirection sortDirection) |
FilterAndSortCriteria(String propertyId,
String filterValue) |
FilterAndSortCriteria(String propertyId,
String[] filterValues) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilterValue(String value) |
void |
clearFilterValues() |
List<String> |
getFilterValues() |
protected TypedPredicate<String> |
getPredicateForSpecialValues(boolean inclusive) |
String |
getPropertyId() |
RestrictionType |
getRestrictionType() |
Boolean |
getSortAscending() |
SortDirection |
getSortDirection() |
List<String> |
getSpecialFilterValues() |
boolean |
hasSpecialFilterValue() |
void |
setFilterValue(String value) |
void |
setFilterValues(List<String> filterValues) |
void |
setPropertyId(String propertyId) |
void |
setRestrictionType(RestrictionType restrictionType)
Useful when you want to explicitly define the type of pre-built
Restriction
instance to be used. |
void |
setSortAscending(Boolean sortAscending) |
void |
setSortDirection(SortDirection sortDirection) |
public static final String SORT_PROPERTY_PARAMETER
public static final String SORT_DIRECTION_PARAMETER
public static final String START_INDEX_PARAMETER
public static final String MAX_INDEX_PARAMETER
public static final String IS_NULL_FILTER_VALUE
public static final String IS_NOT_NULL_FILTER_VALUE
protected String propertyId
protected RestrictionType restrictionType
protected SortDirection sortDirection
public FilterAndSortCriteria(String propertyId)
public FilterAndSortCriteria(String propertyId, List<String> filterValues, SortDirection sortDirection)
public String getPropertyId()
public void setPropertyId(String propertyId)
public void clearFilterValues()
public void setFilterValue(String value)
public void addFilterValue(String value)
public Boolean getSortAscending()
public void setSortAscending(Boolean sortAscending)
public SortDirection getSortDirection()
public void setSortDirection(SortDirection sortDirection)
public boolean hasSpecialFilterValue()
public RestrictionType getRestrictionType()
public void setRestrictionType(RestrictionType restrictionType)
Restriction
instance to be used. The available, pre-built restrictions are defined in the Spring configured map "blRestrictionFactoryMap".restrictionType - protected TypedPredicate<String> getPredicateForSpecialValues(boolean inclusive)
Copyright © 2015. All rights reserved.