Added the demo-context back to module-context.xml because there was more demo code in HEAD (for example in rm-form-config.xml and rm-share-config.xml). So it was intended to have it. Added the missing demo-context.xml and demo-model.xml

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@43941 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2012-11-26 09:43:36 +00:00
parent fda7b899fd
commit a7ba407f93
3 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!-- Bootstrap Records Management Models -->
<bean id="org_alfresco_module_rm_demoModelBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/org_alfresco_module_rm/demo/demo-model.xml</value>
</list>
</property>
</bean>
</beans>

View File

@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<model name="demo:demoModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Demo Model</description>
<author>Roy Wetherall</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"/>
<!-- Import Alfresco Content Domain Model Definitions -->
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
<!-- Import Alfresco Records Management Model Definitions -->
<import uri="http://www.alfresco.org/model/recordsmanagement/1.0" prefix="rma" />
</imports>
<!-- Records Management Namespace -->
<namespaces>
<namespace uri="http://www.alfresco.org/model/demomodel/1.0" prefix="demo"/>
</namespaces>
<types>
<type name="demo:purchaseOrder">
<title>Purchase Order</title>
<parent>cm:content</parent>
<properties>
<property name="demo:orderId">
<title>Order Id</title>
<type>d:text</type>
</property>
<property name="demo:customerId">
<title>Customer Id</title>
<type>d:text</type>
</property>
<property name="demo:quantity">
<title>Order Quantity</title>
<type>d:int</type>
</property>
<property name="demo:deliveryDate">
<title>Delivery Date</title>
<type>d:date</type>
</property>
<property name="demo:confirmationSent">
<title>Sales Confirmation Sent</title>
<type>d:boolean</type>
</property>
</properties>
</type>
</types>
</model>

View File

@@ -132,6 +132,9 @@
<!-- Import DOD 5015 -->
<import resource="classpath:alfresco/module/org_alfresco_module_rm/dod5015/dod5015-context.xml"/>
<!-- Import Demo Context -->
<import resource="classpath:alfresco/module/org_alfresco_module_rm/demo/demo-context.xml"/>
<!-- Import the RM identifier service's -->
<import resource="classpath:alfresco/module/org_alfresco_module_rm/rm-id-context.xml"/>