org.alfresco.repo.bulkimport.importfilters
Class FileNameRegexImportFilter

java.lang.Object
  extended by org.alfresco.repo.bulkimport.importfilters.FileNameRegexImportFilter
All Implemented Interfaces:
ImportFilter

public class FileNameRegexImportFilter
extends java.lang.Object
implements ImportFilter

This class is an ImportFilter that filters out files and/or folders whose name, excluding path, matches the configured regular expression.

Since:
4.0

Constructor Summary
FileNameRegexImportFilter(java.lang.String filenameRegex)
          Simple constructor for a FileNameRegexSourceFilter
 
Method Summary
 boolean shouldFilter(ImportableItem importableItem)
          Method that checks whether the given file or folder should be filtered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameRegexImportFilter

public FileNameRegexImportFilter(java.lang.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: ImportFilter
Method that checks whether the given file or folder should be filtered.

Specified by:
shouldFilter in interface ImportFilter
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:
org.alfresco.extension.bulkfilesystemimport.ImportFilter#shouldFilter(org.alfresco.extension.bulkfilesystemimport.ImportableItem)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.