07-10-2007 03:22 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>TestCustomType</description>
<author>ELCA</author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
</namespaces>
<constraints>
<constraint name="sc:constraintDocumentType" type="LIST">
<parameter name="allowedValues">
<list>
<value>Value A</value>
<value>Value B</value>
<value>Value C</value>
<value>Value D</value>
</list>
</parameter>
</constraint>
<constraint name="sc:constraintFormationType" type="LIST">
<parameter name="allowedValues">
<list>
<value>Value A</value>
<value>Value B</value>
<value>Value C</value>
<value>Value D</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<type name="sc:doc">
<title>TestCustomType</title>
<parent>cm:content</parent>
<properties>
<property name="sc:name">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sc:firstname">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sc:birthdate">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="sc:archiveDate">
<type>d:date</type>
<mandatory>false</mandatory>
</property>
<property name="sc:documentType">
<type>d:text</type>
<mandatory>true</mandatory>
<constraints>
<constraint ref="sc:constraintDocumentType" />
</constraints>
</property>
<property name="sc:formationType">
<type>d:text</type>
<mandatory>true</mandatory>
<constraints>
<constraint ref="sc:constraintFormationType" />
</constraints>
</property>
<property name="sc:documentDate">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
<property name="sc:studentNo">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
</mandatory-aspects>
</type>
</types>
</model>
07-12-2007 05:33 PM
07-13-2007 09:32 AM
08-02-2007 09:23 AM
08-03-2007 07:11 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.