mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Async/incremental link validation.
Mostly working with the webapp, but the webapp needs to check for an null pointer to ensure that some result is ready. Other more minor wrinkles exist, such as capturing the number of files checked and displaying the version validated; this may be different from the latest snapshot if the validation gets behind the checkins for a while. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6136 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -294,13 +294,10 @@
|
||||
|
||||
|
||||
|
||||
<!-- LinkValidationService (turned off until it's been tested) -->
|
||||
<!--
|
||||
<!-- LinkValidationService -->
|
||||
<bean id="linkValidationServiceBootstrap"
|
||||
class="org.alfresco.linkvalidation.LinkValidationServiceBootstrap">
|
||||
</bean>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<!-- This component checks the interconnection between the metadata, indexes and content -->
|
||||
|
@@ -17,11 +17,111 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="hrefBearingRequestPathNameMatcher"
|
||||
class="org.alfresco.repo.avm.util.HrefBearingRequestPathNameMatcher">
|
||||
<property name="extensions">
|
||||
<list>
|
||||
<!--
|
||||
See also: http://filext.com/alphalist.php
|
||||
and: HrefBearingRequestPathNameMatcher
|
||||
|
||||
Note: HrefBearingRequestPathNameMatcher does not require
|
||||
a leading '.' (unlike FileExtensionNameMatcher),
|
||||
nor does it suffer from performance problems when
|
||||
the number of extensions is large. However, it
|
||||
will not tolerate extensions with internal "." chars;
|
||||
everything up to and including the final "." will
|
||||
simply be ignored. Matching is not case sensitive.
|
||||
-->
|
||||
|
||||
<value></value> <!-- null extension for dirs -->
|
||||
<value>ahtml</value>
|
||||
<value>ahtm</value>
|
||||
<value>asphtml</value>
|
||||
<value>asp</value>
|
||||
<value>axs</value>
|
||||
<value>bhtml</value>
|
||||
<value>dci</value>
|
||||
<value>dht</value>
|
||||
<value>dochtml</value>
|
||||
<value>docmhtml</value>
|
||||
<value>ehtml</value>
|
||||
<value>ephtml</value>
|
||||
<value>fhtml</value>
|
||||
<value>fphtml</value>
|
||||
<value>hhtml</value>
|
||||
<value>ht3</value>
|
||||
<value>htc</value>
|
||||
<value>htmls</value>
|
||||
<value>html</value>
|
||||
<value>htm</value>
|
||||
<value>ihtml</value>
|
||||
<value>jcs</value>
|
||||
<value>jhtml</value>
|
||||
<value>jhtm</value>
|
||||
<value>jsp</value>
|
||||
<value>log</value>
|
||||
<value>mdhtml</value>
|
||||
<value>mhtml</value>
|
||||
<value>mhtm</value>
|
||||
<value>mht</value>
|
||||
<value>mml</value>
|
||||
<value>php2</value>
|
||||
<value>php3</value>
|
||||
<value>php4</value>
|
||||
<value>php5</value>
|
||||
<value>php6</value>
|
||||
<value>php7</value>
|
||||
<value>php8</value>
|
||||
<value>php9</value>
|
||||
<value>php</value>
|
||||
<value>phtml</value>
|
||||
<value>phtml</value>
|
||||
<value>phtm</value>
|
||||
<value>pht</value>
|
||||
<value>pl</value>
|
||||
<value>ppthtml</value>
|
||||
<value>pptm</value>
|
||||
<value>pt</value>
|
||||
<value>pubhtml</value>
|
||||
<value>pubmhtml</value>
|
||||
<value>rbx</value>
|
||||
<value>rhtml</value>
|
||||
<value>rmh</value>
|
||||
<value>s1h</value>
|
||||
<value>shtml3</value>
|
||||
<value>shtml</value>
|
||||
<value>shtm</value>
|
||||
<value>sht</value>
|
||||
<value>ssi</value>
|
||||
<value>stml</value>
|
||||
<value>stm</value>
|
||||
<value>thtml</value>
|
||||
<value>txt</value>
|
||||
<value>whtek</value>
|
||||
<value>xhtml</value>
|
||||
<value>xhtml</value>
|
||||
<value>xhtm</value>
|
||||
<value>xhtm</value>
|
||||
<value>xht</value>
|
||||
<value>xlshtml</value>
|
||||
<value>xlshtm</value>
|
||||
<value>xlsmhtml</value>
|
||||
<value>xml</value>
|
||||
<value>xtml</value>
|
||||
<value>ybhtm</value>
|
||||
|
||||
<!-- Add others here, if you'd like! -->
|
||||
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="linkValidationService"
|
||||
class="org.alfresco.linkvalidation.LinkValidationServiceImpl"
|
||||
lazy-init="true">
|
||||
<property name="attributeService">
|
||||
<ref bean="attributeService"/>
|
||||
<ref bean="AttributeService"/>
|
||||
</property>
|
||||
<property name="avmRemote">
|
||||
<ref bean="avmRemote"/>
|
||||
@@ -30,10 +130,16 @@
|
||||
<ref bean="VirtServerRegistry"/>
|
||||
</property>
|
||||
<property name="AVMSyncService">
|
||||
<ref bean="avmSyncService"/>
|
||||
<ref bean="AVMSyncService"/>
|
||||
</property>
|
||||
<property name="excludeMatcher">
|
||||
<ref bean="linkValidationServiceExcludeExtensionMatcher"/>
|
||||
</property>
|
||||
<property name="hrefBearingRequestPathMatcher">
|
||||
<ref bean="hrefBearingRequestPathNameMatcher"/>
|
||||
</property>
|
||||
<property name="retryingTransactionHelper">
|
||||
<ref bean="retryingTransactionHelper"/>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
||||
|
@@ -747,47 +747,47 @@
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- The AVMLockingAwareService -->
|
||||
|
||||
<bean id="avmLockingAwareService" class="org.alfresco.repo.avm.AVMLockingAwareService">
|
||||
<!-- Because of circular dependendencies, this bean's dependencies
|
||||
are grabbed at bootstrap time.x -->
|
||||
</bean>
|
||||
|
||||
<bean id="AVMLockingAwareService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<list>
|
||||
<value>org.alfresco.service.cmr.avm.AVMService</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="targetName">
|
||||
<value>avmLockingAwareService</value>
|
||||
</property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<value>avmServiceWriteTxnAdvisor</value>
|
||||
<value>avmServiceReadTxnAdvisor</value>
|
||||
<value>avmSnapShotTriggeredIndexingMethodInterceptor</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="indexingAVMLockingAwareService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<list>
|
||||
<value>org.alfresco.service.cmr.avm.AVMService</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="targetName">
|
||||
<value>avmLockingAwareService</value>
|
||||
</property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<value>avmSnapShotTriggeredIndexingMethodInterceptor</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- The AVMLockingAwareService -->
|
||||
|
||||
<bean id="avmLockingAwareService" class="org.alfresco.repo.avm.AVMLockingAwareService">
|
||||
<!-- Because of circular dependendencies, this bean's dependencies
|
||||
are grabbed at bootstrap time.x -->
|
||||
</bean>
|
||||
|
||||
<bean id="AVMLockingAwareService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<list>
|
||||
<value>org.alfresco.service.cmr.avm.AVMService</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="targetName">
|
||||
<value>avmLockingAwareService</value>
|
||||
</property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<value>avmServiceWriteTxnAdvisor</value>
|
||||
<value>avmServiceReadTxnAdvisor</value>
|
||||
<value>avmSnapShotTriggeredIndexingMethodInterceptor</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="indexingAVMLockingAwareService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<list>
|
||||
<value>org.alfresco.service.cmr.avm.AVMService</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="targetName">
|
||||
<value>avmLockingAwareService</value>
|
||||
</property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<value>avmSnapShotTriggeredIndexingMethodInterceptor</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- The AVMService -->
|
||||
|
||||
@@ -1377,14 +1377,12 @@
|
||||
</property>
|
||||
<property name="mappedNames">
|
||||
<list>
|
||||
<value>getBrokenHrefConcordance</value>
|
||||
<value>getHrefConcordance</value>
|
||||
|
||||
<value>getBrokenHrefManifests</value>
|
||||
<value>getHrefManifests</value>
|
||||
|
||||
<value>getBrokenHrefManifest</value>
|
||||
<value>getHrefManifest</value>
|
||||
<value>getHrefManifestEntries</value>
|
||||
<value>getHrefDifference</value>
|
||||
<value>getHrefManifestBrokenByDelete</value>
|
||||
<value>getHrefManifestBrokenByNewOrMod</value>
|
||||
<value>getHrefConcordanceEntries</value>
|
||||
<value>getHrefsDependentUponFile</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
@@ -1397,7 +1395,7 @@
|
||||
</property>
|
||||
<property name="mappedNames">
|
||||
<list>
|
||||
<value>updateHrefInfo</value>
|
||||
<value>updateHrefInfo</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
Reference in New Issue
Block a user