Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <model name="oc:contentmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
- <description>Test</description>
- <author>Henk</author>
- <version>0.7</version>
- <imports>
- <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
- <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
- </imports>
- <namespaces>
- <namespace uri="http://www.openhallo.nl/model/openhello/1.0" prefix="oc"/>
- </namespaces>
- <constraints>
- <constraint name="oc:contracttype_constraint" type="LIST">
- <parameter name="allowedValues">
- <list>
- <value>Deelcontract (Mantelcontract)</value>
- <value>Inkoopcontract</value>
- <value>Onderhoudscontract</value>
- <value>SLA (Service Level Agreement)</value>
- <value>Verkoopcontract</value>
- </list>
- </parameter>
- </constraint>
- <constraint name="oc:documenttype_constraint" type="LIST">
- <parameter name="allowedValues">
- <list>
- <value>Concept</value>
- <value>Definitief</value>
- </list>
- </parameter>
- </constraint>
- <!--nog niet toegevoegd aan properties-->
- <constraint name="oc:bedrijfsnaamConstraint" type="LENGTH">
- <parameter name="minLength">
- <value>0</value>
- </parameter>
- <parameter name="maxLength">
- <value>200</value>
- </parameter>
- </constraint>
- <constraint name="oc:vestigingsNummerConstraint" type="REGEX">
- <parameter name="expression">
- <value><![CDATA[^0|[0-9]{12}$]]></value>
- </parameter>
- </constraint>
- <constraint name="oc:contactpersoonConstraint" type="LENGTH">
- <parameter name="minLength">
- <value>0</value>
- </parameter>
- <parameter name="maxLength">
- <value>200</value>
- </parameter>
- </constraint>
- <constraint name="oc:straatConstraint" type="LENGTH">
- <parameter name="minLength">
- <value>0</value>
- </parameter>
- <parameter name="maxLength">
- <value>200</value>
- </parameter>
- </constraint>
- <constraint name="oc:huisnummerConstraint" type="MINMAX">
- <parameter name="minValue">
- <value>0</value>
- </parameter>
- <parameter name="maxValue">
- <value>99999</value>
- </parameter>
- </constraint>
- <constraint name="oc:huisletterConstraint" type="REGEX">
- <parameter name="expression">
- <value><![CDATA[^[A-zA-Z]$]]></value>
- </parameter>
- </constraint>
- <constraint name="oc:huisnummertoevoegingConstraint" type="REGEX">
- <parameter name="expression">
- <value><![CDATA[^[A-zA-Z0-9]{0,4}$]]></value>
- </parameter>
- </constraint>
- <constraint name="oc:postcodeConstraint" type="REGEX">
- <parameter name="expression">
- <value><![CDATA[^[1-9][0-9]{3}[A-Z]{0,2}$]]></value>
- </parameter>
- </constraint>
- <constraint name="oc:woonplaatsConstraint" type="REGEX">
- <parameter name="expression">
- <value><![CDATA[^[a-zA-Z]{0,50}$]]></value>
- </parameter>
- </constraint>
- <constraint name="oc:contractnummerConstraint" type="MINMAX">
- <parameter name="minValue">
- <value>0</value>
- </parameter>
- <parameter name="maxValue">
- <value>99999</value>
- </parameter>
- </constraint>
- <constraint name="oc:contractstatusConstraint" type="LIST">
- <parameter name="allowedValues">
- <list>
- <value>1</value>
- <value>2</value>
- <value>3</value>
- </list>
- </parameter>
- </constraint>
- <constraint name="oc:contractnaamConstraint" type="LENGTH">
- <parameter name="minLength">
- <value>0</value>
- </parameter>
- <parameter name="maxLength">
- <value>200</value>
- </parameter>
- </constraint>
- <constraint name="oc:ondertekendConstraint" type="LENGTH">
- <parameter name="minLength">
- <value>0</value>
- </parameter>
- <parameter name="maxLength">
- <value>200</value>
- </parameter>
- </constraint>
- <constraint name="oc:stilzwijgendConstraint" type="LIST">
- <parameter name="allowedValues">
- <list>
- <value>Ja</value>
- <value>Nee</value>
- </list>
- </parameter>
- </constraint>
- </constraints>
- <types>
- <type name="oc:contractdossier">
- <title>Contract Dossier</title>
- <description>Contract Dossier</description>
- <parent>cm:folder</parent>
- <properties>
- </properties>
- <mandatory-aspects>
- <aspect>oc:dossiergegevens</aspect>
- <aspect>oc:bedrijf</aspect>
- </mandatory-aspects>
- </type>
- <type name="oc:contractdocument">
- <title>Contract Document</title>
- <description>Contract Document</description>
- <parent>cm:content</parent>
- <properties>
- </properties>
- <mandatory-aspects>
- <aspect>oc:contractgegevens</aspect>
- <aspect>oc:dossiergegevens</aspect>
- <aspect>oc:bedrijf</aspect>
- </mandatory-aspects>
- </type>
- </types>
- <aspects>
- <aspect name="oc:bedrijf">
- <title>Bedrijf</title>
- <properties>
- <property name="oc:bedrijfsnaam">
- <title>Naam</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:bedrijfsnaamConstraint" />
- </constraints>
- </property>
- <property name="oc:vestigingsnummer">
- <title>Vestigingsnummer</title>
- <type>d:int</type>
- <constraints>
- <constraint ref="oc:vestigingsNummerConstraint" />
- </constraints>
- </property>
- <property name="oc:naamcontactpersoon">
- <title>Naam Contactpersoon</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:contactpersoonConstraint" />
- </constraints>
- </property>
- <property name="oc:straat">
- <title>Straat</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:straatConstraint" />
- </constraints>
- </property>
- <property name="oc:huisnr">
- <title>Huisnummer</title>
- <type>d:int</type>
- <constraints>
- <constraint ref="oc:huisnummerConstraint" />
- </constraints>
- </property>
- <property name="oc:huisletter">
- <title>Huisletter</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:huisletterConstraint" />
- </constraints>
- </property>
- <property name="oc:huisnrtoev">
- <title>Huisnr Toevoeging</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:huisnummertoevoegingConstraint" />
- </constraints>
- </property>
- <property name="oc:postcode">
- <title>Postcode</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:postcodeConstraint" />
- </constraints>
- </property>
- <property name="oc:woonplaats">
- <title>Woonplaats</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:woonplaatsConstraint" />
- </constraints>
- </property>
- </properties>
- </aspect>
- <aspect name="oc:dossiergegevens">
- <title>Dossier gegevens</title>
- <properties>
- <property name="oc:contractnummer">
- <title>Contract nummer</title>
- <type>d:int</type>
- <constraints>
- <constraint ref="oc:contractnummerConstraint" />
- </constraints>
- </property>
- <property name="oc:contracttype">
- <title>Contracttype</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:contracttype_constraint" />
- </constraints>
- </property>
- <property name="oc:contractstatus">
- <title>Contract status</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:contractstatusConstraint" />
- </constraints>
- </property>
- <property name="oc:startdatum">
- <title>Startdatum</title>
- <type>d:date</type>
- </property>
- <property name="oc:einddatum">
- <title>Einddatum</title>
- <type>d:date</type>
- </property>
- <!-- <property name="cm:creator">
- <title>Aangemaakt door</title>
- <type>d:text</type>
- </property>
- <property name="cm:created">
- <title>Aanmaakdatum</title>
- <type>d:date</type>
- </property> -->
- <property name="oc:bedrag">
- <title>Bedrag</title>
- <type>d:double</type>
- </property>
- <property name="oc:herinnering">
- <title>Herinnering</title>
- <type>d:double</type>
- </property>
- <property name="oc:stilzwijgend">
- <title>Stilzwijgend</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:stilzwijgendConstraint" />
- </constraints>
- </property>
- </properties>
- </aspect>
- <aspect name="oc:contractgegevens">
- <title>Contract gegevens</title>
- <properties>
- <property name="oc:contractnaam">
- <title>Naam</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:contractnaamConstraint" />
- </constraints>
- </property>
- <property name="oc:documentstatus">
- <title>Document status</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:documenttype_constraint" />
- </constraints>
- </property>
- <property name="oc:ondertekend">
- <title>Ondertekend</title>
- <type>d:text</type>
- <constraints>
- <constraint ref="oc:ondertekendConstraint" />
- </constraints>
- </property>
- </properties>
- </aspect>
- </aspects>
- </model>
Advertisement
Add Comment
Please, Sign In to add comment