Class PageAwareIncludeDescriptorsProcessor
java.lang.Object
org.craftercms.core.processors.impl.IncludeDescriptorsProcessor
org.craftercms.core.processors.impl.PageAwareIncludeDescriptorsProcessor
- All Implemented Interfaces:
ItemProcessor
Extension of
IncludeDescriptorsProcessor
that prevents pages from being included when
disablePageInclusion
is true.- Author:
- avasquez
-
Field Summary
Fields inherited from class org.craftercms.core.processors.impl.IncludeDescriptorsProcessor
contentStoreService, disabledIncludeNodeXPathQuery, includedItemsProcessor, includedItemsStack, includeElementXPathQuery, localeCodeXPathQuery, removeIncludeElement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isIncludeDisabled
(org.dom4j.Element includeElement) void
setDisablePageInclusion
(boolean disablePageInclusion) void
setPagesPathPattern
(String pagesPathPattern) Methods inherited from class org.craftercms.core.processors.impl.IncludeDescriptorsProcessor
doInclude, equals, getItemToInclude, hashCode, includeDescriptors, process, setContentStoreService, setDisabledIncludeNodeXPathQuery, setIncludedItemsProcessor, setIncludeElementXPathQuery, setLocaleCodeXPathQuery, setRemoveIncludeElement, toString
-
Field Details
-
disablePageInclusion
protected boolean disablePageInclusion -
pagesPathPattern
-
-
Constructor Details
-
PageAwareIncludeDescriptorsProcessor
public PageAwareIncludeDescriptorsProcessor()
-
-
Method Details
-
setPagesPathPattern
-
setDisablePageInclusion
public void setDisablePageInclusion(boolean disablePageInclusion) -
isIncludeDisabled
protected boolean isIncludeDisabled(org.dom4j.Element includeElement) - Overrides:
isIncludeDisabled
in classIncludeDescriptorsProcessor
-