Class FilterByNodeRootPaths

  • All Implemented Interfaces:
    FilterBy

    public class FilterByNodeRootPaths
    extends Object
    implements FilterBy
    Filters resources by node root paths. Only resource matching or starting with the root paths are accepted
    Author:
    Dries Vanbilloen
    • Constructor Detail

      • FilterByNodeRootPaths

        public FilterByNodeRootPaths​(List<String> rootPaths)
        Constructor
        Parameters:
        rootPaths - list of root paths
    • Method Detail

      • filter

        public boolean filter​(@Nonnull
                              org.apache.sling.api.resource.Resource resource,
                              @Nonnull
                              StringBuilder output)
        Description copied from interface: FilterBy
        Checks if the given resource matches the filter criteria.
        Specified by:
        filter in interface FilterBy
        Parameters:
        resource - resource
        output - output buffer
        Returns:
        matches