Class PathFilterManager

java.lang.Object
org.duracloud.mill.ltp.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 Details

    • PathFilterManager

      public PathFilterManager()
  • Method Details

    • 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: