<?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: how to fetch folder contents along with other custom types in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-fetch-folder-contents-along-with-other-custom-types/m-p/296520#M249650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi chaituu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you creating the actual data that you are trying to retrieve? I.e. how are you creating your instances of emp:fac, emp:asset etc. and how are you relating them together (associating the instances of the types together)?&amp;nbsp; There don't seem to be any major issues with the way that your model is constructed (except maybe that it seems strange that you've defined many-to-many relationships across the board).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because each of your types extends from cm:folder (indirectly), each of these has the capacity to have it's own children - inheriting the cm:contains child-association - but if you want to link out to an arbitrary folder as you've defined in your emp:containsFactoryFolder association and get that folderr's contents, you would first need to traverse your custom association and then traverse the cm:contains child-association of the folder (or just call nodeService.getChildAssocs(folder) ) to get the contents of that folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 17:34:28 GMT</pubDate>
    <dc:creator>steven_okennedy</dc:creator>
    <dc:date>2016-05-10T17:34:28Z</dc:date>
    <item>
      <title>how to fetch folder contents along with other custom types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-fetch-folder-contents-along-with-other-custom-types/m-p/296519#M249649</link>
      <description>i am newbie to alfresco.This is the custom model.i need to fetch folder contents(cm:folder) also with other custom types(sparepart,metal).below method used to fetch the types but folder contents are not coming.what changes need to be made in custom model xml file and also in java class.List associat</description>
      <pubDate>Mon, 09 May 2016 16:43:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-fetch-folder-contents-along-with-other-custom-types/m-p/296519#M249649</guid>
      <dc:creator>chaituu</dc:creator>
      <dc:date>2016-05-09T16:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to fetch folder contents along with other custom types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-fetch-folder-contents-along-with-other-custom-types/m-p/296520#M249650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi chaituu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you creating the actual data that you are trying to retrieve? I.e. how are you creating your instances of emp:fac, emp:asset etc. and how are you relating them together (associating the instances of the types together)?&amp;nbsp; There don't seem to be any major issues with the way that your model is constructed (except maybe that it seems strange that you've defined many-to-many relationships across the board).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because each of your types extends from cm:folder (indirectly), each of these has the capacity to have it's own children - inheriting the cm:contains child-association - but if you want to link out to an arbitrary folder as you've defined in your emp:containsFactoryFolder association and get that folderr's contents, you would first need to traverse your custom association and then traverse the cm:contains child-association of the folder (or just call nodeService.getChildAssocs(folder) ) to get the contents of that folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 17:34:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-fetch-folder-contents-along-with-other-custom-types/m-p/296520#M249650</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-05-10T17:34:28Z</dc:date>
    </item>
  </channel>
</rss>

