org.alfresco.repo.bulkimport.importfilters
Class AndImportFilter

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

public class AndImportFilter
extends java.lang.Object
implements ImportFilter

This class provides an ImportFilter that only returns true if all of the configured ImportFilters return true.

Since:
4.0

Constructor Summary
AndImportFilter(ImportFilter left, ImportFilter right)
           
AndImportFilter(java.util.List filters)
           
 
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

AndImportFilter

public AndImportFilter(ImportFilter left,
                       ImportFilter right)

AndImportFilter

public AndImportFilter(java.util.List filters)
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.