Class BaseFilter

  • All Implemented Interfaces:
    Dumpable, Filter, ItemFilter

    public class BaseFilter
    extends java.lang.Object
    implements ItemFilter
    Implements an item filter that matches if a node only has the primary properties: jcr:primaryType, jcr:mixinTypes, jcr:uuid, jcr:created and jcr:createdBy
    • Field Summary

      • Fields inherited from interface org.apache.jackrabbit.vault.fs.api.ItemFilter

        ALL, NONE
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseFilter()  
    • 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​(Item item, int depth)
      Checks if the given item matches this filters criteria.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseFilter

        public BaseFilter()
    • Method Detail

      • matches

        public boolean matches​(Item item,
                               int depth)
                        throws 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 interface ItemFilter
        Parameters:
        item - the item to check
        depth - a relative depth.
        Returns:
        true if this filter matches the criteria; false otherwise.
        Throws:
        RepositoryException - if an error occurs.
      • dump

        public void dump​(DumpContext ctx,
                         boolean isLast)
        Dumps some human readable information using the given context.
        Specified by:
        dump in interface Dumpable
        Parameters:
        ctx - the dump context
        isLast - specifies if this is the last element to dump on this level