Class NtFileItemFilter
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.filter.NtFileItemFilter
-
- All Implemented Interfaces:
Dumpable
,Filter
,ItemFilter
public class NtFileItemFilter extends Object implements ItemFilter
The nt file item filter matches all properties that are defined my the nt:file or nt:resource node type. the later only, if the respective nodes name is 'jcr:content'. Additionally the properties 'jcr:encoding' can be configured to be excluded.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.vault.fs.api.ItemFilter
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description NtFileItemFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(DumpContext ctx, boolean isLast)
Dumps some human readable information using the given context.boolean
matches(javax.jcr.Item item, int depth)
Checks if the given item matches this filters criteria.
-
-
-
Method Detail
-
matches
public boolean matches(javax.jcr.Item item, int depth) throws javax.jcr.RepositoryException
Checks if the given item matches this filters criteria. The given depth is relative to some invoker related depth and may not reflect the hierarchical depth of the item in the repository. It up to the implementation how to deal with this value.- Specified by:
matches
in interfaceItemFilter
- Parameters:
item
- the item to checkdepth
- a relative depth.- Returns:
true
if the item is a nt:file or nt:resource property- Throws:
javax.jcr.RepositoryException
- if an error occurs.
-
dump
public void dump(DumpContext ctx, boolean isLast)
Dumps some human readable information using the given context.
-
-