Class TemplatePageFilter

java.lang.Object
com.day.cq.wcm.api.PageFilter
io.wcm.wcm.commons.filter.TemplatePageFilter
All Implemented Interfaces:
com.day.cq.commons.Filter<com.day.cq.wcm.api.Page>

@ProviderType public final class TemplatePageFilter extends com.day.cq.wcm.api.PageFilter
Extension of PageFilter allowing usage of TemplatePathInfo.
  • Constructor Details

    • TemplatePageFilter

      public TemplatePageFilter(@NotNull @NotNull TemplatePathInfo @NotNull ... templates)
      Parameters:
      templates - The templates to be included
    • TemplatePageFilter

      public TemplatePageFilter(boolean includeInvalid, boolean includeHidden, @NotNull @NotNull TemplatePathInfo @NotNull ... templates)
      Parameters:
      includeInvalid - if true invalid pages are included.
      includeHidden - if true hidden pages are included.
      templates - The templates to be included
  • Method Details

    • includes

      public boolean includes(com.day.cq.wcm.api.Page page)
      Specified by:
      includes in interface com.day.cq.commons.Filter<com.day.cq.wcm.api.Page>
      Overrides:
      includes in class com.day.cq.wcm.api.PageFilter