Class PageAwareIncludeDescriptorsProcessor

java.lang.Object
org.craftercms.core.processors.impl.IncludeDescriptorsProcessor
org.craftercms.core.processors.impl.PageAwareIncludeDescriptorsProcessor
All Implemented Interfaces:
ItemProcessor

public class PageAwareIncludeDescriptorsProcessor extends IncludeDescriptorsProcessor
Extension of IncludeDescriptorsProcessor that prevents pages from being included when disablePageInclusion is true.
Author:
avasquez
  • Field Details

    • disablePageInclusion

      protected boolean disablePageInclusion
    • pagesPathPattern

      protected String pagesPathPattern
  • Constructor Details

    • PageAwareIncludeDescriptorsProcessor

      public PageAwareIncludeDescriptorsProcessor()
  • Method Details

    • setPagesPathPattern

      public void setPagesPathPattern(String pagesPathPattern)
    • setDisablePageInclusion

      public void setDisablePageInclusion(boolean disablePageInclusion)
    • isIncludeDisabled

      protected boolean isIncludeDisabled(org.dom4j.Element includeElement)
      Overrides:
      isIncludeDisabled in class IncludeDescriptorsProcessor