mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-22 15:12:38 +00:00 
			
		
		
		
	108044: Merged 5.0.N (5.0.3) to HEAD-BUG-FIX (5.1/Cloud)
      107731: Merged 5.0.2 (5.0.2) to 5.0.N (5.0.3)
         107679: MNT-13820 "Model can be deactivated with a node referencing the model is in trashcan"
         Use the database to check if model is in use, rather than Search
         Fix up existing tests in light of these changes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@108075 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
		
	
		
			
				
	
	
		
			90 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			90 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?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="abc:cmistest" xmlns="http://www.alfresco.org/model/dictionary/1.0">
 | |
| 
 | |
|    <!-- Optional meta-data about the model -->   
 | |
|    <description>Custom Model for CMISTest</description>
 | |
|    <author>sglover</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="cmistest.model" prefix="abc"/>
 | |
|    </namespaces>
 | |
|    
 | |
|    <types>
 | |
|    
 | |
|       <!-- Definition of new Content Type: Standard Operating Procedure -->
 | |
|       <type name="abc:sop">
 | |
|          <title>Standard Operating Procedure</title>
 | |
|          <parent>cm:content</parent>
 | |
|          <properties>
 | |
|             <property name="abc:publishedDate">
 | |
|                <type>d:datetime</type>
 | |
|             </property>
 | |
|             <property name="abc:authorisedBy">
 | |
|                <type>d:text</type>
 | |
|             </property>
 | |
|          </properties>
 | |
|          <associations>
 | |
|             <association name="abc:signOff">
 | |
|                <source>
 | |
|                   <mandatory>false</mandatory>
 | |
|                   <many>false</many>
 | |
|                </source>
 | |
|                <target>
 | |
|                   <class>cm:content</class>
 | |
|                   <mandatory>false</mandatory>
 | |
|                   <many>false</many>
 | |
|                </target>
 | |
|             </association>
 | |
|             <child-association name="abc:processSteps">
 | |
|                <source>
 | |
|                   <mandatory>false</mandatory>
 | |
|                   <many>false</many>
 | |
|                </source>
 | |
|                <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="abc:imageClassification">
 | |
|          <title>Image Classfication</title>
 | |
|          <properties>
 | |
|             <property name="abc:width">
 | |
|                <type>d:int</type>
 | |
|             </property>
 | |
|             <property name="abc:height">
 | |
|                <type>d:int</type>
 | |
|             </property>
 | |
|             <property name="abc:resolution">
 | |
|                <type>d:int</type>
 | |
|             </property>
 | |
|          </properties>
 | |
|       </aspect>
 | |
|       
 | |
|    </aspects>
 | |
|    
 | |
| </model> |