Content and folder node archival

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2767 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-05-04 16:04:55 +00:00
parent 35f3eda32f
commit fcad8b7a1f
29 changed files with 722 additions and 198 deletions

View File

@@ -64,6 +64,17 @@
</property>
</bean>
<bean id="spacesArchiveBootstrap" parent="spacesArchiveStoreImporter">
<property name="bootstrapViews">
<list>
<props>
<prop key="path">/</prop>
<prop key="location">alfresco/bootstrap/spacesArchive.xml</prop>
</props>
</list>
</property>
</bean>
<bean id="spacesBootstrap" parent="spacesStoreImporter">
<property name="bootstrapViews">
<list>

View File

@@ -0,0 +1,16 @@
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
xmlns:cm="http://www.alfresco.org/model/content/1.0"
xmlns:sys="http://www.alfresco.org/model/system/1.0"
xmlns:app="http://www.alfresco.org/model/application/1.0">
<view:reference view:pathref="/">
<!-- Apply Read access to Everyone on root node of Spaces Store -->
<view:acl>
<view:ace view:access="ALLOWED">
<view:authority>GROUP_EVERYONE</view:authority>
<view:permission>Read</view:permission>
</view:ace>
</view:acl>
</view:reference>
</view:view>

View File

@@ -186,6 +186,23 @@
</property>
</bean>
<bean id="spacesArchiveStoreImporter" parent="storeImporter" abstract="true">
<property name="storeUrl">
<value>${spaces.archive.store}</value>
</property>
<property name="mustNotExistStoreUrls">
<list>
<value>${spaces.archive.store}</value>
</list>
</property>
<!--
<property name="configuration">
<props>
</props>
</property>
-->
</bean>
<bean id="spacesStoreImporter" parent="storeImporter" abstract="true">
<property name="storeUrl">
<value>${spaces.store}</value>

View File

@@ -44,6 +44,7 @@
<type name="cm:folder">
<title>Folder</title>
<parent>cm:cmobject</parent>
<archive>true</archive>
<properties>
<property name="cm:orderedchildren">
<type>d:boolean</type>
@@ -68,6 +69,7 @@
<type name="cm:content">
<title>Content</title>
<parent>cm:cmobject</parent>
<archive>true</archive>
<properties>
<property name="cm:content">
<type>d:content</type>

View File

@@ -78,6 +78,16 @@
<java-class>org.alfresco.service.cmr.repository.NodeRef</java-class>
</data-type>
<data-type name="d:childassocref">
<analyser-class>org.apache.lucene.analysis.standard.StandardAnalyzer</analyser-class>
<java-class>org.alfresco.service.cmr.repository.ChildAssociationRef</java-class>
</data-type>
<data-type name="d:assocref">
<analyser-class>org.apache.lucene.analysis.standard.StandardAnalyzer</analyser-class>
<java-class>org.alfresco.service.cmr.repository.AssociationRef</java-class>
</data-type>
<data-type name="d:path">
<analyser-class>org.apache.lucene.analysis.standard.StandardAnalyzer</analyser-class>
<java-class>org.alfresco.service.cmr.repository.Path</java-class>

View File

@@ -122,6 +122,53 @@
<aspect name="sys:incomplete">
<title>Incomplete</title>
</aspect>
<!-- details stored on archived nodes -->
<aspect name="sys:archived">
<title>Archived</title>
<properties>
<property name="sys:archivedOriginalParent">
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
<property name="sys:archivedBy">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sys:archivedDate">
<type>d:datetime</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
<aspect name="sys:archived-assocs">
<properties>
<property name="sys:archivedParentAssocs">
<type>d:childassocref</type>
<mandatory>false</mandatory>
<multiple>true</multiple>
<index enabled="false" />
</property>
<property name="sys:archivedChildAssocs">
<type>d:childassocref</type>
<mandatory>false</mandatory>
<multiple>true</multiple>
<index enabled="false" />
</property>
<property name="sys:archivedSourceAssocs">
<type>d:assocref</type>
<mandatory>false</mandatory>
<multiple>true</multiple>
<index enabled="false" />
</property>
<property name="sys:archivedTargetAssocs">
<type>d:assocref</type>
<mandatory>false</mandatory>
<multiple>true</multiple>
<index enabled="false" />
</property>
</properties>
</aspect>
</aspects>

View File

@@ -19,17 +19,29 @@
</property>
</bean>
<!-- Map stores to archive stores -->
<bean id="storeArchiveMap" class="org.alfresco.repo.node.StoreArchiveMap">
<property name="archiveMap">
<map>
<entry key="workspace://SpacesStore"><value>archive://SpacesStore</value></entry>
</map>
</property>
</bean>
<!-- NodeService implemented to persist to Database -->
<bean id="dbNodeService" class="org.alfresco.repo.node.db.DbNodeServiceImpl" init-method="init" >
<constructor-arg>
<ref bean="policyComponent"/>
</constructor-arg>
<constructor-arg>
<property name="dictionaryService">
<ref bean="dictionaryService" />
</constructor-arg>
<constructor-arg>
</property>
<property name="nodeDaoService">
<ref bean="nodeDaoService" />
</constructor-arg>
</property>
<property name="policyComponent">
<ref bean="policyComponent"/>
</property>
<property name="storeArchiveMap">
<ref bean="storeArchiveMap"/>
</property>
</bean>
<!-- Handles policy callbacks to ensure that node hierarchy gets indexed -->

View File

@@ -80,6 +80,9 @@ alfresco_user_store.system_container.childname=sys:system
alfresco_user_store.user_container.childname=sys:people
alfresco_user_store.authorities_container.childname=sys:authorities
# Spaces Archive Configuration
spaces.archive.store=archive://SpacesStore
# Spaces Configuration
spaces.store=workspace://SpacesStore