mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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>
|
||||
|
16
config/alfresco/bootstrap/spacesArchive.xml
Normal file
16
config/alfresco/bootstrap/spacesArchive.xml
Normal 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>
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
||||
|
@@ -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 -->
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user