Guest User

Untitled

a guest
May 8th, 2014
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <model name="oc:contentmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
  3. <description>Test</description>
  4. <author>Henk</author>
  5. <version>0.7</version>
  6.  
  7. <imports>
  8. <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
  9. <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
  10. </imports>
  11.  
  12. <namespaces>
  13. <namespace uri="http://www.openhallo.nl/model/openhello/1.0" prefix="oc"/>
  14. </namespaces>
  15.  
  16. <constraints>
  17. <constraint name="oc:contracttype_constraint" type="LIST">
  18. <parameter name="allowedValues">
  19. <list>
  20. <value>Deelcontract (Mantelcontract)</value>
  21. <value>Inkoopcontract</value>
  22. <value>Onderhoudscontract</value>
  23. <value>SLA (Service Level Agreement)</value>
  24. <value>Verkoopcontract</value>
  25. </list>
  26. </parameter>
  27. </constraint>
  28. <constraint name="oc:documenttype_constraint" type="LIST">
  29. <parameter name="allowedValues">
  30. <list>
  31. <value>Concept</value>
  32. <value>Definitief</value>
  33. </list>
  34. </parameter>
  35. </constraint>
  36.  
  37. <!--nog niet toegevoegd aan properties-->
  38. <constraint name="oc:bedrijfsnaamConstraint" type="LENGTH">
  39. <parameter name="minLength">
  40. <value>0</value>
  41. </parameter>
  42. <parameter name="maxLength">
  43. <value>200</value>
  44. </parameter>
  45. </constraint>
  46. <constraint name="oc:vestigingsNummerConstraint" type="REGEX">
  47. <parameter name="expression">
  48. <value><![CDATA[^0|[0-9]{12}$]]></value>
  49. </parameter>
  50. </constraint>
  51. <constraint name="oc:contactpersoonConstraint" type="LENGTH">
  52. <parameter name="minLength">
  53. <value>0</value>
  54. </parameter>
  55. <parameter name="maxLength">
  56. <value>200</value>
  57. </parameter>
  58. </constraint>
  59. <constraint name="oc:straatConstraint" type="LENGTH">
  60. <parameter name="minLength">
  61. <value>0</value>
  62. </parameter>
  63. <parameter name="maxLength">
  64. <value>200</value>
  65. </parameter>
  66. </constraint>
  67. <constraint name="oc:huisnummerConstraint" type="MINMAX">
  68. <parameter name="minValue">
  69. <value>0</value>
  70. </parameter>
  71. <parameter name="maxValue">
  72. <value>99999</value>
  73. </parameter>
  74. </constraint>
  75. <constraint name="oc:huisletterConstraint" type="REGEX">
  76. <parameter name="expression">
  77. <value><![CDATA[^[A-zA-Z]$]]></value>
  78. </parameter>
  79. </constraint>
  80. <constraint name="oc:huisnummertoevoegingConstraint" type="REGEX">
  81. <parameter name="expression">
  82. <value><![CDATA[^[A-zA-Z0-9]{0,4}$]]></value>
  83. </parameter>
  84. </constraint>
  85. <constraint name="oc:postcodeConstraint" type="REGEX">
  86. <parameter name="expression">
  87. <value><![CDATA[^[1-9][0-9]{3}[A-Z]{0,2}$]]></value>
  88. </parameter>
  89. </constraint>
  90. <constraint name="oc:woonplaatsConstraint" type="REGEX">
  91. <parameter name="expression">
  92. <value><![CDATA[^[a-zA-Z]{0,50}$]]></value>
  93. </parameter>
  94. </constraint>
  95.  
  96. <constraint name="oc:contractnummerConstraint" type="MINMAX">
  97. <parameter name="minValue">
  98. <value>0</value>
  99. </parameter>
  100. <parameter name="maxValue">
  101. <value>99999</value>
  102. </parameter>
  103. </constraint>
  104. <constraint name="oc:contractstatusConstraint" type="LIST">
  105. <parameter name="allowedValues">
  106. <list>
  107. <value>1</value>
  108. <value>2</value>
  109. <value>3</value>
  110. </list>
  111. </parameter>
  112. </constraint>
  113.  
  114. <constraint name="oc:contractnaamConstraint" type="LENGTH">
  115. <parameter name="minLength">
  116. <value>0</value>
  117. </parameter>
  118. <parameter name="maxLength">
  119. <value>200</value>
  120. </parameter>
  121. </constraint>
  122. <constraint name="oc:ondertekendConstraint" type="LENGTH">
  123. <parameter name="minLength">
  124. <value>0</value>
  125. </parameter>
  126. <parameter name="maxLength">
  127. <value>200</value>
  128. </parameter>
  129. </constraint>
  130.  
  131. <constraint name="oc:stilzwijgendConstraint" type="LIST">
  132. <parameter name="allowedValues">
  133. <list>
  134. <value>Ja</value>
  135. <value>Nee</value>
  136. </list>
  137. </parameter>
  138. </constraint>
  139. </constraints>
  140.  
  141. <types>
  142. <type name="oc:contractdossier">
  143. <title>Contract Dossier</title>
  144. <description>Contract Dossier</description>
  145. <parent>cm:folder</parent>
  146. <properties>
  147. </properties>
  148. <mandatory-aspects>
  149. <aspect>oc:dossiergegevens</aspect>
  150. <aspect>oc:bedrijf</aspect>
  151. </mandatory-aspects>
  152. </type>
  153. <type name="oc:contractdocument">
  154. <title>Contract Document</title>
  155. <description>Contract Document</description>
  156. <parent>cm:content</parent>
  157. <properties>
  158. </properties>
  159. <mandatory-aspects>
  160. <aspect>oc:contractgegevens</aspect>
  161. <aspect>oc:dossiergegevens</aspect>
  162. <aspect>oc:bedrijf</aspect>
  163. </mandatory-aspects>
  164. </type>
  165. </types>
  166. <aspects>
  167. <aspect name="oc:bedrijf">
  168. <title>Bedrijf</title>
  169. <properties>
  170. <property name="oc:bedrijfsnaam">
  171. <title>Naam</title>
  172. <type>d:text</type>
  173. <constraints>
  174. <constraint ref="oc:bedrijfsnaamConstraint" />
  175. </constraints>
  176. </property>
  177.  
  178. <property name="oc:vestigingsnummer">
  179. <title>Vestigingsnummer</title>
  180. <type>d:int</type>
  181. <constraints>
  182. <constraint ref="oc:vestigingsNummerConstraint" />
  183. </constraints>
  184. </property>
  185. <property name="oc:naamcontactpersoon">
  186. <title>Naam Contactpersoon</title>
  187. <type>d:text</type>
  188. <constraints>
  189. <constraint ref="oc:contactpersoonConstraint" />
  190. </constraints>
  191. </property>
  192. <property name="oc:straat">
  193. <title>Straat</title>
  194. <type>d:text</type>
  195. <constraints>
  196. <constraint ref="oc:straatConstraint" />
  197. </constraints>
  198. </property>
  199. <property name="oc:huisnr">
  200. <title>Huisnummer</title>
  201. <type>d:int</type>
  202. <constraints>
  203. <constraint ref="oc:huisnummerConstraint" />
  204. </constraints>
  205. </property>
  206. <property name="oc:huisletter">
  207. <title>Huisletter</title>
  208. <type>d:text</type>
  209. <constraints>
  210. <constraint ref="oc:huisletterConstraint" />
  211. </constraints>
  212. </property>
  213. <property name="oc:huisnrtoev">
  214. <title>Huisnr Toevoeging</title>
  215. <type>d:text</type>
  216. <constraints>
  217. <constraint ref="oc:huisnummertoevoegingConstraint" />
  218. </constraints>
  219. </property>
  220. <property name="oc:postcode">
  221. <title>Postcode</title>
  222. <type>d:text</type>
  223. <constraints>
  224. <constraint ref="oc:postcodeConstraint" />
  225. </constraints>
  226. </property>
  227. <property name="oc:woonplaats">
  228. <title>Woonplaats</title>
  229. <type>d:text</type>
  230. <constraints>
  231. <constraint ref="oc:woonplaatsConstraint" />
  232. </constraints>
  233. </property>
  234. </properties>
  235. </aspect>
  236.  
  237. <aspect name="oc:dossiergegevens">
  238. <title>Dossier gegevens</title>
  239. <properties>
  240. <property name="oc:contractnummer">
  241. <title>Contract nummer</title>
  242. <type>d:int</type>
  243. <constraints>
  244. <constraint ref="oc:contractnummerConstraint" />
  245. </constraints>
  246. </property>
  247. <property name="oc:contracttype">
  248. <title>Contracttype</title>
  249. <type>d:text</type>
  250. <constraints>
  251. <constraint ref="oc:contracttype_constraint" />
  252. </constraints>
  253. </property>
  254. <property name="oc:contractstatus">
  255. <title>Contract status</title>
  256. <type>d:text</type>
  257. <constraints>
  258. <constraint ref="oc:contractstatusConstraint" />
  259. </constraints>
  260. </property>
  261. <property name="oc:startdatum">
  262. <title>Startdatum</title>
  263. <type>d:date</type>
  264. </property>
  265. <property name="oc:einddatum">
  266. <title>Einddatum</title>
  267. <type>d:date</type>
  268. </property>
  269. <!-- <property name="cm:creator">
  270. <title>Aangemaakt door</title>
  271. <type>d:text</type>
  272. </property>
  273. <property name="cm:created">
  274. <title>Aanmaakdatum</title>
  275. <type>d:date</type>
  276. </property> -->
  277. <property name="oc:bedrag">
  278. <title>Bedrag</title>
  279. <type>d:double</type>
  280. </property>
  281. <property name="oc:herinnering">
  282. <title>Herinnering</title>
  283. <type>d:double</type>
  284. </property>
  285. <property name="oc:stilzwijgend">
  286. <title>Stilzwijgend</title>
  287. <type>d:text</type>
  288. <constraints>
  289. <constraint ref="oc:stilzwijgendConstraint" />
  290. </constraints>
  291. </property>
  292. </properties>
  293. </aspect>
  294. <aspect name="oc:contractgegevens">
  295. <title>Contract gegevens</title>
  296. <properties>
  297. <property name="oc:contractnaam">
  298. <title>Naam</title>
  299. <type>d:text</type>
  300. <constraints>
  301. <constraint ref="oc:contractnaamConstraint" />
  302. </constraints>
  303. </property>
  304. <property name="oc:documentstatus">
  305.  
  306. <title>Document status</title>
  307. <type>d:text</type>
  308. <constraints>
  309. <constraint ref="oc:documenttype_constraint" />
  310. </constraints>
  311. </property>
  312. <property name="oc:ondertekend">
  313. <title>Ondertekend</title>
  314. <type>d:text</type>
  315. <constraints>
  316. <constraint ref="oc:ondertekendConstraint" />
  317. </constraints>
  318. </property>
  319. </properties>
  320. </aspect>
  321. </aspects>
  322. </model>
Advertisement
Add Comment
Please, Sign In to add comment