Class FileFolderNodeFilter

  • All Implemented Interfaces:
    Dumpable, Filter, ItemFilter

    public class FileFolderNodeFilter
    extends DepthItemFilter
    Defines an filter that matches file/folder like nodes. It matches all nt:hierarchyNode nodes that have or define a jcr:content child node.
    • Constructor Detail

      • FileFolderNodeFilter

        public FileFolderNodeFilter()
    • Method Detail

      • matches

        public boolean matches​(Item item)
                        throws RepositoryException
        Returns true. Subclasses can override to implement something useful that is dependant of the depth. Returns true if the item is a node of type nt:hierarchyNode that has or defines a 'jcr:content' child node.
        matches in class DepthItemFilter
        item - the item to match
        true if the item matches; false otherwise.
        RepositoryException - if an error occurs.