<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: child association trouble in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234002#M187132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to create primary child content using the webservices ? It seems that even after creating the child content via webservice ( CMLCreate) and relating it to the parent content is creating a secondary child ( the one which will not get cascade delete).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We tried creatign parentReference with the parent doc ID but it is not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any exmaple code would be useful&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Apr 2010 05:15:37 GMT</pubDate>
    <dc:creator>viralshah</dc:creator>
    <dc:date>2010-04-06T05:15:37Z</dc:date>
    <item>
      <title>child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233994#M187124</link>
      <description>Hi to everyone!I was trying to model a parent-child association, in order to get automatic cascade when deleting or moving the parent. This is the code of the custom model:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;child-association name="custom:associationName"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Mon, 25 Jan 2010 15:33:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233994#M187124</guid>
      <dc:creator>mzaranto</dc:creator>
      <dc:date>2010-01-25T15:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233995#M187125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The roles are not important.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cascade-delete is a function of where a node was created rather than the association itself.&amp;nbsp; If you use your association to create a node, then deleting the node's parent will result in a cascade.&amp;nbsp; If you use your association to link to a secondary parent, then deleting the secondary parent will only remove the association but will not cascade.&amp;nbsp; You will need to write code to listen to the various policies coming from the NodeService, and react accordingly; I'm thinking 'beforeDeleteChildAssociation', in particular.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 13:16:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233995#M187125</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2010-01-28T13:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233996#M187126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to make further clarification. Please further elaborate the solution as there seems to be no documentation for this scenario. To implement child association (not peer association) in Java to achieve the cascaded delete functionality, can this be done using Java web services API? If yes, is there any available reference for this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I believe in your explanation above, you were referring to creating behavior right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for the information.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 02:42:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233996#M187126</guid>
      <dc:creator>junieboy</dc:creator>
      <dc:date>2010-02-04T02:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233997#M187127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Delete only cascades along the single child association used to create the child node, known as the primary child association.&amp;nbsp; If you create child associations between pre-existing nodes, then delete will not cascade along them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 06:57:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233997#M187127</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2010-02-04T06:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233998#M187128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How does one create a primary child asociation using the Alfresco Explorer? Right now the explorer gives option to select only content "existing" on any space of Alfresco for child /peer associations. Because of which it looks like the child content does not&amp;nbsp; get deleted even when the parent is getting deleted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 11:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233998#M187128</guid>
      <dc:creator>viralshah</dc:creator>
      <dc:date>2010-03-18T11:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233999#M187129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@viralshah&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You're correct in that the association created by Explorer will always be secondary i.e. the content selected will not be bound in life to the new parent because it can be shared in this way between several parent nodes.&amp;nbsp; You would have to write your own client extensions if you want to create sub-content (content tied to the parent's lifecycle) through explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 11:53:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/233999#M187129</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2010-03-18T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234000#M187130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Derek for the confirmation.&amp;nbsp; Is this not a limitation on the Explorer side?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What are the out-of box options available to create such sub-content ? Will we have to create content using the Web services ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 12:15:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234000#M187130</guid>
      <dc:creator>viralshah</dc:creator>
      <dc:date>2010-03-18T12:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234001#M187131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When does a potential feature become a limitation?&amp;nbsp; It's not a limitation yet because we haven't been asked for it by enough people.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can add behaviour to your association to automatically move the selected content under the new parent and thereby bind it's life to that of the new parent; you would still have to create the content first before selecting it.&amp;nbsp; If you want to create it at the time, you'll have to enhance the UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do anything you want through the APIs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 13:32:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234001#M187131</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2010-03-18T13:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234002#M187132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to create primary child content using the webservices ? It seems that even after creating the child content via webservice ( CMLCreate) and relating it to the parent content is creating a secondary child ( the one which will not get cascade delete).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We tried creatign parentReference with the parent doc ID but it is not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any exmaple code would be useful&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 05:15:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234002#M187132</guid>
      <dc:creator>viralshah</dc:creator>
      <dc:date>2010-04-06T05:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: child association trouble</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234003#M187133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've read how to implement primary associations between nodes in the Alfresco reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;java.lang.Object&lt;BR /&gt;&amp;nbsp; extended by org.alfresco.service.cmr.repository.ChildAssociationRef&lt;BR /&gt;&lt;BR /&gt;ChildAssociationRef&lt;BR /&gt;&lt;BR /&gt;public ChildAssociationRef(QName assocTypeQName,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef parentRef,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QName childQName,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef childRef,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean isPrimary,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int nthSibling)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Construct a representation of a parent — name —-&amp;gt; child relationship.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameters:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assocTypeQName - the type of the association&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parentRef - the parent reference - may be null&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; childQName - the qualified name of the association - may be null&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; childRef - the child node reference. This must not be null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isPrimary - true if this represents the primary parent-child relationship&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nthSibling - the nth association with the same properties. Usually -1 to be ignored&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 21:26:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/child-association-trouble/m-p/234003#M187133</guid>
      <dc:creator>cristian</dc:creator>
      <dc:date>2010-05-08T21:26:03Z</dc:date>
    </item>
  </channel>
</rss>

