public class OakEventFilterImpl extends OakEventFilter
| Constructor and Description |
|---|
OakEventFilterImpl(JackrabbitEventFilter delegate) |
public OakEventFilterImpl(@Nonnull JackrabbitEventFilter delegate)
public String getAbsPath()
getAbsPath in class JackrabbitEventFilterpublic JackrabbitEventFilter setAbsPath(String absPath)
setAbsPath in class JackrabbitEventFilterpublic String[] getAdditionalPaths()
getAdditionalPaths in class JackrabbitEventFilterpublic JackrabbitEventFilter setAdditionalPaths(String... absPaths)
setAdditionalPaths in class JackrabbitEventFilterpublic int getEventTypes()
getEventTypes in class JackrabbitEventFilterpublic JackrabbitEventFilter setEventTypes(int eventTypes)
setEventTypes in class JackrabbitEventFilterpublic String[] getExcludedPaths()
getExcludedPaths in class JackrabbitEventFilterpublic JackrabbitEventFilter setExcludedPaths(String... excludedPaths)
setExcludedPaths in class JackrabbitEventFilterpublic String[] getIdentifiers()
getIdentifiers in class JackrabbitEventFilterpublic JackrabbitEventFilter setIdentifiers(String[] identifiers)
setIdentifiers in class JackrabbitEventFilterpublic boolean getIsDeep()
getIsDeep in class JackrabbitEventFilterpublic JackrabbitEventFilter setIsDeep(boolean isDeep)
setIsDeep in class JackrabbitEventFilterpublic String[] getNodeTypes()
getNodeTypes in class JackrabbitEventFilterpublic JackrabbitEventFilter setNodeTypes(String[] nodeTypeNames)
setNodeTypes in class JackrabbitEventFilterpublic boolean getNoExternal()
getNoExternal in class JackrabbitEventFilterpublic JackrabbitEventFilter setNoExternal(boolean noExternal)
setNoExternal in class JackrabbitEventFilterpublic boolean getNoInternal()
getNoInternal in class JackrabbitEventFilterpublic JackrabbitEventFilter setNoInternal(boolean noInternal)
setNoInternal in class JackrabbitEventFilterpublic boolean getNoLocal()
getNoLocal in class JackrabbitEventFilterpublic JackrabbitEventFilter setNoLocal(boolean noLocal)
setNoLocal in class JackrabbitEventFilterpublic OakEventFilter withApplyNodeTypeOnSelf()
OakEventFilterNote 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 OakEventFilterpublic OakEventFilter withIncludeAncestorsRemove()
OakEventFilterdeep/!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 OakEventFilterpublic 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()
OakEventFilterIt is only applied when a parent node is actually removed. For a parent node move this is not applied.
withIncludeSubtreeOnRemove in class OakEventFilterpublic OakEventFilter withIncludeGlobPaths(String... globPaths)
OakEventFilterThe 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 OakEventFilterglobPaths - 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)
OakEventFilterNote 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 OakEventFilternodeTypes - 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–2018 The Apache Software Foundation. All rights reserved.