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
FieldsFields inherited from class org.craftercms.core.processors.impl.IncludeDescriptorsProcessor
contentStoreService, disabledIncludeNodeXPathQuery, includedItemsProcessor, includedItemsStack, includeElementXPathQuery, localeCodeXPathQuery, removeIncludeElement
-
Constructor Summary
Constructors -
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.craftercms.core.processors.ItemProcessor
isExclusive
-
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
-