Class DelimiterAwareCollectionPageSearchProcessor
java.lang.Object
com.broadleafcommerce.advancedcms.search.AbstractCollectionPageSearchProcessor
com.broadleafcommerce.advancedcms.search.DefaultCollectionPageSearchProcessor
com.broadleafcommerce.advancedcms.search.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 Summary
FieldsFields inherited from class com.broadleafcommerce.advancedcms.search.DefaultCollectionPageSearchProcessor
LOGFields inherited from class com.broadleafcommerce.advancedcms.search.AbstractCollectionPageSearchProcessor
advancedPageService, BLC_RULE_MAP_PARAM, REQUEST_DTO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the delimiter used to differentiate between multi-valued stringsbooleanisMatch(org.broadleafcommerce.common.page.dto.PageDTO dto, String filterProperty, Object contentValue, String filterValue) voidsetDelimiter(String delimiter) Set the delimiter used to differentiate between the multi-valued stringsMethods inherited from class com.broadleafcommerce.advancedcms.search.DefaultCollectionPageSearchProcessor
searchMethods inherited from class com.broadleafcommerce.advancedcms.search.AbstractCollectionPageSearchProcessor
buildMvelParameters, constructSearchResultObject, fetchAllPagesAssociatedWithType, sortResults
-
Field Details
-
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:
isMatchin classDefaultCollectionPageSearchProcessor
-
getDelimiter
Gets the delimiter used to differentiate between multi-valued strings- Returns:
-
setDelimiter
Set the delimiter used to differentiate between the multi-valued strings
-