cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS - Aspect with child associations

iv0id
Champ in-the-making
Champ in-the-making
Hi,

I've been working on custom types and now i want to create an aspect with a child association. here what i have done so far :

Custom type :

<type name="cla:actionAuthor">
   <title>Action author</title>
   <parent>cm:content</parent>
   <properties>
      <property name="cla:authorActionId">
         <title>Action Author Id</title>
         <type>d:text</type>
         <multiple>false</multiple>
      </property>
      <property name="cla:authorActionLabel">
         <title>Action Author label</title>
         <type>d:text</type>
         <multiple>false</multiple>
      </property>
      <property name="cla:actionType">
         <title>Action type</title>
         <type>d:text</type>
         <multiple>false</multiple>
      </property>
      <property name="cla:actionDate">
         <title>Action date</title>
         <type>d:date</type>
         <multiple>false</multiple>
      </property>
      <property name="cla:actionComment">
         <title>Action comment</title>
         <type>d:text</type>
         <multiple>false</multiple>
      </property>
   </properties>
</type>


Aspect :

<aspect name="cla:documentApprobation">
   <title>Documents approvers</title>
   <properties>
      <property name="cla:authorsApprobationId">
      <title>approbators ids</title>
      <type>d:text</type>
      <multiple>true</multiple>
      </property>
   </properties>
   <associations>
      <child-association name="cla:validated">
         <source>
            <mandatory>false</mandatory>
            <many>true</many>
         </source>
         <target>
            <class>cla:actionAuthor</class>
            <mandatory>false</mandatory>
            <many>true</many>
         </target>
      </child-association>
   </associations>
</aspect>


My question is how to create a document of type <strong>cla:document</strong> with the aspect above with the child association using Java and CMIS (open cmis)

Thank you.
4 REPLIES 4

jpotts
World-Class Innovator
World-Class Innovator
Sorry, child associations are not supported in CMIS because they aren't part of the specification.

Jeff

mrogers
Star Contributor
Star Contributor
And we have known bug MNT-11339 which will be fixed in 5.0

jpotts
World-Class Innovator
World-Class Innovator
That bug isn't currently marked as public, can you please change the visibility on it?

Jeff

iv0id
Champ in-the-making
Champ in-the-making
Ok. thank you for replies.