mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Point checkin.
Prep for delivering LinkValidationServcice API; Ignore the API for now (it will evolve rapidly over the next few days). The main thing going on here is that now the Spring wiring is basically right for presenting things as services & controlling transaction boundaries. It's also possible to run this outside of the Alfresco webapp, which makes incremental compilation/testing much easier. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5758 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
<import resource="classpath:alfresco/avm-services-context.xml" />
|
||||
<import resource="classpath:alfresco/audit-services-context.xml" />
|
||||
<import resource="classpath:alfresco/attributes-service-context.xml"/>
|
||||
<import resource="classpath:alfresco/linkvalidation-service-context.xml"/>
|
||||
<import resource="classpath:alfresco/remote-services-context.xml"/>
|
||||
<import resource="classpath*:alfresco/patch/*-context.xml" />
|
||||
<import resource="classpath*:alfresco/domain/*-context.xml" />
|
||||
|
18
config/alfresco/linkvalidation-service-context.xml
Normal file
18
config/alfresco/linkvalidation-service-context.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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="linkValidationService"
|
||||
class="org.alfresco.linkvalidation.LinkValidationServiceImpl">
|
||||
<property name="attributeService">
|
||||
<ref bean="attributeService"/>
|
||||
</property>
|
||||
<property name="avmRemote">
|
||||
<ref bean="avmRemote"/>
|
||||
</property>
|
||||
<property name="virtServerRegistry">
|
||||
<ref bean="VirtServerRegistry"/>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
@@ -869,12 +869,11 @@
|
||||
<list>
|
||||
<value>avmServiceWriteTxnAdvisor</value>
|
||||
<value>avmServiceReadTxnAdvisor</value>
|
||||
<value>avmSnapShotTriggeredIndexingMethodInterceptor</value>
|
||||
<value>avmSnapShotTriggeredIndexingMethodInterceptor</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="indexingAVMService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<bean id="indexingAVMService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<list>
|
||||
<value>org.alfresco.service.cmr.avm.AVMService</value>
|
||||
@@ -885,22 +884,22 @@
|
||||
</property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<value>avmSnapShotTriggeredIndexingMethodInterceptor</value>
|
||||
<value>avmSnapShotTriggeredIndexingMethodInterceptor</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="avmSnapShotTriggeredIndexingMethodInterceptor" class="org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor">
|
||||
<property name="avmService">
|
||||
<ref bean="avmService" />
|
||||
</property>
|
||||
<property name="indexerAndSearcher">
|
||||
<ref bean="avmLuceneIndexerAndSearcherFactory" />
|
||||
</property>
|
||||
<property name="enableIndexing">
|
||||
<value>true</value>
|
||||
</property>
|
||||
</bean>
|
||||
<bean id="avmSnapShotTriggeredIndexingMethodInterceptor" class="org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor">
|
||||
<property name="avmService">
|
||||
<ref bean="avmService" />
|
||||
</property>
|
||||
<property name="indexerAndSearcher">
|
||||
<ref bean="avmLuceneIndexerAndSearcherFactory" />
|
||||
</property>
|
||||
<property name="enableIndexing">
|
||||
<value>true</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- The AVMSyncService -->
|
||||
|
||||
@@ -968,8 +967,8 @@
|
||||
<value>getAttributes</value>
|
||||
<value>query</value>
|
||||
<value>getKeys</value>
|
||||
<value>exists</value>
|
||||
<value>getCount</value>
|
||||
<value>exists</value>
|
||||
<value>getCount</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
@@ -1024,19 +1023,19 @@
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
-->
|
||||
-->
|
||||
|
||||
<bean id="deploymentServiceWriteTxnAdvisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
|
||||
<property name="advice">
|
||||
<ref bean="retryingWriteTxnAdvice"/>
|
||||
</property>
|
||||
<property name="mappedNames">
|
||||
<list>
|
||||
<value>deployDifferenceFS</value>
|
||||
<value>deployDifference</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
<bean id="deploymentServiceWriteTxnAdvisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
|
||||
<property name="advice">
|
||||
<ref bean="retryingWriteTxnAdvice"/>
|
||||
</property>
|
||||
<property name="mappedNames">
|
||||
<list>
|
||||
<value>deployDifferenceFS</value>
|
||||
<value>deployDifference</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="DeploymentService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
@@ -1278,4 +1277,62 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- LinkValidationService -->
|
||||
<!-- Read transaction advisor for link validation service. -->
|
||||
<bean id="linkValidationServiceReadTxnAdvisor"
|
||||
class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
|
||||
<property name="advice">
|
||||
<ref bean="retryingReadTxnAdvice"/>
|
||||
</property>
|
||||
<property name="mappedNames">
|
||||
<list>
|
||||
<!-- Takes a value to a collection of webapps -->
|
||||
<!-- (e.g.: mysite:/www/avm_webapps) -->
|
||||
<!-- or a specific webapp within a store -->
|
||||
<!-- (e.g.: mysite:/www/avm_webapps/ROOT) -->
|
||||
<value>getBrokenHrefs</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Write transaction advisor for link validation service. -->
|
||||
<bean id="linkValidationServiceWriteTxnAdvisor"
|
||||
class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
|
||||
<property name="advice">
|
||||
<ref bean="retryingWriteTxnAdvice"/>
|
||||
</property>
|
||||
<property name="mappedNames">
|
||||
<list>
|
||||
<!-- Takes a value to a collection of webapps -->
|
||||
<!-- (e.g.: mysite:/www/avm_webapps) -->
|
||||
<!-- or a specific webapp within a store -->
|
||||
<!-- (e.g.: mysite:/www/avm_webapps/ROOT) -->
|
||||
|
||||
<value>updateHrefInfo</value>
|
||||
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="LinkValidationService"
|
||||
class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<list>
|
||||
<value>org.alfresco.linkvalidation.LinkValidationService</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="targetName">
|
||||
<value>linkValidationService</value>
|
||||
</property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<value>linkValidationServiceWriteTxnAdvisor</value>
|
||||
<value>linkValidationServiceReadTxnAdvisor</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
Reference in New Issue
Block a user