Package org.duracloud.mill.ltp
Class PathFilterManager
java.lang.Object
org.duracloud.mill.ltp.PathFilterManager
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanisExcluded(String path) Returns true if the path is included and not excluded.voidsetExclusions(File file) voidsetInclusions(File file)
-
Constructor Details
-
PathFilterManager
public PathFilterManager()
-
-
Method Details
-
setExclusions
- Parameters:
file-
-
setInclusions
- Parameters:
file-
-
isExcluded
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:
-