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.
        Overrides:
        matches in class DepthItemFilter
        Parameters:
        item - the item to match
        Returns:
        true if the item matches; false otherwise.
        Throws:
        RepositoryException - if an error occurs.