Class FilterAndSortCriteria

java.lang.Object
org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria

public class FilterAndSortCriteria extends Object
  • Field Details

    • SORT_PROPERTY_PARAMETER

      public static final String SORT_PROPERTY_PARAMETER
      See Also:
    • SORT_DIRECTION_PARAMETER

      public static final String SORT_DIRECTION_PARAMETER
      See Also:
    • START_INDEX_PARAMETER

      public static final String START_INDEX_PARAMETER
      See Also:
    • MAX_INDEX_PARAMETER

      public static final String MAX_INDEX_PARAMETER
      See Also:
    • MAX_RESULTS_PARAMETER

      public static final String MAX_RESULTS_PARAMETER
      See Also:
    • LAST_ID_PARAMETER

      public static final String LAST_ID_PARAMETER
      See Also:
    • FIRST_ID_PARAMETER

      public static final String FIRST_ID_PARAMETER
      See Also:
    • UPPER_COUNT_PARAMETER

      public static final String UPPER_COUNT_PARAMETER
      See Also:
    • LOWER_COUNT_PARAMETER

      public static final String LOWER_COUNT_PARAMETER
      See Also:
    • PAGE_SIZE_PARAMETER

      public static final String PAGE_SIZE_PARAMETER
      See Also:
    • IS_NULL_FILTER_VALUE

      public static final String IS_NULL_FILTER_VALUE
    • IS_NOT_NULL_FILTER_VALUE

      public static final String IS_NOT_NULL_FILTER_VALUE
    • propertyId

      protected String propertyId
    • filterValues

      protected List<String> filterValues
    • restrictionType

      protected RestrictionType restrictionType
    • order

      protected Integer 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

      protected SortDirection sortDirection
    • nullsLast

      protected boolean nullsLast
  • Constructor Details

    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, int order)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, String filterValue)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, String filterValue, int order)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, List<String> filterValues, int order)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, List<String> filterValues)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, List<String> filterValues, SortDirection sortDirection, int order)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, List<String> filterValues, SortDirection sortDirection)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, String[] filterValues, int order)
    • FilterAndSortCriteria

      public FilterAndSortCriteria(String propertyId, String[] filterValues)
  • Method Details

    • getPropertyId

      public String getPropertyId()
    • setPropertyId

      public void setPropertyId(String propertyId)
    • clearFilterValues

      public void clearFilterValues()
    • setFilterValue

      public void setFilterValue(String value)
    • addFilterValue

      public void addFilterValue(String value)
    • getFilterValues

      public List<String> getFilterValues()
    • setFilterValues

      public void setFilterValues(List<String> filterValues)
    • getSpecialFilterValues

      public List<String> getSpecialFilterValues()
    • getSortAscending

      public Boolean getSortAscending()
    • setSortAscending

      public void setSortAscending(Boolean sortAscending)
    • getSortDirection

      public SortDirection getSortDirection()
    • setSortDirection

      public void setSortDirection(SortDirection sortDirection)
    • hasSpecialFilterValue

      public boolean hasSpecialFilterValue()
    • getRestrictionType

      public RestrictionType getRestrictionType()
    • setRestrictionType

      public void setRestrictionType(RestrictionType restrictionType)
      Useful when you want to explicitly define the type of pre-built Restriction instance 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

      public Integer getOrder()
    • setOrder

      public void setOrder(Integer order)
    • isNullsLast

      public boolean isNullsLast()
    • setNullsLast

      public void setNullsLast(boolean nullsLast)