Addition of nt:hierarchyNode, nt:folder, nt:file and nt:resource as defined in JCR 170 specification.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2795 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2006-05-09 09:50:18 +00:00
parent 1119bdd44e
commit 78aee1feb2

View File

@@ -4,19 +4,19 @@
<version>1.0</version> <version>1.0</version>
<imports> <imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/> <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
</imports> </imports>
<namespaces> <namespaces>
<namespace uri="http://www.jcp.org/jcr/1.0" prefix="jcr"/> <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/nt/1.0" prefix="nt" />
<namespace uri="http://www.jcp.org/jcr/mix/1.0" prefix="mix"/> <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.jcp.org/jcr/sv/1.0" prefix="sv" />
<namespace uri="http://www.w3.org/XML/1998/namespace" prefix="xml"/> <namespace uri="http://www.w3.org/XML/1998/namespace" prefix="xml" />
</namespaces> </namespaces>
<types> <types>
<type name="nt:base"> <type name="nt:base">
<properties> <properties>
<property name="jcr:primaryType"> <property name="jcr:primaryType">
@@ -31,11 +31,98 @@
</property> </property>
</properties> </properties>
</type> </type>
<type name="nt:hierarchyNode">
<parent>nt:base</parent>
<properties>
<property name="jcr:created">
<type>d:date</type>
<protected>true</protected>
<mandatory>false</mandatory>
<multiple>false</multiple>
</property>
</properties>
</type>
<type name="nt:file">
<parent>nt:hierarchyNode</parent>
<associations>
<child-association name="jcr:content">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>nt:base</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
<child-name>jcr:content</child-name>
<duplicate>false</duplicate>
</child-association>
</associations>
</type>
<type name="nt:folder">
<parent>nt:hierarchyNode</parent>
<associations>
<child-association name="jcr:contains">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>nt:hierarchyNode</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
<duplicate>false</duplicate>
</child-association>
</associations>
</type>
<type name="nt:resource">
<parent>nt:base</parent>
<properties>
<property name="jcr:encoding">
<type>d:text</type>
<protected>false</protected>
<mandatory>false</mandatory>
<multiple>false</multiple>
</property>
<property name="jcr:mimeType">
<type>d:text</type>
<protected>false</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
<property name="jcr:data">
<type>d:content</type>
<protected>false</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
<property name="jcr:lastModified">
<type>d:date</type>
<protected>false</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
</properties>
<mandatory-aspects>
<aspect>mix:referenceable</aspect>
</mandatory-aspects>
</type>
</types> </types>
<aspects> <aspects>
<aspect name="mix:referenceable"> <aspect name="mix:referenceable">
<properties> <properties>
<property name="jcr:uuid"> <property name="jcr:uuid">
@@ -45,7 +132,7 @@
</property> </property>
</properties> </properties>
</aspect> </aspect>
<aspect name="mix:lockable"> <aspect name="mix:lockable">
<properties> <properties>
<property name="jcr:lockOwner"> <property name="jcr:lockOwner">
@@ -54,9 +141,9 @@
<property name="jcr:lockIsDeep"> <property name="jcr:lockIsDeep">
<type>d:boolean</type> <type>d:boolean</type>
</property> </property>
</properties> </properties>
</aspect> </aspect>
</aspects> </aspects>
</model> </model>