|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.openadmin.client.dto.FilterAndSortCriteria
public class FilterAndSortCriteria
Basic client-side persistent entity criteria representation for a single property of the target persistent entity.
This class is essentially an analogy of server-side property criteria regarding the filtering and sorting functionality.
Back on the server side, persistent entity property mappings are used to resolve:
FilterAndSortCriteria instance must be
unique within the CriteriaTransferObject.
CriteriaTransferObject,
Serialized Form| Nested Class Summary | |
|---|---|
protected static class |
FilterAndSortCriteria.SortType
|
| Field Summary | |
|---|---|
protected List<String> |
filterValues
|
protected Boolean |
ignoreCase
|
protected String |
propertyId
|
protected Boolean |
sortAscending
Deprecated. use sortType instead |
protected FilterAndSortCriteria.SortType |
sortType
|
| Constructor Summary | |
|---|---|
FilterAndSortCriteria()
Creates a new persistent entity criteria (for deserialization purposes only). |
|
FilterAndSortCriteria(String propertyId)
Creates a new persistent entity criteria. |
|
| Method Summary | |
|---|---|
void |
clearFilterValues()
Clears any filter value(s) set previously to this criteria. |
String[] |
getFilterValues()
|
Boolean |
getIgnoreCase()
|
String |
getPropertyId()
|
Boolean |
getSortAscending()
|
FilterAndSortCriteria.SortType |
getSortType()
|
void |
setFilterValue(String value)
Sets a single filter value to this criteria, replacing any filter value(s) set previously. |
void |
setFilterValues(List<String> filterValues)
|
void |
setFilterValues(String... values)
Sets multiple filter values to this criteria, replacing any filter value(s) set previously. |
void |
setIgnoreCase(Boolean ignoreCase)
|
void |
setPropertyId(String propertyId)
|
void |
setSortAscending(Boolean sortAscending)
Deprecated. |
void |
setSortType(FilterAndSortCriteria.SortType sortType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String propertyId
protected List<String> filterValues
protected Boolean ignoreCase
protected FilterAndSortCriteria.SortType sortType
@Deprecated protected Boolean sortAscending
| Constructor Detail |
|---|
public FilterAndSortCriteria()
public FilterAndSortCriteria(String propertyId)
propertyId - Symbolic persistent entity property
identifier.| Method Detail |
|---|
public String getPropertyId()
public void setPropertyId(String propertyId)
propertyId - the propertyId to setpublic String[] getFilterValues()
public void clearFilterValues()
public void setFilterValue(String value)
value - String-based filter value.public void setFilterValues(String... values)
values - String-based filter values.public void setFilterValues(List<String> filterValues)
filterValues - the filterValues to setpublic Boolean getSortAscending()
@Deprecated public void setSortAscending(Boolean sortAscending)
public FilterAndSortCriteria.SortType getSortType()
public void setSortType(FilterAndSortCriteria.SortType sortType)
sortType - the sortType to setpublic Boolean getIgnoreCase()
public void setIgnoreCase(Boolean ignoreCase)
ignoreCase - true for case-insensitive
sorting, false for case-sensitive sorting
(applicable only when sortAscending is not
null).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||