@Component(value="blArchiveCollectionPageSearchProcessor") public class ArchiveCollectionPageSearchProcessor extends DefaultCollectionPageSearchProcessor
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.DefaultCollectionPageSearchProcessor}
Modifier and Type | Field and Description |
---|---|
protected String |
dayFormat |
protected String |
monthFormat |
protected String |
restrictFilterProperty |
protected String |
yearFormat |
LOG
advancedPageService, BLC_RULE_MAP_PARAM, REQUEST_DTO
Constructor and Description |
---|
ArchiveCollectionPageSearchProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
getDayFormat() |
String |
getMonthFormat() |
String |
getRestrictFilterProperty()
Gets the restricted filter properties
|
String |
getYearFormat() |
boolean |
isMatch(org.broadleafcommerce.common.page.dto.PageDTO dto,
String filterProperty,
Object contentValue,
String filterValue) |
void |
setDayFormat(String dayFormat) |
void |
setMonthFormat(String monthFormat) |
void |
setRestrictFilterProperty(String restrictFilterProperty)
Sets the restricted filter properties
|
void |
setYearFormat(String yearFormat) |
search
buildMvelParameters, constructSearchResultObject, fetchAllPagesAssociatedWithType, sortResults
protected String dayFormat
protected String monthFormat
protected String yearFormat
protected String restrictFilterProperty
public ArchiveCollectionPageSearchProcessor()
public boolean isMatch(org.broadleafcommerce.common.page.dto.PageDTO dto, String filterProperty, Object contentValue, String filterValue)
isMatch
in class DefaultCollectionPageSearchProcessor
public String getRestrictFilterProperty()
public void setRestrictFilterProperty(String restrictFilterProperty)
public String getDayFormat()
public void setDayFormat(String dayFormat)
public String getMonthFormat()
public void setMonthFormat(String monthFormat)
public String getYearFormat()
public void setYearFormat(String yearFormat)
Copyright © 2020. All rights reserved.