Package org.duracloud.mill.ltp
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 Summary
Constructors Constructor Description PathFilterManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisExcluded(String path)Returns true if the path is included and not excluded.voidsetExclusions(File file)voidsetInclusions(File file)
-
-
-
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:
-
-