First real patch: Saved Searches folder fix.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2167 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-01-20 17:53:05 +00:00
parent 8481d30d8c
commit e6f160ca9f
9 changed files with 330 additions and 9 deletions

View File

@@ -2,6 +2,16 @@
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!-- This component ensures that patches get applied on startup -->
<bean id="patchExecuter"
class="org.alfresco.repo.admin.patch.PatchExecuter"
depends-on="importerBootstrap"
init-method="applyOutStandingPatches">
<property name="patchService">
<ref bean="patchComponent" />
</property>
</bean>
<bean id="PatchService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
@@ -44,7 +54,12 @@
<!-- base patch definition -->
<bean id="basePatch" abstract="true" depends-on="patchComponent" init-method="init">
<property name="transactionService"><ref bean="transactionComponent" /></property>
<property name="patchService">
<ref bean="patchComponent" />
</property>
<property name="transactionService">
<ref bean="transactionComponent" />
</property>
</bean>
<!-- Example patches -->
@@ -67,5 +82,27 @@
</list>
</property>
</bean>
<!-- patch definitions -->
<bean id="patch.savedSearchesFolder" class="org.alfresco.repo.admin.patch.impl.SavedSearchFolderPatch" parent="basePatch" >
<property name="id"><value>patch.savedSearchesFolder</value></property>
<property name="description"><value>Ensures the existence of the 'Saved Searches' folder</value></property>
<property name="fixesFromSchema"><value>0</value></property>
<property name="fixesToSchema"><value>1</value></property>
<property name="targetSchema"><value>2</value></property>
<!-- helper beans for execution -->
<property name="importerBootstrap">
<ref bean="importerBootstrap" />
</property>
<property name="namespaceService">
<ref bean="namespaceService" />
</property>
<property name="searchService">
<ref bean="searchService" />
</property>
<property name="nodeService">
<ref bean="nodeService"/>
</property>
</bean>
</beans>

View File

@@ -15,4 +15,4 @@ version.edition=Open Source
# Schema number
version.schema=1
version.schema=2