Class FilterAndSortCriteria
java.lang.Object
org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected booleanprotected Integerfor "order", a null value is relevant, meaning that this field moves to the end of any sort order consideration (this is the opposite of what we would achieve, by having an uninitialized int variable set to 0)static final Stringprotected Stringprotected RestrictionTypestatic final Stringstatic final Stringprotected SortDirectionstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionFilterAndSortCriteria(String propertyId) FilterAndSortCriteria(String propertyId, int order) FilterAndSortCriteria(String propertyId, String filterValue) FilterAndSortCriteria(String propertyId, String[] filterValues) FilterAndSortCriteria(String propertyId, String[] filterValues, int order) FilterAndSortCriteria(String propertyId, String filterValue, int order) FilterAndSortCriteria(String propertyId, List<String> filterValues) FilterAndSortCriteria(String propertyId, List<String> filterValues, int order) FilterAndSortCriteria(String propertyId, List<String> filterValues, SortDirection sortDirection) FilterAndSortCriteria(String propertyId, List<String> filterValues, SortDirection sortDirection, int order) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilterValue(String value) voidgetOrder()protected org.broadleafcommerce.common.util.TypedPredicate<String>getPredicateForSpecialValues(boolean inclusive) booleanbooleanvoidsetFilterValue(String value) voidsetFilterValues(List<String> filterValues) voidsetNullsLast(boolean nullsLast) voidvoidsetPropertyId(String propertyId) voidsetRestrictionType(RestrictionType restrictionType) Useful when you want to explicitly define the type of pre-builtRestrictioninstance to be used.voidsetSortAscending(Boolean sortAscending) voidsetSortDirection(SortDirection sortDirection)
-
Field Details
-
SORT_PROPERTY_PARAMETER
- See Also:
-
SORT_DIRECTION_PARAMETER
- See Also:
-
START_INDEX_PARAMETER
- See Also:
-
MAX_INDEX_PARAMETER
- See Also:
-
MAX_RESULTS_PARAMETER
- See Also:
-
LAST_ID_PARAMETER
- See Also:
-
FIRST_ID_PARAMETER
- See Also:
-
UPPER_COUNT_PARAMETER
- See Also:
-
LOWER_COUNT_PARAMETER
- See Also:
-
PAGE_SIZE_PARAMETER
- See Also:
-
IS_NULL_FILTER_VALUE
-
IS_NOT_NULL_FILTER_VALUE
-
propertyId
-
filterValues
-
restrictionType
-
order
for "order", a null value is relevant, meaning that this field moves to the end of any sort order consideration (this is the opposite of what we would achieve, by having an uninitialized int variable set to 0) -
sortDirection
-
nullsLast
protected boolean nullsLast
-
-
Constructor Details
-
FilterAndSortCriteria
-
FilterAndSortCriteria
-
FilterAndSortCriteria
-
FilterAndSortCriteria
-
FilterAndSortCriteria
-
FilterAndSortCriteria
-
FilterAndSortCriteria
public FilterAndSortCriteria(String propertyId, List<String> filterValues, SortDirection sortDirection, int order) -
FilterAndSortCriteria
public FilterAndSortCriteria(String propertyId, List<String> filterValues, SortDirection sortDirection) -
FilterAndSortCriteria
-
FilterAndSortCriteria
-
-
Method Details
-
getPropertyId
-
setPropertyId
-
clearFilterValues
public void clearFilterValues() -
setFilterValue
-
addFilterValue
-
getFilterValues
-
setFilterValues
-
getSpecialFilterValues
-
getSortAscending
-
setSortAscending
-
getSortDirection
-
setSortDirection
-
hasSpecialFilterValue
public boolean hasSpecialFilterValue() -
getRestrictionType
-
setRestrictionType
Useful when you want to explicitly define the type of pre-builtRestrictioninstance to be used. The available, pre-built restrictions are defined in the Spring configured map "blRestrictionFactoryMap".- Parameters:
restrictionType-
-
getPredicateForSpecialValues
protected org.broadleafcommerce.common.util.TypedPredicate<String> getPredicateForSpecialValues(boolean inclusive) -
getOrder
-
setOrder
-
isNullsLast
public boolean isNullsLast() -
setNullsLast
public void setNullsLast(boolean nullsLast)
-