Class PathFilterManager


  • public class PathFilterManager
    extends Object
    This class allows users to flexibly include and exclude accounts, stores and spaces in various looping task production contexts. The include and exclude patterns must follow this pattern: /(account|*)/(store|*)/(spaceId|*). Inclusions are checked before exclusions. If no inclusions are specified, everything that is not excluded is assumed to be included.
    Author:
    Daniel Bernstein Date: May 5, 2014
    • Constructor Detail

      • PathFilterManager

        public PathFilterManager()
    • Method Detail

      • setExclusions

        public void setExclusions​(File file)
        Parameters:
        file -
      • setInclusions

        public void setInclusions​(File file)
        Parameters:
        file -
      • isExcluded

        public boolean isExcluded​(String path)
        Returns true if the path is included and not excluded. A path is included if the inclusions list is null or empty or the path matches an item in the list.
        Parameters:
        path -
        Returns: