public interface WorkspaceFilter extends Dumpable
WorkspaceFilter
...Modifier and Type | Method and Description |
---|---|
boolean |
contains(String path)
Checks if the given path is contained in this workspace filter.
|
boolean |
covers(String path)
Checks if the given path is covered in this workspace filter.
|
void |
dumpCoverage(javax.jcr.Node rootNode,
ProgressTrackerListener listener)
Dumps the coverage of this filter against the given node to the listener.
|
void |
dumpCoverage(javax.jcr.Session session,
ProgressTrackerListener listener,
boolean skipJcrContent)
Dumps the coverage of this filter using the given session.
|
PathFilterSet |
getCoveringFilterSet(String path)
Returns the filter set that covers the respective path
|
List<PathFilterSet> |
getFilterSets()
Returns a list of path filter sets.
|
ImportMode |
getImportMode(String path)
Returns the import mode for the given path.
|
InputStream |
getSource()
Returns the source xml that constructs this filter
|
String |
getSourceAsString()
Returns the source xml that constructs this filter
|
boolean |
isAncestor(String path)
Checks if the given path is an ancestor of any of the filter sets.
|
boolean |
isGloballyIgnored(String path)
Checks if the given path is globally ignored.
|
WorkspaceFilter |
translate(PathMapping mapping)
Translates this workspace filter using the given path mapping.
|
List<PathFilterSet> getFilterSets()
PathFilterSet getCoveringFilterSet(String path)
path
- the pathnull
ImportMode getImportMode(String path)
path
- path to checkImportMode.REPLACE
if the given path
is not covered by this filter.boolean contains(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(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(String path)
path
- the item to checktrue
if the given item is an ancestorboolean isGloballyIgnored(String path)
path
- the path to check.true
if the item is globally ignored.InputStream getSource()
String getSourceAsString()
WorkspaceFilter translate(PathMapping mapping)
mapping
- the path mappingvoid dumpCoverage(javax.jcr.Node rootNode, ProgressTrackerListener listener) throws javax.jcr.RepositoryException
rootNode
- root nodelistener
- listenerjavax.jcr.RepositoryException
- if an error occursvoid dumpCoverage(javax.jcr.Session session, ProgressTrackerListener listener, boolean skipJcrContent) throws javax.jcr.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 nodesjavax.jcr.RepositoryException
- if an error occursCopyright © 2015 The Apache Software Foundation. All Rights Reserved.