public interface WorkspaceFilter extends Dumpable
WorkspaceFilter
defined a filter for items (node or property).Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String path)
Checks if the given node path is contained in this workspace filter.
|
boolean |
covers(java.lang.String path)
Checks if the given node path is covered in this workspace filter.
|
void |
dumpCoverage(Node rootNode,
ProgressTrackerListener listener)
Dumps the coverage of this filter against the given node to the listener.
|
void |
dumpCoverage(Session session,
ProgressTrackerListener listener,
boolean skipJcrContent)
Dumps the coverage of this filter using the given session.
|
PathFilterSet |
getCoveringFilterSet(java.lang.String path)
Returns the filter set that covers the respective node path
|
java.util.List<PathFilterSet> |
getFilterSets()
Returns a list of path filter sets for node items.
|
ImportMode |
getImportMode(java.lang.String path)
Returns the import mode for the given node path.
|
java.util.List<PathFilterSet> |
getPropertyFilterSets()
Returns a list of path filter sets for property items.
|
java.io.InputStream |
getSource()
Returns the source xml that constructs this filter
|
java.lang.String |
getSourceAsString()
Returns the source xml that constructs this filter
|
boolean |
isAncestor(java.lang.String path)
Checks if the given node path is an ancestor of any of the filter sets.
|
boolean |
isGloballyIgnored(java.lang.String path)
Checks if the given node path is globally ignored.
|
WorkspaceFilter |
translate(PathMapping mapping)
Translates this workspace filter using the given path mapping.
|
@Nonnull java.util.List<PathFilterSet> getFilterSets()
@Nonnull java.util.List<PathFilterSet> getPropertyFilterSets()
@Nullable PathFilterSet getCoveringFilterSet(@Nonnull java.lang.String path)
path
- the pathnull
@Nonnull ImportMode getImportMode(@Nonnull java.lang.String path)
path
- path to checkImportMode.REPLACE
if the given path
is not covered by this filter.boolean contains(@Nonnull java.lang.String path)
true
if any of the filter sets contain the path
and it's not globally ignored.path
- to checktrue
if the given path is included in this filter.boolean covers(@Nonnull java.lang.String path)
true
if at least one of the sets covers
the path and is not globally ignored.path
- the pathto checktrue
if the given path is covered by this filter.boolean isAncestor(@Nonnull java.lang.String path)
path
- the item to checktrue
if the given item is an ancestorboolean isGloballyIgnored(@Nonnull java.lang.String path)
path
- the path to check.true
if the item is globally ignored.@Nonnull java.io.InputStream getSource()
@Nonnull java.lang.String getSourceAsString()
@Nonnull WorkspaceFilter translate(@Nullable PathMapping mapping)
mapping
- the path mappingvoid dumpCoverage(@Nonnull Node rootNode, @Nonnull ProgressTrackerListener listener) throws RepositoryException
rootNode
- root nodelistener
- listenerRepositoryException
- if an error occursvoid dumpCoverage(@Nonnull Session session, @Nonnull ProgressTrackerListener listener, boolean skipJcrContent) throws RepositoryException
skipJcrContent
is true
the jcr:content nodes are excluded from traversal and reporting.session
- sessionlistener
- listener to report progressskipJcrContent
- true
to skip jcr:content nodesRepositoryException
- if an error occursCopyright © 2010 - 2020 Adobe. All Rights Reserved