<?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 do I get a list of children for the current node in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-a-list-of-children-for-the-current-node/m-p/118775#M83780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to change the Details view to display two custom columns instead of the created &amp;amp; modified date columns. I have edited Node.java and BrowseBean.java to add the two functions and add property resolvers for those functions, respectively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now stuck at fetching a list of children for the current node. There is a function in Node.java called getChildAssociations() but I'm not sure what it does - I don't understand what is meant by "All the child associations this node has as a Map, using the association type as the key".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I would like in Node.java would be something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public String getTotalDocs() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List children = this.getChildren();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (String)children.size();&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The real code will be a recursive function which will calculate the no. of documents under the current space, all the way down to the leaf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would appreciate if someone can help me with this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2008 10:04:58 GMT</pubDate>
    <dc:creator>rmanocha</dc:creator>
    <dc:date>2008-01-21T10:04:58Z</dc:date>
    <item>
      <title>How do I get a list of children for the current node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-a-list-of-children-for-the-current-node/m-p/118775#M83780</link>
      <description>I am trying to change the Details view to display two custom columns instead of the created &amp;amp; modified date columns. I have edited Node.java and BrowseBean.java to add the two functions and add property resolvers for those functions, respectively.I am now stuck at fetching a list of children for</description>
      <pubDate>Mon, 21 Jan 2008 10:04:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-a-list-of-children-for-the-current-node/m-p/118775#M83780</guid>
      <dc:creator>rmanocha</dc:creator>
      <dc:date>2008-01-21T10:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a list of children for the current node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-a-list-of-children-for-the-current-node/m-p/118776#M83781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you need to probably use &lt;/SPAN&gt;&lt;STRONG&gt;FileFolderService&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this interface you have methods to list child files and folders of a space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look to this service, this can do what you want i think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 10:33:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-i-get-a-list-of-children-for-the-current-node/m-p/118776#M83781</guid>
      <dc:creator>ribz33</dc:creator>
      <dc:date>2008-01-22T10:33:57Z</dc:date>
    </item>
  </channel>
</rss>

