<?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 Get all Childs of a Node in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27966#M11974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;How can i get all childs of a node?&lt;/SPAN&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Must i do a Recursive call to .getChildAssocs(nodeRef)&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px;"&gt;I want the deep listing!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;For example i have a folder who have 5 sub-folders and some files. That 5 sub-folders have sub-folders, and files; and so on!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;NodeService dont have methods who give the deep listing, for what i could see in the Api.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 05:26:40 GMT</pubDate>
    <dc:creator>brucezhou</dc:creator>
    <dc:date>2017-03-28T05:26:40Z</dc:date>
    <item>
      <title>Get all Childs of a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27966#M11974</link>
      <description>How can i get all childs of a node?Must i do a Recursive call to .getChildAssocs(nodeRef)&amp;nbsp; ?I want the deep listing!For example i have a folder who have 5 sub-folders and some files. That 5 sub-folders have sub-folders, and files; and so on!NodeService dont have methods who give the deep listing, fo</description>
      <pubDate>Tue, 28 Mar 2017 05:26:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27966#M11974</guid>
      <dc:creator>brucezhou</dc:creator>
      <dc:date>2017-03-28T05:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get all Childs of a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27967#M11975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could use a path query ( PATH:"yourPath//." ) &amp;nbsp; the //. searches recursive for all nodes, including yourPath. &amp;nbsp;//* would search recursively excluding yourPath.&lt;/P&gt;&lt;P&gt;But the path has to be a qName (app:company_home/....)&lt;/P&gt;&lt;P&gt;Second possibility: recurse through the path with javascript .getChildAsssocs or .children - could take long and is resource hungry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 05:59:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27967#M11975</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-03-28T05:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get all Childs of a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27968#M11976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, a PATH query with the double forward slash + asterisk will give you any children in any depth. But it will not be transactionally consistent as it relies on the search index which is asynchronously updated after changes occur. Also, a PATH query is traditionally one of the less performant selectors. An alternative is to use the ANCESTOR selector, which only requires the NodeRef of the folder for which you want to get all descendants. E.g. ANCESTOR:"workspace://SpacesStore/12345678". This avoids having to construct the path in the first place (which can be somewhat expensive depending on the depth of the root Folder, and avoid the reevaluation of the path by the index (path is fragmented and evaluated in various ways - front-to-back and back-to-front).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 09:24:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27968#M11976</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-03-28T09:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get all Childs of a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27969#M11977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,I want to know how to implement it by rest api?can you give me the code example?and the search is with the user permission?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 08:36:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27969#M11977</guid>
      <dc:creator>brucezhou</dc:creator>
      <dc:date>2017-03-30T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get all Childs of a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27970#M11978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For examples about the ReST APIs please look at &lt;A _jive_internal="true" href="https://community.alfresco.com/docs/DOC-6532-alfresco-52-rest-apis" rel="nofollow noopener noreferrer"&gt;Alfresco 5.2. REST APIs&lt;/A&gt;. All operations will include permission checks as long as you do not explicitly disable them. ReST APIs typically do not support disabling permission checks via their parameters (unless you implement a custom API endpoint yourself with that feature).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 11:03:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27970#M11978</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-04-01T11:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get all Childs of a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27971#M11979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use&amp;nbsp;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/" title="https://api-explorer.alfresco.com/api-explorer/" rel="nofollow noopener noreferrer"&gt;Alfresco Content Services REST API Explorer&lt;/A&gt;&amp;nbsp;to experiment with the REST apis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 12:12:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27971#M11979</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-01T12:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get all Childs of a Node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27972#M11980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I totally forgot about&amp;nbsp;&lt;A class="link-titled" href="https://github.com/ciber/alfresco-js-batch-executer" title="https://github.com/ciber/alfresco-js-batch-executer" rel="nofollow noopener noreferrer"&gt;GitHub - ciber/alfresco-js-batch-executer: Alfresco easy bulk processing with JavaScript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this gives you a new root scope object which enables you to write a serverside JavaScript that iterates over the elements without the common&amp;nbsp;problems like runtime, memory consumption, transaction size...&lt;/P&gt;&lt;P&gt;See the example from batch-executers page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;batchExecuter&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;processFolderRecursively&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; root&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; companyhome&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onNode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;node&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isDocument&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&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; node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'cm:author'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Ciber NL"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&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; node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;save&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 18:15:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-childs-of-a-node/m-p/27972#M11980</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-04T18:15:54Z</dc:date>
    </item>
  </channel>
</rss>

