+++ /dev/null
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
-http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
-
- <bean id="vidocProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="locations" >
- <list>
- <value>classpath:db.properties</value>
- <value>classpath:config.properties</value>
- <value>classpath:ldap.properties</value>
- </list>
- </property>
- <!-- Allow other PropertyPlaceholderConfigurer to run as well -->
- <property name="ignoreUnresolvablePlaceholders" value="true" />
- </bean>
-
- <!-- MODIF pour ANO MultiThreading
- <bean id="dataSource"
- class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
- <property name="driverClass" value="${jdbc.driver}" />
- <property name="url" value="${jdbc.url}" />
- <property name="username" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- </bean>
-
- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
- <property name="driverClassName" value="${jdbc.driver}" />
- <property name="url" value="${jdbc.url}" />
- <property name="username" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- <property name="defaultAutoCommit" value="false" />
- <property name="maxActive" value="100" />
- </bean> -->
-
- <bean id="dataSource"
- class="com.mchange.v2.c3p0.ComboPooledDataSource">
- <property name="driverClass" value="${jdbc.driver}" />
- <property name="jdbcUrl" value="${jdbc.url}" />
- <property name="user" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- <property name="initialPoolSize" value="3" />
- <property name="minPoolSize" value="5" />
- <property name="maxPoolSize" value="1000" />
- </bean>
-
- <bean id="transactionManager"
- class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
- <property name="dataSource" ref="dataSource" />
- </bean>
-
- <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
- <property name="dataSource" ref="dataSource" />
- <property name="transactionManager" ref="transactionManager" />
- <property name="databaseSchemaUpdate" value="true" />
- <property name="mailServerHost" value="${mailServerHost}" />
- <property name="mailServerPort" value="${mailServerPort}" />
- <property name="mailServerDefaultFrom" value="${mailServerDefaultFrom}" />
- <property name="jobExecutorActivate" value="false" />
- <property name="customFormTypes">
- <list>
- <bean class="fr.mbdx.explorer.form.LinkFormType"/>
- <bean class="fr.mbdx.explorer.form.VisaAssigneeFormType"/>
- </list>
- </property>
-
- <!-- AJOUT BULL : Gestion du LDAP -->
- <property name="configurators">
- <list>
- <bean class="org.activiti.ldap.LDAPConfigurator">
- <!-- Server connection params -->
- <property name="server" value="${ldap.server.url}" />
- <property name="port" value="${ldap.server.port}" />
- <property name="user" value="${ldap.server.access.user}" />
- <property name="password" value="${ldap.server.access.credentials}" />
-
- <!-- Configuration necessaire pour synchro AD -->
- <property name="customConnectionParameters">
- <map>
- <entry key="java.naming.referral" value="follow" />
- </map>
- </property>
-
- <!-- Query params -->
- <property name="baseDn" value="${ldap.query.baseDn}" />
- <property name="queryUserByUserId" value="${ldap.query.queryUserByUserId}" />
- <property name="queryUserByFullNameLike" value="${ldap.query.queryUserByFullNameLike}" />
- <property name="queryGroupsForUser" value="${ldap.query.queryGroupsForUser}" />
-
- <!-- Attribute config -->
- <property name="userIdAttribute" value="${ldap.attributes.userId}" />
- <property name="userFirstNameAttribute" value="${ldap.attributes.userFirstName}" />
- <property name="userLastNameAttribute" value="${ldap.attributes.userLastName}" />
- <property name="groupIdAttribute" value="${ldap.attributes.groupId}" />
- <property name="groupNameAttribute" value="${ldap.attributes.groupName}" />
- </bean>
- </list>
- </property>
- </bean>
-
- <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
- <property name="processEngineConfiguration" ref="processEngineConfiguration" />
- </bean>
-
- <!-- scan du package mbdx pour avoir les classes annotees -->
- <context:component-scan base-package="fr.mbdx" />
-
- <bean id="initSignature" class="fr.mbdx.parapheur.TaskInitParapheur">
- <property name="serviceCMIS" ref="serviceCMIS" />
- <property name="parapheurService" ref="parapheurService" />
- </bean>
-
- <bean id="servicePDF" class="fr.mbdx.service.ServicePDF">
- <property name="serviceRestAlfresco" ref="serviceRestAlfresco" />
- </bean>
-
- <bean id="serviceDelib" class="fr.mbdx.service.ServiceDelib">
- <property name="sendOriginalToTDT" value="${delib.sendOriginalToTDT}" />
- <property name="activitiHost" value="${activiti.host}" />
- <property name="activitiPort" value="${activiti.port}" />
- <property name="activitiProtocol" value="${activiti.protocol}" />
- <property name="serviceRestAlfresco" ref="serviceRestAlfresco" />
- <property name="serviceCMIS" ref="serviceCMIS" />
- <property name="utils" ref="utils" />
- </bean>
-
- <bean id="serviceUrbanisme" class="fr.mbdx.service.ServiceUrbanisme">
- <property name="processEngine" ref="processEngine" />
- <property name="utils" ref="utils" />
- <property name="activitiHost" value="${activiti.host}" />
- <property name="activitiPort" value="${activiti.port}" />
- <property name="activitiProtocol" value="${activiti.protocol}" />
- </bean>
-
- <bean id="vidocIdentityService" class="fr.mbdx.service.VidocIdentityService">
- <property name="serviceRestAlfresco" ref="serviceRestAlfresco" />
- </bean>
-
- <bean id="envoiParapheur" class="fr.mbdx.parapheur.TaskEnvoiParapheur">
- <property name="clientParapheur" ref="clientParapheur" />
- <property name="serviceCMIS" ref="serviceCMIS" />
- <property name="parapheurService" ref="parapheurService" />
- <property name="servicePDF" ref="servicePDF" />
- </bean>
-
- <bean id="interrogationParapheur" class="fr.mbdx.parapheur.TaskInterrogationParapheur">
- <property name="clientParapheur" ref="clientParapheur" />
- <property name="parapheurService" ref="parapheurService" />
- </bean>
-
- <bean id="clotureParapheur" class="fr.mbdx.parapheur.TaskClotureParapheur">
- <property name="serviceCMIS" ref="serviceCMIS" />
- <property name="serviceRestAlfresco" ref="serviceRestAlfresco" />
- </bean>
-
- <bean id="taskVisuelPDF" class="fr.mbdx.parapheur.TaskVisuelPDF">
- <property name="servicePDF" ref="servicePDF" />
- <property name="serviceCMIS" ref="serviceCMIS" />
- <property name="parapheurService" ref="parapheurService" />
- </bean>
-
- <bean id="clientParapheur" class="fr.mbdx.parapheur.client.impl.ClientCxfImpl">
- <property name="wsdl" value="${parapheur.wsdl}" />
- <property name="busConfigPath" value="${parapheur.config}" />
- </bean>
-
- <bean id="serviceCMIS" class="fr.mbdx.service.ServiceCMIS">
- <property name="url" value="${alfresco.cmis.url}" />
- <property name="user" value="${alfresco.username}" />
- <property name="password" value="${alfresco.password}" />
- <property name="intervalleEnvoiParapheur" value="${parapheur.intervalleEnvoi}" />
- </bean>
-
- <bean id="serviceRestAlfresco" class="fr.mbdx.service.ServiceRestAlfresco">
- <property name="rootUri" value="${alfresco.root.url}" />
- <property name="userDefaut" value="${alfresco.username}" />
- <property name="passwordDefaut" value="${alfresco.password}" />
- </bean>
-
- <bean id="parapheurService"
- class="fr.mbdx.service.ParapheurService" init-method="init">
- <property name="rootUri" value="${parapheur.url}" />
- <property name="userDefaut" value="${parapheur.username}" />
- <property name="passwordDefaut" value="${parapheur.password}" />
- <property name="alfrescoUrl" value="${alfresco.root.url}" />
- <property name="alfrescoUser" value="${alfresco.username}" />
- <property name="alfrescoPassword" value="${alfresco.password}" />
- <property name="intervalleInterrogation" value="${parapheur.intervalleInterrogation}" />
- </bean>
-
- <!-- configuration iXBUS -->
- <bean id="ixbus" class="fr.mbdx.ixbus.client.impl.ClientCxfImpl">
- <property name="wsdl" value="${ixbus.wsdl}" />
- <property name="busConfigPath" value="${ixbus.config}" />
- <property name="identifiantSpecifique" value="${ixbus.identifiantSpecifique}" />
- <property name="motDePasse" value="${ixbus.motDePasse}" />
- <property name="codeUtilisateur" value="${ixbus.codeUtilisateur}" />
- </bean>
-
- <bean id="legalityControlFactory" class="fr.srci.xmlschema.legalitycontrol.ObjectFactory">
- </bean>
-
- <bean id="legalityControlIssuer" class="fr.srci.xmlschema.legalitycontrol.Issuer" factory-bean="legalityControlFactory" factory-method="createIssuer">
- <property name="SIREN" value="${ixbus.issuer.siren}" />
- <property name="department" value="${ixbus.issuer.department}" />
- <property name="departmentSubdivision" value="${ixbus.issuer.departmentSubdivision}" />
- <property name="issuerNature" value="${ixbus.issuer.issuerNature}" />
- <property name="referent" ref="legalityControlReferent" />
- </bean>
-
- <bean id="legalityControlReferent" class="fr.srci.xmlschema.legalitycontrol.Referent" factory-bean="legalityControlFactory" factory-method="createReferent">
- <property name="name" value="${ixbus.referent.name}" />
- <property name="telephone" value="${ixbus.referent.telephone}" />
- <property name="electronicMail" value="${ixbus.referent.electronicMail}" />
- </bean>
-
- <bean id="legalityControlTransaction" class="fr.srci.xmlschema.legalitycontrol.Transaction" factory-bean="legalityControlFactory" factory-method="createTransaction">
- <property name="actNature" value="${ixbus.transaction.actNature}" />
- <property name="content" value="${ixbus.transaction.content}" />
- <property name="subject" value="${ixbus.transaction.subject}" />
- <property name="classificationVersionDate" value="${ixbus.transaction.classificationVersionDate}" />
- </bean>
-
- <bean id="legalityControl" class="fr.srci.xmlschema.legalitycontrol.Transaction" factory-bean="legalityControlFactory" factory-method="createLegalityControl">
- <property name="issuer" ref="legalityControlIssuer" />
- <property name="responseMail" value="${ixbus.legalityControl.responseMail}" />
- <property name="transaction" ref="legalityControlTransaction" />
- </bean>
-
- <bean id="utils" class="fr.mbdx.ixbus.client.impl.Utils">
- <property name="client" ref="ixbus" />
- <property name="legalityControl" ref="legalityControl" />
- </bean>
-
- <bean id="logger" class="org.apache.log4j.Logger" factory-method="getLogger">
- <constructor-arg type="java.lang.String"><value>iXbus</value></constructor-arg>
- </bean>
-
- <!-- Contexte pour Annulation de l'envoi (IDI) iXbus -->
- <bean id="searchActivitiTdTProcess" class="fr.mbdx.tdt.annulation.TaskSearchTdtActivitiInstance" />
- <bean id="annulEnvoiTdt" class="fr.mbdx.tdt.annulation.TaskAnnulationEnvoiTdt">
- <property name="clientTdt" ref="ixbus" />
- </bean>
- <bean id="suppressInstanceTdtActiviti" class="fr.mbdx.tdt.annulation.TaskSupprInstanceActiviti" >
- <property name="serviceCMIS" ref="serviceCMIS" />
- </bean>
-</beans>
\ No newline at end of file