08-07-2014 06:00 PM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/libraryModel.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<model name="lib:library" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>IUA Library</description>
<author>Hisham Khartoum</author>
<version>1.0</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.iua-library.com/model/content/1.0" prefix="lib"/>
</namespaces>
<constraints>
<constraint name="lib:BookLanguage" type="LIST">
<parameter name="allowedValues">
<list>
<value>Arabic</value>
<value>English</value>
<value>Frensh</value>
</list>
</parameter>
<parameter name="caseSensitive">
<value>false</value>
</parameter>
</constraint>
<constraint name="lib:LibraryBuilding" type="LIST">
<parameter name="allowedValues">
<list>
<value>Main Library</value>
<value>Engineering College</value>
<value>Medicine College</value>
<value>Computer College</value>
</list>
</parameter>
<parameter name="caseSensitive">
<value>false</value>
</parameter>
</constraint>
<constraint name="lib:BookPlace" type="LIST">
<parameter name="allowedValues">
<list>
<value>First Board</value>
<value>Second Board</value>
<value>Third Board</value>
<value>Forth Board</value>
</list>
</parameter>
<parameter name="caseSensitive">
<value>false</value>
</parameter>
</constraint>
</constraints>
<types>
<type name="lib:library-book">
<parent>cm:content</parent>
<properties>
<property name="lib:publisher">
<title>Publisher</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="lib:pages">
<title>Pages</title>
<type>d:int</type>
<mandatory>true</mandatory>
</property>
<property name="lib:Language">
<title>Language</title>
<type>d:text</type>
<mandatory>true</mandatory>
<constraints>
<constraint ref="lib:BookLanguage" />
</constraints>
</property>
<property name="lib:place">
<title>Place</title>
<type>d:text</type>
<mandatory>true</mandatory>
<constraints>
<constraint ref="lib:BookPlace" />
</constraints>
</property>
<property name="lib:building">
<title>Building</title>
<type>d:text</type>
<mandatory>true</mandatory>
<constraints>
<constraint ref="lib:LibraryBuilding" />
</constraints>
</property>
<!–
<property name="lib:price">
<title>Price</title>
<type>d:double</type>
<mandatory>true</mandatory>
</property>
–>
</properties>
</type>
</types>
</model>
08-09-2014 01:26 PM
08-17-2014 02:27 PM
08-17-2014 09:19 PM
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.