public abstract class ConditionalExecution extends Object
| Constructor and Description |
|---|
ConditionalExecution()
Initializes an instance of this class.
|
ConditionalExecution(AbstractFilter.ExecutionCondition... conditions)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(AbstractFilter.ExecutionCondition condition)
Adds the specified condition for this filter.
|
void |
addCondition(int index,
AbstractFilter.ExecutionCondition condition)
Adds the specified condition for this filter at the specified position.
|
boolean |
areConditionsMatched(RenderContext renderContext,
Resource resource) |
String |
getConditionsSummary()
Returns a text-based representation of filter conditions.
|
void |
setApplyOnConfigurations(String configurations)
Comma-separated list of resource configuration this filter will be executed for
(all others are skipped).
|
void |
setApplyOnEditMode(Boolean applyOnEditMode)
Apply this filter if RenderContext isEditMode method call return true.
|
void |
setApplyOnMainResource(boolean bool)
If set to
true, the current filter will only be executed on
the main resource. |
void |
setApplyOnModes(String modes)
Comma-separated list of modes this filter will be executed for
(all others are skipped).
|
void |
setApplyOnModules(String modules)
Comma-separated list of module names this filter will be executed for
(all others are skipped).
|
void |
setApplyOnNodeTypes(String nodeTypes)
Comma-separated list of node type names this filter will be executed for
(all others are skipped).
|
void |
setApplyOnSiteTemplateSets(String templateSets)
Comma-separated list of template set names this filter will be executed for (all others are skipped).
|
void |
setApplyOnTemplates(String templates)
Comma-separated list of template names this filter will be executed for
(all others are skipped).
|
void |
setApplyOnTemplateTypes(String templateTypes)
Comma-separated list of template type names this filter will be executed
for (all others are skipped).
|
void |
setConditions(Set<AbstractFilter.ExecutionCondition> conditions)
Adds specified conditions to the list of filter conditions.
|
void |
setSkipOnAjaxRequest(Boolean skip) |
void |
setSkipOnConfiguration(String configurations)
Deprecated.
|
void |
setSkipOnConfigurations(String configurations)
Comma-separated list of configuration names this filter won't be executed
for.
|
void |
setSkipOnEditMode(Boolean skipOnEditMode)
Skip this filter if RenderContext isEditMode method call return false.
|
void |
setSkipOnMainResource(boolean bool)
If set to
true, the current filter won't be executed on main resources. |
void |
setSkipOnModes(String modes)
Comma-separated list of mode names this filter won't be executed
for.
|
void |
setSkipOnModules(String modules)
Comma-separated list of module names this filter won't be executed for.
|
void |
setSkipOnNodeTypes(String nodeTypes)
Comma-separated list of node type names this filter won't be executed
for.
|
void |
setSkipOnTemplates(String templates)
Comma-separated list of template names this filter won't be executed for.
|
void |
setSkipOnTemplateTypes(String templateTypes)
Comma-separated list of template type names this filter won't be executed
for.
|
void |
setSkipOnWebflowRequest(Boolean skipOnWebflowRequest)
Skip this filter if the render chain is processing a Webflow request.
|
public ConditionalExecution()
public ConditionalExecution(AbstractFilter.ExecutionCondition... conditions)
conditions - the execution conditions to be matched.public void addCondition(AbstractFilter.ExecutionCondition condition)
condition - the condition to be added for this filterpublic void addCondition(int index,
AbstractFilter.ExecutionCondition condition)
condition - the condition to be added for this filterpublic boolean areConditionsMatched(RenderContext renderContext, Resource resource)
public String getConditionsSummary()
public void setApplyOnConfigurations(String configurations)
configurations - comma-separated list of configurations this filter will
be executed for (all others are skipped)public void setApplyOnMainResource(boolean bool)
true, the current filter will only be executed on
the main resource.bool - set to true to limit filter execution for main
resource only.public void setApplyOnModes(String modes)
modes - comma-separated list of modes this filter will
be executed for (all others are skipped)public void setApplyOnEditMode(Boolean applyOnEditMode)
applyOnEditMode - true to apply this configurationpublic void setApplyOnModules(String modules)
modules - comma-separated list of module names this filter will be
executed for (all others are skipped)public void setApplyOnNodeTypes(String nodeTypes)
nodeTypes - comma-separated list of node type names this filter will
be executed for (all others are skipped)public void setApplyOnTemplates(String templates)
templates - comma-separated list of template names this filter will
be executed for (all others are skipped)public void setApplyOnTemplateTypes(String templateTypes)
templateTypes - comma-separated list of template type names this filter
will be executed for (all others are skipped)public void setApplyOnSiteTemplateSets(String templateSets)
templateSets - comma-separated list of template type names this filter will be executed for (all others are skipped)public void setConditions(Set<AbstractFilter.ExecutionCondition> conditions)
conditions - list of conditions to be added for this filterpublic void setSkipOnAjaxRequest(Boolean skip)
@Deprecated public void setSkipOnConfiguration(String configurations)
public void setSkipOnConfigurations(String configurations)
configurations - comma-separated list of node type names this filter
won't be executed forpublic void setSkipOnMainResource(boolean bool)
true, the current filter won't be executed on main resources.bool - set to true to prevent filter from executing on main modulepublic void setSkipOnModes(String modes)
modes - comma-separated list of node type names this filter
won't be executed forpublic void setSkipOnEditMode(Boolean skipOnEditMode)
skipOnEditMode - true to apply this configurationpublic void setSkipOnModules(String modules)
modules - comma-separated list of module names this filter won't be
executed forpublic void setSkipOnNodeTypes(String nodeTypes)
nodeTypes - comma-separated list of node type names this filter
won't be executed forpublic void setSkipOnTemplates(String templates)
templates - comma-separated list of template names this filter won't
be executed forpublic void setSkipOnTemplateTypes(String templateTypes)
templateTypes - comma-separated list of template type names this
filter won't be executed forpublic void setSkipOnWebflowRequest(Boolean skipOnWebflowRequest)
skipOnWebflowRequest - true to apply this configurationCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.