mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
were both beyond me, and are just the raw conflict merge data. If Kev can't figure out how they should go together by tomorrow AM (for me) I'll dig back in. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4306 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
244 lines
7.9 KiB
XML
244 lines
7.9 KiB
XML
<model name="test:dictionarydaotest" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
|
|
|
<description>Alfresco Content Model</description>
|
|
<author>Alfresco</author>
|
|
<published>2005-05-30</published>
|
|
<version>1.0</version>
|
|
|
|
<imports>
|
|
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
|
</imports>
|
|
|
|
<namespaces>
|
|
<namespace uri="http://www.alfresco.org/test/dictionarydaotest/1.0" prefix="test"/>
|
|
</namespaces>
|
|
|
|
<data-types>
|
|
|
|
<data-type name="test:datatype">
|
|
<analyser-class>org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser</analyser-class>
|
|
<java-class>java.lang.Object</java-class>
|
|
</data-type>
|
|
|
|
</data-types>
|
|
|
|
<constraints>
|
|
<constraint name="test:regex1" type="REGEX">
|
|
<parameter name="expression"><value>[A-Z]*</value></parameter>
|
|
<parameter name="requiresMatch"><value>false</value></parameter>
|
|
</constraint>
|
|
<constraint name="test:regex2" type="REGEX">
|
|
<parameter name="expression"><value>[a-z]*</value></parameter>
|
|
<parameter name="requiresMatch"><value>false</value></parameter>
|
|
</constraint>
|
|
<constraint name="test:stringLength1" type="LENGTH">
|
|
<parameter name="minLength"><value>0</value></parameter>
|
|
<parameter name="maxLength"><value>256</value></parameter>
|
|
</constraint>
|
|
<constraint name="test:stringLength2" type="LENGTH">
|
|
<parameter name="minLength"><value>0</value></parameter>
|
|
<parameter name="maxLength"><value>128</value></parameter>
|
|
</constraint>
|
|
<constraint name="test:minMax1" type="MINMAX">
|
|
<parameter name="minValue"><value>0</value></parameter>
|
|
<parameter name="maxValue"><value>256</value></parameter>
|
|
</constraint>
|
|
<constraint name="test:list1" type="LIST">
|
|
<parameter name="allowedValues">
|
|
<list>
|
|
<value>ABC</value>
|
|
<value>DEF</value>
|
|
</list>
|
|
</parameter>
|
|
<parameter name="caseSensitive"><value>true</value></parameter>
|
|
</constraint>
|
|
</constraints>
|
|
|
|
<types>
|
|
|
|
<type name="test:base">
|
|
<title>Base</title>
|
|
<description>The Base Type</description>
|
|
<parent></parent>
|
|
|
|
<properties>
|
|
<property name="test:prop1">
|
|
<type>d:text</type>
|
|
<protected>true</protected>
|
|
<default></default>
|
|
<constraints>
|
|
<constraint ref="test:regex1"/>
|
|
<constraint ref="test:stringLength1"/>
|
|
</constraints>
|
|
</property>
|
|
</properties>
|
|
|
|
<associations>
|
|
<association name="test:assoc1">
|
|
<source>
|
|
<mandatory>true</mandatory>
|
|
<many>false</many>
|
|
</source>
|
|
<target>
|
|
<class>test:base</class>
|
|
<mandatory>false</mandatory>
|
|
<many>true</many>
|
|
</target>
|
|
</association>
|
|
<association name="test:assoc2">
|
|
<source>
|
|
<mandatory>true</mandatory>
|
|
<many>true</many>
|
|
</source>
|
|
<target>
|
|
<class>test:referenceable</class>
|
|
<mandatory>false</mandatory>
|
|
<many>false</many>
|
|
</target>
|
|
</association>
|
|
<child-association name="test:childassoc1">
|
|
<source>
|
|
<mandatory>true</mandatory>
|
|
<many>true</many>
|
|
</source>
|
|
<target>
|
|
<class>test:referenceable</class>
|
|
<mandatory>false</mandatory>
|
|
<many>false</many>
|
|
</target>
|
|
<child-name>fred</child-name>
|
|
<duplicate>true</duplicate>
|
|
</child-association>
|
|
</associations>
|
|
|
|
<mandatory-aspects>
|
|
<aspect>test:referenceable</aspect>
|
|
</mandatory-aspects>
|
|
</type>
|
|
|
|
<type name="test:file">
|
|
<parent>test:base</parent>
|
|
<archive>true</archive>
|
|
|
|
<properties>
|
|
<property name="test:fileprop">
|
|
<type>d:text</type>
|
|
<protected>true</protected>
|
|
<default></default>
|
|
</property>
|
|
|
|
</properties>
|
|
|
|
<associations>
|
|
<child-association name="test:childassoc2">
|
|
<target>
|
|
<class>test:referenceable</class>
|
|
</target>
|
|
<child-name>fred</child-name>
|
|
<duplicate>true</duplicate>
|
|
</child-association>
|
|
</associations>
|
|
|
|
<overrides>
|
|
<property name="test:prop1">
|
|
<default>an overriden default value</default>
|
|
<constraints>
|
|
<constraint ref="test:stringLength2"/>
|
|
<constraint ref="test:regex2"/>
|
|
</constraints>
|
|
</property>
|
|
</overrides>
|
|
</type>
|
|
|
|
<type name="test:file-derived">
|
|
<parent>test:file</parent>
|
|
</type>
|
|
|
|
<type name="test:file-derived-no-archive">
|
|
<parent>test:file</parent>
|
|
<archive>false</archive>
|
|
</type>
|
|
|
|
<type name="test:folder">
|
|
<parent>test:base</parent>
|
|
<properties>
|
|
<property name="test:folderprop">
|
|
<type>d:text</type>
|
|
<protected>true</protected>
|
|
<default></default>
|
|
</property>
|
|
</properties>
|
|
</type>
|
|
|
|
<type name="test:enforced">
|
|
<parent>test:base</parent>
|
|
<properties>
|
|
<property name="test:mandatory-enforced">
|
|
<type>d:text</type>
|
|
<mandatory enforced="true">true</mandatory>
|
|
</property>
|
|
<property name="test:mandatory-not-enforced">
|
|
<type>d:text</type>
|
|
<mandatory enforced="false">true</mandatory>
|
|
</property>
|
|
<property name="test:mandatory-default-enforced">
|
|
<type>d:text</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
</properties>
|
|
</type>
|
|
|
|
<type name="test:overridetype1">
|
|
<properties>
|
|
<property name="test:propoverride">
|
|
<type>d:text</type>
|
|
<default>one</default>
|
|
</property>
|
|
</properties>
|
|
</type>
|
|
|
|
<type name="test:overridetype2">
|
|
<parent>test:overridetype1</parent>
|
|
<overrides>
|
|
<property name="test:propoverride">
|
|
<default>two</default>
|
|
</property>
|
|
</overrides>
|
|
</type>
|
|
|
|
<type name="test:overridetype3">
|
|
<parent>test:overridetype2</parent>
|
|
<overrides>
|
|
<property name="test:propoverride">
|
|
<default>three</default>
|
|
</property>
|
|
</overrides>
|
|
</type>
|
|
|
|
</types>
|
|
|
|
<aspects>
|
|
<aspect name="test:referenceable">
|
|
<title>Referenceable</title>
|
|
<description>The referenceable aspect</description>
|
|
<parent></parent>
|
|
|
|
<properties>
|
|
<property name="test:id">
|
|
<type>d:int</type>
|
|
<protected>true</protected>
|
|
<mandatory>true</mandatory>
|
|
<index enabled="true">
|
|
<atomic>true</atomic>
|
|
<stored>false</stored>
|
|
</index>
|
|
<constraints>
|
|
<constraint ref="test:minMax1"/>
|
|
</constraints>
|
|
</property>
|
|
</properties>
|
|
</aspect>
|
|
</aspects>
|
|
|
|
</model>
|