mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- Incorporate JCR project into Repository project
- Single configuration entry point for JCR and non-JCR clients (i.e. application-context.xml) - Addition of build-war, incremental-war build targets (no deploy) - Remove build of JCR TCK war file by default git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2777 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
<import resource="classpath:alfresco/policy-context.xml" />
|
||||
<import resource="classpath:alfresco/import-export-context.xml" />
|
||||
<import resource="classpath:alfresco/bootstrap-context.xml" />
|
||||
<import resource="classpath:alfresco/jcr-api-context.xml" />
|
||||
<import resource="classpath*:alfresco/patch/*-context.xml" />
|
||||
<import resource="classpath*:alfresco/domain/*-context.xml" />
|
||||
|
||||
|
20
config/alfresco/jcr-api-context.xml
Normal file
20
config/alfresco/jcr-api-context.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="JCR.Repository" class="org.alfresco.jcr.repository.RepositoryImpl" init-method="init">
|
||||
<property name="serviceRegistry"><ref bean="ServiceRegistry"/></property>
|
||||
<property name="importerComponent"><ref bean="importerComponent"/></property>
|
||||
<property name="defaultWorkspace"><value>SpacesStore</value></property>
|
||||
</bean>
|
||||
|
||||
<bean id="JCR.DictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
|
||||
<property name="models">
|
||||
<list>
|
||||
<value>alfresco/model/jcrModel.xml</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
11
config/alfresco/jcr-context.xml
Normal file
11
config/alfresco/jcr-context.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
|
||||
<beans>
|
||||
|
||||
<!-- This file exists to keep backward compatibility with pre v1.3 releases -->
|
||||
<!-- JCR clients should now just reference application-context.xml directly -->
|
||||
|
||||
<import resource="classpath:alfresco/application-context.xml"/>
|
||||
|
||||
</beans>
|
62
config/alfresco/model/jcrModel.xml
Normal file
62
config/alfresco/model/jcrModel.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<model name="jcr:jcrmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||
|
||||
<description>JCR Model Definitions</description>
|
||||
<version>1.0</version>
|
||||
|
||||
<imports>
|
||||
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
||||
</imports>
|
||||
|
||||
<namespaces>
|
||||
<namespace uri="http://www.jcp.org/jcr/1.0" prefix="jcr"/>
|
||||
<namespace uri="http://www.jcp.org/jcr/nt/1.0" prefix="nt"/>
|
||||
<namespace uri="http://www.jcp.org/jcr/mix/1.0" prefix="mix"/>
|
||||
<namespace uri="http://www.jcp.org/jcr/sv/1.0" prefix="sv"/>
|
||||
<namespace uri="http://www.w3.org/XML/1998/namespace" prefix="xml"/>
|
||||
</namespaces>
|
||||
|
||||
<types>
|
||||
|
||||
<type name="nt:base">
|
||||
<properties>
|
||||
<property name="jcr:primaryType">
|
||||
<type>d:qname</type>
|
||||
<protected>true</protected>
|
||||
<mandatory>true</mandatory>
|
||||
</property>
|
||||
<property name="jcr:mixinTypes">
|
||||
<type>d:qname</type>
|
||||
<protected>true</protected>
|
||||
<multiple>true</multiple>
|
||||
</property>
|
||||
</properties>
|
||||
</type>
|
||||
|
||||
</types>
|
||||
|
||||
<aspects>
|
||||
|
||||
<aspect name="mix:referenceable">
|
||||
<properties>
|
||||
<property name="jcr:uuid">
|
||||
<type>d:text</type>
|
||||
<protected>true</protected>
|
||||
<mandatory>true</mandatory>
|
||||
</property>
|
||||
</properties>
|
||||
</aspect>
|
||||
|
||||
<aspect name="mix:lockable">
|
||||
<properties>
|
||||
<property name="jcr:lockOwner">
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
<property name="jcr:lockIsDeep">
|
||||
<type>d:boolean</type>
|
||||
</property>
|
||||
</properties>
|
||||
</aspect>
|
||||
|
||||
</aspects>
|
||||
|
||||
</model>
|
Reference in New Issue
Block a user