Class DelimiterAwareCollectionPageSearchProcessor

All Implemented Interfaces:
CollectionPageSearchProcessor

@Component("blDelimeterAwareCollectionPageSearchProcessor") public class DelimiterAwareCollectionPageSearchProcessor extends DefaultCollectionPageSearchProcessor
Similar to DefaultCollectionPageSearchProcessor except that it assumes that the page property value could be a longer string separated by a delimiter. The default implementation uses a comma for a delimiter.

This implementation provides the same functionality as the DefaultCollectionPageSearchProcessor with the additional feature of searching on delimited strings.

Author:
Phillip Verheyden (phillipuniverse)
  • Field Details

    • delimiter

      protected String delimiter
  • Constructor Details

    • DelimiterAwareCollectionPageSearchProcessor

      public DelimiterAwareCollectionPageSearchProcessor()
  • Method Details

    • isMatch

      public boolean isMatch(org.broadleafcommerce.common.page.dto.PageDTO dto, String filterProperty, Object contentValue, String filterValue)
      Overrides:
      isMatch in class DefaultCollectionPageSearchProcessor
    • getDelimiter

      public String getDelimiter()
      Gets the delimiter used to differentiate between multi-valued strings
      Returns:
    • setDelimiter

      public void setDelimiter(String delimiter)
      Set the delimiter used to differentiate between the multi-valued strings