public interface WorkspaceFilter extends Dumpable
WorkspaceFilter defined a filter for items (node or property).| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String path)
Checks if the given node path is contained in this workspace filter.
|
boolean |
covers(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(String path)
Returns the filter set that covers the respective node path
|
List<PathFilterSet> |
getFilterSets()
Returns a list of path filter sets for node items.
|
ImportMode |
getImportMode(String path)
Returns the import mode for the given node path.
|
List<PathFilterSet> |
getPropertyFilterSets()
Returns a list of path filter sets for property items.
|
InputStream |
getSource()
Returns the source xml that constructs this filter
It is the obligation of the caller to close the returned input stream.
|
String |
getSourceAsString()
Returns the source xml that constructs this filter
|
boolean |
isAncestor(String path)
Checks if the given node path is an ancestor of any of the filter sets.
|
boolean |
isGloballyIgnored(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 List<PathFilterSet> getFilterSets()
@Nonnull List<PathFilterSet> getPropertyFilterSets()
@Nullable PathFilterSet getCoveringFilterSet(@Nonnull String path)
path - the pathnull@Nonnull ImportMode getImportMode(@Nonnull String path)
path - path to checkImportMode.REPLACE if the given path
is not covered by this filter.boolean contains(@Nonnull 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 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 String path)
path - the item to checktrue if the given item is an ancestorboolean isGloballyIgnored(@Nonnull String path)
path - the path to check.true if the item is globally ignored.@Nonnull InputStream getSource()
@Nonnull 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