Checkpoint of MultilingualContentService

- New patch for multilingual root for holding containers


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4730 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-01-04 17:14:51 +00:00
parent 7e4430cae9
commit 96653f2420
12 changed files with 504 additions and 29 deletions

View File

@@ -119,6 +119,10 @@
<prop key="path">/</prop>
<prop key="location">alfresco/bootstrap/categories.xml</prop>
</props>
<props>
<prop key="path">/</prop>
<prop key="location">alfresco/bootstrap/multilingualRoot.xml</prop>
</props>
<props>
<prop key="path">/${spaces.company_home.childname}/${spaces.guest_home.childname}</prop>
<prop key="location">alfresco/bootstrap/tutorial.xml</prop>

View File

@@ -0,0 +1,15 @@
<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">
<cm:mlRoot view:childName="cm:multilingualRoot">
<view:acl view:inherit="false">
<view:ace view:access="ALLOWED">
<view:authority>GROUP_EVERYONE</view:authority>
<view:permission>Consumer</view:permission>
</view:ace>
</view:acl>
</cm:mlRoot>
</view:view>

View File

@@ -108,4 +108,6 @@ patch.invalidNameEnding.rewritten=Name ''{0}'' rewritten to ''{1}''
patch.systemDescriptorContent.description=Adds the version properties content to the system descriptor.
patch.systemDescriptorContent.result=Added the version properties content to the system descriptor.
patch.systemDescriptorContent.err.no_version_properties=The version.properties resource could not be found.
patch.systemDescriptorContent.err.no_descriptor=The system descriptor could not be found.
patch.systemDescriptorContent.err.no_descriptor=The system descriptor could not be found.
patch.multilingualBootstrap.description=Bootstraps the node that will hold the multilingual containers.

View File

@@ -2,7 +2,9 @@
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!-- File/folder specific service -->
<bean name="fileFolderService" class="org.alfresco.repo.model.filefolder.FileFolderServiceImpl" init-method="init">
<property name="namespaceService"><ref bean="namespaceService" /></property>
<property name="dictionaryService"><ref bean="dictionaryService" /></property>
@@ -37,5 +39,11 @@
</list>
</property>
</bean>
<!-- Multilingual specific service -->
<bean name="multilingualContentService" class="org.alfresco.repo.model.ml.MultilingualContentServiceImpl" >
<property name="nodeService"><ref bean="NodeService" /></property>
<property name="searchService"><ref bean="SearchService" /></property>
</bean>
</beans>

View File

@@ -218,15 +218,27 @@
</type>
<!-- Multilingual -->
<type name="cm:mlRoot">
<title>Multilingual Root</title>
<parent>sys:container</parent>
<associations>
<child-association name="cm:mlContainer">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:mlContainer</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</child-association>
</associations>
</type>
<type name="cm:mlContainer">
<title>Multilingual Container</title>
<parent>sys:base</parent>
<properties>
<property name="cm:mlEditionLabel">
<title>Edition Label</title>
<type>d:text</type>
</property>
</properties>
<parent>sys:container</parent>
<associations>
<child-association name="cm:mlChild">
<source>
@@ -234,12 +246,15 @@
<many>false</many>
</source>
<target>
<class>sys:localized</class>
<class>cm:mlDocument</class>
<mandatory>true</mandatory>
<many>true</many>
</target>
</child-association>
</associations>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
</types>
@@ -694,6 +709,14 @@
</properties>
</aspect>
<aspect name="cm:mlDocument">
<title>Multilingual Document</title>
<mandatory-aspects>
<aspect>sys:localized</aspect>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</aspect>
</aspects>
</model>

View File

@@ -517,5 +517,25 @@
<ref bean="contentService" />
</property>
</bean>
<bean id="patch.multilingualBootstrap" class="org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch" parent="basePatch" >
<property name="id"><value>patch.multilingualBootstrap</value></property>
<property name="description"><value>patch.multilingualBootstrap.description</value></property>
<property name="fixesFromSchema"><value>0</value></property>
<property name="fixesToSchema"><value>29</value></property>
<property name="targetSchema"><value>30</value></property>
<!-- bootstrap view -->
<property name="importerBootstrap">
<ref bean="spacesBootstrap" />
</property>
<property name="checkPath">
<value>/cm:multilingualRoot</value>
</property>
<property name="bootstrapView">
<props>
<prop key="path">/</prop>
<prop key="location">alfresco/bootstrap/multilingualRoot.xml</prop>
</props>
</property>
</bean>
</beans>

View File

@@ -1222,4 +1222,43 @@
</property>
</bean>
<!-- MultilingualContentService -->
<bean id="MultilingualContentService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>org.alfresco.service.cmr.ml.MultilingualContentService</value>
</property>
<property name="target">
<ref bean="multilingualContentService"/>
</property>
<property name="interceptorNames">
<list>
<idref local="MultilingualContentService_transaction"/>
<idref local="exceptionTranslator"/>
<idref local="MultilingualContentService_descriptor"/>
</list>
</property>
</bean>
<bean id="MultilingualContentService_transaction" class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="*">${server.transaction.mode.default}</prop>
</props>
</property>
</bean>
<bean id="MultilingualContentService_descriptor" parent="AlfrescoServiceDescriptor">
<property name="interface">
<value>org.alfresco.service.cmr.ml.MultilingualContentService</value>
</property>
<property name="description">
<value>Multilingual Content Service</value>
</property>
</bean>
</beans>

View File

@@ -19,4 +19,4 @@ version.build=@build-number@
# Schema number
version.schema=23
version.schema=30