amp/src/main/amp/config/alfresco/module/org.alfresco.extension.alfresco-bulk-import/context/filesystem-source-context.xml
<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd">
<!-- DO NOT MODIFY OR OVERRIDE ANYTHING DEFINED IN THIS FILE, UNLESS OTHERWISE NOTED! -->
<!-- This file contains the private bean definitions for the filesystem bulk import source. -->
<!-- Filesystem source -->
<bean id="bit.fs.source"
class="org.alfresco.extension.bulkimport.source.fs.FilesystemBulkImportSource">
<constructor-arg index="0" ref="bit.status" />
<constructor-arg index="1" ref="bit.fs.directory-analyser" />
<constructor-arg index="2" ref="fileContentStore" />
<constructor-arg index="3" ref="bit.fs.source.import-filters" />
</bean>
<!-- Directory Analyser -->
<bean id="bit.fs.directory-analyser"
class="org.alfresco.extension.bulkimport.source.fs.DirectoryAnalyser">
<constructor-arg index="0" ref="ServiceRegistry" />
<constructor-arg index="1" ref="fileContentStore" />
<constructor-arg index="2" ref="bit.fs.metadata-loader" />
</bean>
<!-- Metadata loader -->
<bean id="bit.fs.metadata-loader"
class="org.alfresco.extension.bulkimport.source.fs.XmlPropertiesFileMetadataLoader">
<constructor-arg index="0" ref="ServiceRegistry" />
<constructor-arg index="1" value="${alfresco-bulk-import.source.filesystem.multi-value-separator}" />
</bean>
<!-- List of import filters - may be overridden in an extension Spring context.
By default we filter:
* all hidden files (note: the definition of "hidden" depends on the OS - see http://docs.oracle.com/javase/8/docs/api/java/io/File.html#isHidden() for details).
* all files that begin with a "." (this is for the benefit of those on Windows - on Unix-like OSes these should have been filtered by the hidden file filter already).
-->
<util:list id="bit.fs.source.import-filters">
<bean class="org.alfresco.extension.bulkimport.source.fs.importfilters.HiddenFileFilter" />
<bean class="org.alfresco.extension.bulkimport.source.fs.importfilters.FileNameRegexImportFilter">
<constructor-arg index="0" value="\..*" />
</bean>
</util:list>
</beans>