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.
|
java.util.List<PathFilterSet> getFilterSets()
java.util.List<PathFilterSet> getPropertyFilterSets()
PathFilterSet getCoveringFilterSet(java.lang.String path)
path - the pathnullImportMode getImportMode(java.lang.String path)
path - path to checkImportMode.REPLACE if the given path
is not covered by this filter.boolean contains(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(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(java.lang.String path)
path - the item to checktrue if the given item is an ancestorboolean isGloballyIgnored(java.lang.String path)
path - the path to check.true if the item is globally ignored.java.io.InputStream getSource()
java.lang.String getSourceAsString()
WorkspaceFilter translate(PathMapping mapping)
mapping - the path mappingvoid dumpCoverage(Node rootNode,
ProgressTrackerListener listener)
throws RepositoryException
rootNode - root nodelistener - listenerRepositoryException - if an error occursvoid dumpCoverage(Session session,
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 occurs"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"