<?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 How to update node's secondary children in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60210#M21180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alfresco Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using &lt;A href="https://github.com/Alfresco/alfresco-client-sdk" rel="nofollow noopener noreferrer"&gt;alfresco-client-sdk&lt;/A&gt; (developed by &lt;B&gt;Jean Marie Pascal&lt;/B&gt; and &lt;B&gt;Gavin Cornwell&lt;/B&gt;). I'm wondering how to update node's secondaryChildren.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-client-sdk/blob/master/client-java/alfresco-java-client/src/main/java/com/alfresco/client/api/core/NodesAPI.java" rel="nofollow noopener noreferrer"&gt;NodesAPI&lt;/A&gt;'s &lt;SPAN class=""&gt;createNodeCall&lt;/SPAN&gt; method accepts a &lt;A href="https://github.com/Alfresco/alfresco-client-sdk/blob/master/client-java/alfresco-java-client/src/main/java/com/alfresco/client/api/core/model/body/NodeBodyCreate.java" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class=""&gt;NodeBodyCreate&lt;/SPAN&gt;&lt;/A&gt; object. NodeBodyCreate object could be instantiated with a List of &lt;A href="https://github.com/Alfresco/alfresco-client-sdk/blob/master/client-java/alfresco-java-client/src/main/java/com/alfresco/client/api/core/model/body/ChildAssociationBody.java" rel="nofollow noopener noreferrer"&gt;ChildAssociationBody&lt;/A&gt; as secondaryChildren parameter.&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-client-sdk/blob/master/client-java/alfresco-java-client/src/main/java/com/alfresco/client/api/core/model/body/NodeBodyUpdate.java" rel="nofollow noopener noreferrer"&gt;NodeBodyUpdate&lt;/A&gt; object in updateNodeCall method doesn't have a secondaryChildren field.&lt;/P&gt;&lt;P&gt;One approach I considered is to update secondary children with additions (createSecondaryChildAssocationCall) and deletions (deleteSecondaryChildAssocationCall) resulting in an overhead due to several &lt;A href="https://api-explorer.alfresco.com/api-explorer/" rel="nofollow noopener noreferrer"&gt;REST&lt;/A&gt; calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atef ZAYATI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 15:02:24 GMT</pubDate>
    <dc:creator>atef-zayati</dc:creator>
    <dc:date>2018-02-02T15:02:24Z</dc:date>
    <item>
      <title>How to update node's secondary children</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60210#M21180</link>
      <description>Hello Alfresco Community,I'm using alfresco-client-sdk (developed by Jean Marie Pascal and Gavin Cornwell). I'm wondering how to update node's secondaryChildren.NodesAPI's createNodeCall method accepts a NodeBodyCreate object. NodeBodyCreate object could be instantiated with a List of ChildAssociati</description>
      <pubDate>Fri, 02 Feb 2018 15:02:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60210#M21180</guid>
      <dc:creator>atef-zayati</dc:creator>
      <dc:date>2018-02-02T15:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to update node's secondary children</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60211#M21181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, the typical consistency problems when a new ReST API is being developed. I would advice you to look for or create a new &lt;A href="https://issues.alfresco.com" rel="nofollow noopener noreferrer"&gt;JIRA ticket&lt;/A&gt; to address the lack of secondary child association handling in the node update request body. At the moment, the createSecondaryChildAssociationCall you already mentioned would be the only way to go until the API is expanded. &lt;B&gt;Richard Esplin&lt;/B&gt;&amp;nbsp;has on multiple occasions mentioned to me that there would be some kind of "batching" feature in the future of the ReST API, but I neither know if that would allow to execute two operations in one HTTP call nor what the status is on that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2018 13:22:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60211#M21181</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-02-03T13:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to update node's secondary children</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60212#M21182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Axel Faust&lt;/B&gt;‌ is correct, unfortunately we don't provide that functionality via the REST API yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although a "&lt;A href="https://issues.alfresco.com/jira/browse/REPO-424" rel="nofollow noopener noreferrer"&gt;batching&lt;/A&gt;" capability would be one way to address this updates of this manner would be better handled by a PATCH method which is something else on the &lt;A href="https://issues.alfresco.com/jira/browse/REPO-135" rel="nofollow noopener noreferrer"&gt;backlog&lt;/A&gt; but without an ETA I'm afraid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime your only option is the one you've suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 08:07:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60212#M21182</guid>
      <dc:creator>gavincornwell</dc:creator>
      <dc:date>2018-02-05T08:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to update node's secondary children</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60213#M21183</link>
      <description>&lt;P&gt;Create and delete associations is not solution if you association mandatory and not many &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;Are there some solutions in this case?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 12:51:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-node-s-secondary-children/m-p/60213#M21183</guid>
      <dc:creator>soloff</dc:creator>
      <dc:date>2019-10-09T12:51:51Z</dc:date>
    </item>
  </channel>
</rss>

