Class ArchiveCollectionPageSearchProcessor
java.lang.Object
com.broadleafcommerce.advancedcms.search.AbstractCollectionPageSearchProcessor
com.broadleafcommerce.advancedcms.search.DefaultCollectionPageSearchProcessor
com.broadleafcommerce.advancedcms.search.ArchiveCollectionPageSearchProcessor
- All Implemented Interfaces:
CollectionPageSearchProcessor
@Component("blArchiveCollectionPageSearchProcessor")
public class ArchiveCollectionPageSearchProcessor
extends DefaultCollectionPageSearchProcessor
Similar to
DefaultCollectionPageSearchProcessor except that it assumes that the content property value
is a Date. Additionally, this processor will only execute for the restrictFilterProprty that matches the
filterProperty, which.
This processor was intended to be used to filter content that was created within a month. A common use case is for filtering blog posts by day, month, or year.
- Author:
- Joseph Fridye (jfridye)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected StringFields 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 restricted filter propertiesbooleanisMatch(org.broadleafcommerce.common.page.dto.PageDTO dto, String filterProperty, Object contentValue, String filterValue) voidsetDayFormat(String dayFormat) voidsetMonthFormat(String monthFormat) voidsetRestrictFilterProperty(String restrictFilterProperty) Sets the restricted filter propertiesvoidsetYearFormat(String yearFormat) Methods inherited from class com.broadleafcommerce.advancedcms.search.DefaultCollectionPageSearchProcessor
searchMethods inherited from class com.broadleafcommerce.advancedcms.search.AbstractCollectionPageSearchProcessor
buildMvelParameters, constructSearchResultObject, fetchAllPagesAssociatedWithType, sortResults
-
Field Details
-
dayFormat
-
monthFormat
-
yearFormat
-
restrictFilterProperty
-
-
Constructor Details
-
ArchiveCollectionPageSearchProcessor
public ArchiveCollectionPageSearchProcessor()
-
-
Method Details
-
isMatch
public boolean isMatch(org.broadleafcommerce.common.page.dto.PageDTO dto, String filterProperty, Object contentValue, String filterValue) - Overrides:
isMatchin classDefaultCollectionPageSearchProcessor
-
getRestrictFilterProperty
Gets the restricted filter properties -
setRestrictFilterProperty
Sets the restricted filter properties -
getDayFormat
-
setDayFormat
-
getMonthFormat
-
setMonthFormat
-
getYearFormat
-
setYearFormat
-