public class OakEventFilterImpl extends OakEventFilter
Constructor and Description |
---|
OakEventFilterImpl(JackrabbitEventFilter delegate) |
public OakEventFilterImpl(@Nonnull JackrabbitEventFilter delegate)
public String getAbsPath()
getAbsPath
in class JackrabbitEventFilter
public JackrabbitEventFilter setAbsPath(String absPath)
setAbsPath
in class JackrabbitEventFilter
public String[] getAdditionalPaths()
getAdditionalPaths
in class JackrabbitEventFilter
public JackrabbitEventFilter setAdditionalPaths(String... absPaths)
setAdditionalPaths
in class JackrabbitEventFilter
public int getEventTypes()
getEventTypes
in class JackrabbitEventFilter
public JackrabbitEventFilter setEventTypes(int eventTypes)
setEventTypes
in class JackrabbitEventFilter
public String[] getExcludedPaths()
getExcludedPaths
in class JackrabbitEventFilter
public JackrabbitEventFilter setExcludedPaths(String... excludedPaths)
setExcludedPaths
in class JackrabbitEventFilter
public String[] getIdentifiers()
getIdentifiers
in class JackrabbitEventFilter
public JackrabbitEventFilter setIdentifiers(String[] identifiers)
setIdentifiers
in class JackrabbitEventFilter
public boolean getIsDeep()
getIsDeep
in class JackrabbitEventFilter
public JackrabbitEventFilter setIsDeep(boolean isDeep)
setIsDeep
in class JackrabbitEventFilter
public String[] getNodeTypes()
getNodeTypes
in class JackrabbitEventFilter
public JackrabbitEventFilter setNodeTypes(String[] nodeTypeNames)
setNodeTypes
in class JackrabbitEventFilter
public boolean getNoExternal()
getNoExternal
in class JackrabbitEventFilter
public JackrabbitEventFilter setNoExternal(boolean noExternal)
setNoExternal
in class JackrabbitEventFilter
public boolean getNoInternal()
getNoInternal
in class JackrabbitEventFilter
public JackrabbitEventFilter setNoInternal(boolean noInternal)
setNoInternal
in class JackrabbitEventFilter
public boolean getNoLocal()
getNoLocal
in class JackrabbitEventFilter
public JackrabbitEventFilter setNoLocal(boolean noLocal)
setNoLocal
in class JackrabbitEventFilter
public OakEventFilter withApplyNodeTypeOnSelf()
OakEventFilter
Note that this is an 'either/or' thing: either the node type is applied on the parent (default) or on 'self/this' (via this switch) but not both.
Also note that this is independent from the nodeTypeAggregate, and will only be applied to the (main) node types set on this filter, not on the nodeTypeAggregate's node types.
withApplyNodeTypeOnSelf
in class OakEventFilter
public OakEventFilter withIncludeAncestorsRemove()
OakEventFilter
deep/!deep
flag too)
/
*.jsp results in additional
deep NODE_REMOVED filter on /a, /a/b and /a/b/** /
*.jsp)
it adds a deep NODE_REMOVED filter explicitly for that path
using the same method as withIncludeSubtreeOnRemove does, but only
limited to said path. So in this case you get a NODE_REMOVED
for all *.jsp that are deleted in a subtree individuallyNote that unlike 'normal' include and exclude paths, this variant doesn't apply Oak's NamePathMapper on the ancestors of the registers paths.
Also note that this might disable 'observation prefiltering based on paths' (OAK-4796) on this listener.
withIncludeAncestorsRemove
in class OakEventFilter
public org.apache.jackrabbit.oak.plugins.observation.filter.FilterBuilder.Condition wrapMainCondition(org.apache.jackrabbit.oak.plugins.observation.filter.FilterBuilder.Condition mainCondition, org.apache.jackrabbit.oak.plugins.observation.filter.FilterBuilder filterBuilder, org.apache.jackrabbit.oak.plugins.observation.filter.PermissionProviderFactory permissionProviderFactory)
public OakEventFilter withIncludeSubtreeOnRemove()
OakEventFilter
It is only applied when a parent node is actually removed. For a parent node move this is not applied.
withIncludeSubtreeOnRemove
in class OakEventFilter
public OakEventFilter withIncludeGlobPaths(String... globPaths)
OakEventFilter
The definition of a glob path is here
Note that unlike 'normal' include and exclude paths, this variant doesn't apply Oak's NamePathMapper.
This filter property is added in 'or' mode.
withIncludeGlobPaths
in class OakEventFilter
globPaths
- glob paths that should be added as include path pattern. Note
that the NamePathMapper is not applied on these globPaths.public org.apache.jackrabbit.oak.plugins.observation.filter.FilterBuilder builder()
public OakEventFilterImpl aggregator(org.apache.jackrabbit.oak.plugins.observation.filter.EventAggregator aggregator)
public org.apache.jackrabbit.oak.plugins.observation.filter.FilterBuilder.Condition getAdditionalIncludeConditions(Set<String> includePaths)
public org.apache.jackrabbit.oak.plugins.observation.filter.EventAggregator getAggregator()
public OakEventFilter withNodeTypeAggregate(String[] nodeTypes, String[] relativeGlobPaths)
OakEventFilter
Note that unlike 'normal' include and exclude paths, this variant doesn't apply Oak's NamePathMapper.
This filter property is added in 'and' mode.
withNodeTypeAggregate
in class OakEventFilter
nodeTypes
- note that these nodeTypes are not mapped to oak nor validatedrelativeGlobPaths
- glob paths that are added to the set of include paths.
To match the node with the desired node type itself, add
an empty String ("") as one of the relativeGlobPaths too.
Note that Oak's NamePathMapper is not applied to these relativeGlobPaths.Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.