Class 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 Details

    • dayFormat

      protected String dayFormat
    • monthFormat

      protected String monthFormat
    • yearFormat

      protected String yearFormat
    • restrictFilterProperty

      protected String 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:
      isMatch in class DefaultCollectionPageSearchProcessor
    • getRestrictFilterProperty

      public String getRestrictFilterProperty()
      Gets the restricted filter properties
    • setRestrictFilterProperty

      public void setRestrictFilterProperty(String restrictFilterProperty)
      Sets the restricted filter properties
    • getDayFormat

      public String getDayFormat()
    • setDayFormat

      public void setDayFormat(String dayFormat)
    • getMonthFormat

      public String getMonthFormat()
    • setMonthFormat

      public void setMonthFormat(String monthFormat)
    • getYearFormat

      public String getYearFormat()
    • setYearFormat

      public void setYearFormat(String yearFormat)