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 Summary
FieldsFields inherited from class com.broadleafcommerce.advancedcms.search.AbstractCollectionPageSearchProcessor
advancedPageService, BLC_RULE_MAP_PARAM, REQUEST_DTO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMatch(org.broadleafcommerce.common.page.dto.PageDTO dto, String filterProperty, Object contentValue, String filterValue) search(com.broadleafcommerce.theme.domain.page.PageType type, List<org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria> criteria) Executes a search strategy defined by a concrete implementation.Methods inherited from class com.broadleafcommerce.advancedcms.search.AbstractCollectionPageSearchProcessor
buildMvelParameters, constructSearchResultObject, fetchAllPagesAssociatedWithType, sortResults
-
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:CollectionPageSearchProcessorExecutes 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
-