Class SortSettings.Behavior

java.lang.Object
com.broadleafcommerce.search.api.domain.constants.SortSettings.Behavior
Enclosing class:
SortSettings

public static final class SortSettings.Behavior extends Object
Describes the behavior of a sort option. This is useful in cases where displaying both ascending and descending do not make sense. For example, sorting by "In stock" or "Popular". In cases like these, it doesn't make sense to sort by "least popular" or "out of stock", so the sort behavior can be set to ASC_ONLY or DESC_ONLY.

See SortOption.setSortBehavior(String)

  • Field Details

    • DEFAULT

      public static final String DEFAULT
      The default behavior for sorting. This indicates that both ascending and descending sorting should be allowed.
      See Also:
    • ASC_ONLY

      public static final String ASC_ONLY
      This sort should only allow ascending sorting.
      See Also:
    • DESC_ONLY

      public static final String DESC_ONLY
      This sort should only allow descending sorting.
      See Also: