Class DefaultCollectionPageSearchProcessor

java.lang.Object
com.broadleafcommerce.advancedcms.search.AbstractCollectionPageSearchProcessor
com.broadleafcommerce.advancedcms.search.DefaultCollectionPageSearchProcessor
All Implemented Interfaces:
CollectionPageSearchProcessor
Direct Known Subclasses:
ArchiveCollectionPageSearchProcessor, DelimiterAwareCollectionPageSearchProcessor

@Component("blDefaultCollectionPageSearchProcessor") public class DefaultCollectionPageSearchProcessor extends AbstractCollectionPageSearchProcessor
Default implementation will search through all of the content for a particular PageType and compares the PageDTO String-representated property value with the filter string that was passed in, ignoring case.

This approach has not been optimized and is not recommended when searching on Pages with lots of elements, as all of the filtering and sorting is done in-memory.

Author:
Jerry Ocanas (jocanas), Phillip Verheyden (phillipuniverse)
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
  • Constructor Details

    • DefaultCollectionPageSearchProcessor

      public DefaultCollectionPageSearchProcessor()
  • Method Details

    • search

      public SearchResult search(com.broadleafcommerce.theme.domain.page.PageType type, List<org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria> criteria)
      Description copied from interface: CollectionPageSearchProcessor
      Executes a search strategy defined by a concrete implementation.

      Takes the PageType to be searched on and the query parameters pulled from the HttpServletRequest.

      Returns:
    • isMatch

      public boolean isMatch(org.broadleafcommerce.common.page.dto.PageDTO dto, String filterProperty, Object contentValue, String filterValue)