<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
 
<beans>

   <bean id="fileServersConfigSource" class="org.alfresco.config.source.UrlConfigSource">
      <constructor-arg>
         <list>
            <value>classpath:alfresco/file-servers.xml</value>
            <value>classpath:alfresco/extension/file-servers-custom.xml</value>
         </list>
      </constructor-arg>
   </bean>

   <bean id="fileServersConfigService" class="org.alfresco.config.xml.XMLConfigService" init-method="init">
      <constructor-arg>
         <ref bean="fileServersConfigSource" />
      </constructor-arg>
   </bean>

   <!-- File Server Configuration -->
   <bean id="fileServerConfigurationBase"
         abstract="true"
         destroy-method="closeConfiguration">
      <property name="authenticationManager">
         <ref bean="authenticationManager"/>
      </property>
      <property name="authenticationService">
         <ref bean="authenticationService"/>
      </property>
      <property name="authenticationComponent">
         <ref bean="authenticationComponent"/>
      </property>
      <property name="nodeService">
         <ref bean="nodeService"/>
      </property>
      <property name="personService">
         <ref bean="personService"/>
      </property>
      <property name="transactionService">
         <ref bean="transactionComponent"/>
      </property>
      <property name="diskInterface">
         <ref bean="contentDiskDriver"/>
      </property>
   </bean>
   
   <!-- Filesystem Interface -->
   <bean id="contentDiskDriver" class="org.alfresco.filesys.smb.server.repo.ContentDiskDriver" >
         <constructor-arg>
            <ref bean="cifsHelper" />
         </constructor-arg>
         <property name="transactionService"><ref bean="transactionComponent" /></property>
         <property name="nodeService"><ref bean="NodeService" /></property>
         <property name="searchService"><ref bean="SearchService" /></property>
         <property name="namespaceService"><ref bean="namespaceService" /></property>
         <property name="contentService"><ref bean="ContentService" /></property>
         <property name="permissionService"><ref bean="permissionService"/></property>
         <property name="authenticationComponent"><ref bean="authenticationComponent"/></property>
	     <property name="checkInOutService"><ref bean="checkOutCheckInService"/></property>
   </bean>
   
   <bean id="cifsHelper" class="org.alfresco.filesys.smb.server.repo.CifsHelper">
      <property name="dictionaryService"><ref bean="dictionaryService" /></property>
      <property name="nodeService"><ref bean="NodeService" /></property>
      <property name="fileFolderService"><ref bean="FileFolderService" /></property>
      <property name="mimetypeService"><ref bean="mimetypeService" /></property>
      <property name="permissionService"><ref bean="permissionService"/></property>
      <property name="allowWrites"><value>${server.transaction.allow-writes}</value></property>
   </bean>
   
</beans>