AnsweredAssumed Answered

Custom Content Model and CMIS

Question asked by yveskising on Mar 7, 2013
Latest reply on Jan 7, 2014 by jpotts
Hello altogether.

We have to extend the cmis content model with a property myprop. This property must be accessable with CMIS without any extension-framework for aspects.
We need the property within two new types: test Document and test Folder. Maybe someone can provide some good suggestions?

Are aspect-properties provided through CMIS without the extensions from alfresco?
If the answer of my first question is no, how can i have the same property within the same namespace assigned to two types?


<?xml version="1.0" encoding="UTF-8"?>
<model name="test:model" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <description>test Model</description>
   <author>Test</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.test.com/test/models/model/1.0" prefix="test"/>
   </namespaces>
   <types>
      <type name="test:document">
         <title>test Document</title>
         <parent>cm:content</parent>   
         <properties>
            <property name="test:myprop">
               <title>My Prop</title>
               <type>d:boolean</type>
               <mandatory enforced="true">true</mandatory>
               <default>true</default>               
            </property>
         </properties>         
      </type>
      <type name="test:folder">
         <title>test Folder</title>   
         <parent>cm:folder</parent>      
         <properties>
            <property name="test:myprop">
               <title>My Prop</title>
               <type>d:boolean</type>
               <mandatory enforced="true">true</mandatory>
               <default>true</default>               
            </property>
         </properties>
      </type>   
   </types>
</model>



Thanks a lot.

Best regards,
Yves

Outcomes