Moved patch config files

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2160 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley 2006-01-20 14:43:33 +00:00
parent 8b0fa4a821
commit b4220a973b
2 changed files with 14 additions and 12 deletions

View File

@ -20,7 +20,7 @@
<import resource="classpath:alfresco/extension/extension-context.xml" /> <import resource="classpath:alfresco/extension/extension-context.xml" />
<import resource="classpath:alfresco/authority-services-context.xml" /> <import resource="classpath:alfresco/authority-services-context.xml" />
<import resource="classpath:alfresco/authentication-services-context.xml" /> <import resource="classpath:alfresco/authentication-services-context.xml" />
<import resource="classpath:alfresco/patch-services-context.xml" /> <import resource="classpath:alfresco/patch/*.xml" />
<!-- Import custom and overriding bean definitions. This must be done after the Alfresco-maintained beans. --> <!-- Import custom and overriding bean definitions. This must be done after the Alfresco-maintained beans. -->
<!-- e.g. <!-- e.g.

View File

@ -40,25 +40,27 @@
<property name="patchDaoService"> <property name="patchDaoService">
<ref bean="patchDaoComponent" /> <ref bean="patchDaoComponent" />
</property> </property>
<!-- list all the patches --> </bean>
<property name="patches" >
<list> <!-- base patch definition -->
</list> <bean id="basePatch" abstract="true" depends-on="patchComponent" init-method="init">
</property> <property name="transactionService"><ref bean="transactionComponent" /></property>
</bean> </bean>
<!-- Example patches --> <!-- Example patches -->
<bean id="patch.sample.01" class="org.alfresco.repo.admin.patch.SamplePatch" > <bean id="patch.sample.01" class="org.alfresco.repo.admin.patch.SamplePatch" parent="basePatch" >
<property name="transactionService"><ref bean="transactionComponent" /></property>
<property name="id"><value>Sample01</value></property> <property name="id"><value>Sample01</value></property>
<property name="description"><value>A NO-OP sample patch</value></property> <property name="description"><value>A NO-OP sample patch</value></property>
<property name="applyToVersion"><value>0.0</value></property> <property name="fixesFromSchema"><value>0</value></property>
<property name="fixesToSchema"><value>1000</value></property>
<property name="targetSchema"><value>1001</value></property>
</bean> </bean>
<bean id="patch.sample.02" class="org.alfresco.repo.admin.patch.SamplePatch" > <bean id="patch.sample.02" class="org.alfresco.repo.admin.patch.SamplePatch" parent="basePatch" >
<property name="transactionService"><ref bean="transactionComponent" /></property>
<property name="id"><value>Sample02</value></property> <property name="id"><value>Sample02</value></property>
<property name="description"><value>A NO-OP sample patch</value></property> <property name="description"><value>A NO-OP sample patch</value></property>
<property name="applyToVersion"><value>1.2</value></property> <property name="fixesFromSchema"><value>0</value></property>
<property name="fixesToSchema"><value>1000</value></property>
<property name="targetSchema"><value>1001</value></property>
<property name="dependsOn" > <property name="dependsOn" >
<list> <list>
<ref bean="patch.sample.01" /> <ref bean="patch.sample.01" />