public class FileNameRegexImportFilter extends java.lang.Object implements ImportFilter
ImportFilter that filters out files and/or folders whose name, excluding
path, matches the configured regular expression.| Constructor and Description |
|---|
FileNameRegexImportFilter(java.lang.String filenameRegex)
Simple constructor for a FileNameRegexSourceFilter
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldFilter(ImportableItem importableItem)
Method that checks whether the given file or folder should be filtered.
|
public FileNameRegexImportFilter(java.lang.String filenameRegex)
filenameRegex - The regex to use to match against file and folder names (must not be null).public boolean shouldFilter(ImportableItem importableItem)
ImportFiltershouldFilter in interface ImportFilterimportableItem - The source importable item to check for filtering (will not be null).org.alfresco.extension.bulkfilesystemimport.ImportFilter#shouldFilter(org.alfresco.extension.bulkfilesystemimport.ImportableItem)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.