public class FileNameRegexImportFilter extends Object implements ImportFilter
ImportFilter that filters out files and/or folders whose name, excluding
path, matches the configured regular expression.| Constructor and Description |
|---|
FileNameRegexImportFilter(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(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).ImportFilter.shouldFilter(org.alfresco.repo.bulkimport.ImportableItem)Copyright © 2005–2018 Alfresco Software. All rights reserved.