Class NtFilePredicate
java.lang.Object
org.apache.jackrabbit.commons.predicate.NtFilePredicate
- All Implemented Interfaces:
Predicate
The nt file item filter matches all properties that are defined my the
nt:file or nt:resource nodetype. 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates the predicate for the given object.booleanReturns theignore encodingflag.booleanReturns theignore mime typeflag.
-
Field Details
-
NT_FILE
- See Also:
-
NT_HIERARCHYNODE
- See Also:
-
NT_RESOURCE
- See Also:
-
JCR_CONTENT
- See Also:
-
JCR_ENCODING
- See Also:
-
JCR_MIMETYPE
- See Also:
-
JCR_PRIMARY_TYPE
- See Also:
-
-
Constructor Details
-
NtFilePredicate
public NtFilePredicate() -
NtFilePredicate
public NtFilePredicate(boolean ignoreEncoding, boolean ignoreMimeType)
-
-
Method Details
-
isIgnoreEncoding
public boolean isIgnoreEncoding()Returns theignore encodingflag.- Returns:
- the
ignore encodingflag.
-
isIgnoreMimeType
public boolean isIgnoreMimeType()Returns theignore mime typeflag.- Returns:
- the
ignore mime typeflag.
-
evaluate
Description copied from interface:PredicateEvaluates the predicate for the given object.
-