mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Extended <mandatory> definition in the DD. The "mandatory" properties in our system have, until now, been optional, i.e. the integrity has not been enforced. It is possible to have <mandatory enforced="true">true</mandatory>, which means "mandatory and enforced", but <mandatory enforced="false">true</mandatory>, which means "mandatory but not enforced". Our system properties have been marked as "mandatory". Dublin core has had the properties marked as "required". Currently, if the Dublin Core is added, the node is tagged with sys:incomplete. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2562 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
174 lines
5.3 KiB
XML
174 lines
5.3 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.apache.lucene.analysis.standard.StandardAnalyzer</analyser-class>
|
|
<java-class>java.lang.Object</java-class>
|
|
</data-type>
|
|
|
|
</data-types>
|
|
|
|
<constraints>
|
|
<constraint name="test:regex1" type="REGEX">
|
|
<parameter name="expression">[A-Z]*</parameter>
|
|
<parameter name="requiresMatch">false</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"/>
|
|
</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>
|
|
|
|
<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:prop">
|
|
<default>an overriden default value</default>
|
|
</property>
|
|
</overrides>
|
|
</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>
|
|
|
|
</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>
|
|
</property>
|
|
</properties>
|
|
</aspect>
|
|
</aspects>
|
|
|
|
</model>
|