cancel
Showing results for 
Search instead for 
Did you mean: 

Checkin and child associations

andrepra
Champ in-the-making
Champ in-the-making
Hi,
I developed a custom aspect to manage attachments as content related to a main document through a child association.

      <aspect name="pds:attachable">
         <title>Attachments enabled</title>
         <associations>
            <child-association name="pds:attachments">
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>pds:attachment</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               
            </child-association>           
         </associations>
      </aspect>


When I perform the checkout everything works fine. But when I perform  checkin on the main document I get the child attachments duplicated. Using the node browser i saw that some of these have the column named "primary" set to true and other set to false. How can I delete the non primary child. Looking to thumbnails service I saw that there are some similarity.Thumbnail are child of the main node but during checkout/checkin the child are not duplicated. Maybe I forgot some configurations?
Thanks
1 REPLY 1

andrepra
Champ in-the-making
Champ in-the-making
Found the solutons. I've implemented the java class for the aspect as for the thumbnail aspect