Checkpoint checkin of patch code.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2119 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-01-16 19:49:34 +00:00
parent 0c09d0ccc1
commit 47449b1555
19 changed files with 1401 additions and 1 deletions

View File

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

View File

@@ -33,6 +33,7 @@
<value>org/alfresco/repo/domain/hibernate/Node.hbm.xml</value>
<value>org/alfresco/repo/domain/hibernate/Store.hbm.xml</value>
<value>org/alfresco/repo/domain/hibernate/VersionCount.hbm.xml</value>
<value>org/alfresco/repo/domain/hibernate/AppliedPatch.hbm.xml</value>
<value>org/alfresco/repo/security/permissions/impl/hibernate/Permission.hbm.xml</value>
</list>
</property>
@@ -45,6 +46,7 @@
<prop key="org.alfresco.repo.domain.hibernate.NodeAssocImpl">${cache.strategy}</prop>
<prop key="org.alfresco.repo.domain.hibernate.StoreImpl">${cache.strategy}</prop>
<prop key="org.alfresco.repo.domain.hibernate.VersionCountImpl">${cache.strategy}</prop>
<prop key="org.alfresco.repo.domain.hibernate.AppliedPatchImpl">${cache.strategy}</prop>
<prop key="org.alfresco.repo.security.permissions.impl.hibernate.NodePermissionEntryImpl">${cache.strategy}</prop>
<prop key="org.alfresco.repo.security.permissions.impl.hibernate.PermissionEntryImpl">${cache.strategy}</prop>

View File

@@ -0,0 +1,69 @@
<?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="PatchService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>org.alfresco.repo.admin.patch.PatchService</value>
</property>
<property name="target"><ref bean="patchComponent"/></property>
<property name="interceptorNames">
<list>
<idref local="PatchService_transaction" />
</list>
</property>
</bean>
<bean id="PatchService_transaction" class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="get*">${server.transaction.mode.readOnly}</prop>
<prop key="*">${server.transaction.mode.default}</prop>
</props>
</property>
</bean>
<bean id="patchDaoComponent" class="org.alfresco.repo.admin.patch.hibernate.HibernatePatchDaoServiceImpl" >
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="patchComponent" class="org.alfresco.repo.admin.patch.PatchServiceImpl" >
<property name="descriptorService">
<ref bean="descriptorComponent" />
</property>
<property name="patchDaoService">
<ref bean="patchDaoComponent" />
</property>
<!-- list all the patches -->
<property name="patches" >
<list>
</list>
</property>
</bean>
<!-- Example patches -->
<bean id="patch.sample.01" class="org.alfresco.repo.admin.patch.SamplePatch" >
<property name="transactionService"><ref bean="transactionComponent" /></property>
<property name="id"><value>Sample01</value></property>
<property name="description"><value>A NO-OP sample patch</value></property>
<property name="applyAfterVersion"><value>0.0</value></property>
</bean>
<bean id="patch.sample.02" class="org.alfresco.repo.admin.patch.SamplePatch" >
<property name="transactionService"><ref bean="transactionComponent" /></property>
<property name="id"><value>Sample02</value></property>
<property name="description"><value>A NO-OP sample patch</value></property>
<property name="applyAfterVersion"><value>0.0</value></property>
<property name="dependsOn" >
<list>
<ref bean="patch.sample.01" />
</list>
</property>
</bean>
</beans>