cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Content Model and CMIS

yveskising
Champ in-the-making
Champ in-the-making
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

1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
You cannot have two properties with the same name. Other than that, you will be able to access those properties through CMIS without an extension because you are defining them on types, not aspects. If you were to use an aspect you would have to either use an extension or you would have to upgrade to Alfresco 4.2.e and use CMIS 1.1 (CMIS 1.1 knows about aspects…it refers to them as secondary types).

Jeff