Fixed AR-822: Space deletion via FTP or Web Client is improved.

The node is renamed and hidden from FileFolderService clients.  A background task then performs the archival.
A bootstrap component ensures that failed archivals are picked up again.
Found a bug with the status of nodes archived as part of a hierarchy not being updated correctly.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6148 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-07-04 01:03:16 +00:00
parent d2027916c7
commit 6c07ba53c7
12 changed files with 851 additions and 25 deletions

View File

@@ -344,6 +344,16 @@
</property>
</bean>
<!-- Remove sys:deleted tags from interrupted archivals -->
<bean id="deletedTagRemover" class="org.alfresco.repo.node.archive.DeletedTagBootstrap">
<property name="nodeService">
<ref bean="NodeService" />
</property>
<property name="searchService">
<ref bean="SearchService" />
</property>
</bean>
<!-- Start module components -->

View File

@@ -141,6 +141,21 @@
<title>Temporary</title>
</aspect>
<!-- aspect to tag deleted nodes -->
<aspect name="sys:deletedNode">
<title>Deleted Node</title>
<properties>
<property name="sys:deletedNodeOriginalName">
<type>d:text</type>
<mandatory enforced="true">true</mandatory>
</property>
<property name="sys:deletedNodeUser">
<type>d:text</type>
<mandatory enforced="true">true</mandatory>
</property>
</properties>
</aspect>
<!-- details stored on archived nodes -->
<aspect name="sys:archived">
<title>Archived</title>

View File

@@ -4,6 +4,27 @@
<!-- Beans pertinent to node persistence and services -->
<beans>
<bean id="nodeArchiveInterceptor" class="org.alfresco.repo.node.archive.NodeArchiveInterceptor">
<property name="transactionService">
<ref bean="transactionService" />
</property>
<property name="nodeService">
<ref bean="mlAwareNodeService" />
</property>
<property name="dictionaryService">
<ref bean="dictionaryService" />
</property>
<property name="storeArchiveMap">
<ref bean="storeArchiveMap"/>
</property>
<property name="threadPoolExecutor">
<ref bean="threadPoolExecutor"/>
</property>
<property name="archiveMode">
<value>${system.deleted-items.mode}</value>
</property>
</bean>
<bean id="mlPropertyInterceptor" class="org.alfresco.repo.node.MLPropertyInterceptor">
<property name="nodeService">
<ref bean="mlAwareNodeService" />
@@ -25,6 +46,7 @@
<property name="interceptorNames">
<list>
<value>mlPropertyInterceptor</value>
<value>nodeArchiveInterceptor</value>
</list>
</property>
</bean>

View File

@@ -27,6 +27,12 @@ system.acl.maxPermissionCheckTimeMillis=10000
# The maximum number of results to perform permission checks against
system.acl.maxPermissionChecks=1000
#
# Control the transfer of nodes to 'Deleted Items'
# EAGER - Transfer nodes to 'Deleted Items' in the same transaction. (Slower)
# LAZY - Move nodes away but transfer to 'Deleted Items' separately. (Faster)
system.deleted-items.mode=LAZY
# #################### #
# Lucene configuration #
# #################### #