Class FileNameRegexImportFilter
- java.lang.Object
-
- org.alfresco.repo.bulkimport.importfilters.FileNameRegexImportFilter
-
- All Implemented Interfaces:
ImportFilter
public class FileNameRegexImportFilter extends Object implements ImportFilter
This class is anImportFilterthat filters out files and/or folders whose name, excluding path, matches the configured regular expression.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description FileNameRegexImportFilter(String filenameRegex)Simple constructor for a FileNameRegexSourceFilter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldFilter(ImportableItem importableItem)Method that checks whether the given file or folder should be filtered.
-
-
-
Constructor Detail
-
FileNameRegexImportFilter
public FileNameRegexImportFilter(String filenameRegex)
Simple constructor for a FileNameRegexSourceFilter- Parameters:
filenameRegex- The regex to use to match against file and folder names (must not be null).
-
-
Method Detail
-
shouldFilter
public boolean shouldFilter(ImportableItem importableItem)
Description copied from interface:ImportFilterMethod that checks whether the given file or folder should be filtered.- Specified by:
shouldFilterin interfaceImportFilter- Parameters:
importableItem- The source importable item to check for filtering (will not be null).- Returns:
- True if the given importable item should be filtered, false otherwise.
- See Also:
ImportFilter.shouldFilter(org.alfresco.repo.bulkimport.ImportableItem)
-
-