mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Build script changes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2338 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
15
config/alfresco/extension/custom-model-context.xml.sample
Normal file
15
config/alfresco/extension/custom-model-context.xml.sample
Normal 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>
|
||||
|
||||
<!-- Registration of new models -->
|
||||
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
|
||||
<property name="models">
|
||||
<list>
|
||||
<value>alfresco/extension/customModel.xml</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
28
config/alfresco/extension/customModel.xml.sample
Normal file
28
config/alfresco/extension/customModel.xml.sample
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Custom Model -->
|
||||
|
||||
<!-- Note: This model is pre-configured to load at startup of the Repository. So, all custom -->
|
||||
<!-- types and aspects added here will automatically be registered -->
|
||||
|
||||
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||
|
||||
<!-- Optional meta-data about the model -->
|
||||
<description>Custom Model</description>
|
||||
<author></author>
|
||||
<version>1.0</version>
|
||||
|
||||
<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 -->
|
||||
<!-- NOTE: The following namespace custom.model should be changed to reflect your own namespace -->
|
||||
<namespaces>
|
||||
<namespace uri="custom.model" prefix="custom"/>
|
||||
</namespaces>
|
||||
|
||||
</model>
|
15
config/alfresco/extension/example-model-context.xml.sample
Normal file
15
config/alfresco/extension/example-model-context.xml.sample
Normal 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>
|
||||
|
||||
<!-- Registration of new models -->
|
||||
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
|
||||
<property name="models">
|
||||
<list>
|
||||
<value>alfresco/extension/exampleModel.xml</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
82
config/alfresco/extension/exampleModel.xml.sample
Normal file
82
config/alfresco/extension/exampleModel.xml.sample
Normal file
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!-- Definition of new Model -->
|
||||
|
||||
<!-- The important part here is the name - Note: the use of the my: namespace
|
||||
which is defined further on in the document -->
|
||||
<model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||
|
||||
<!-- Optional meta-data about the model -->
|
||||
<description>Example custom Model</description>
|
||||
<author></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 -->
|
||||
<!-- NOTE: The following namespace my.new.model should be changed to reflect your own namespace -->
|
||||
<namespaces>
|
||||
<namespace uri="my.new.model" prefix="my"/>
|
||||
</namespaces>
|
||||
|
||||
<types>
|
||||
|
||||
<!-- Definition of new Content Type: Standard Operating Procedure -->
|
||||
<type name="my:sop">
|
||||
<title>Standard Operating Procedure</title>
|
||||
<parent>cm:content</parent>
|
||||
<properties>
|
||||
<property name="my:publishedDate">
|
||||
<type>d:datetime</type>
|
||||
</property>
|
||||
<property name="my:authorisedBy">
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
</properties>
|
||||
<associations>
|
||||
<association name="my:signOff">
|
||||
<target>
|
||||
<class>cm:content</class>
|
||||
<mandatory>false</mandatory>
|
||||
<many>false</many>
|
||||
</target>
|
||||
</association>
|
||||
<child-association name="my:processSteps">
|
||||
<target>
|
||||
<class>cm:content</class>
|
||||
<mandatory>false</mandatory>
|
||||
<many>true</many>
|
||||
</target>
|
||||
</child-association>
|
||||
</associations>
|
||||
</type>
|
||||
|
||||
</types>
|
||||
|
||||
<aspects>
|
||||
|
||||
<!-- Definition of new Content Aspect: Image Classification -->
|
||||
<aspect name="my:imageClassification">
|
||||
<title>Image Classfication</title>
|
||||
<properties>
|
||||
<property name="my:width">
|
||||
<type>d:int</type>
|
||||
</property>
|
||||
<property name="my:height">
|
||||
<type>d:int</type>
|
||||
</property>
|
||||
<property name="my:resolution">
|
||||
<type>d:int</type>
|
||||
</property>
|
||||
</properties>
|
||||
</aspect>
|
||||
|
||||
</aspects>
|
||||
|
||||
</model>
|
Reference in New Issue
Block a user