<?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 get all nodes of a content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-nodes-of-a-content/m-p/255423#M208553</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;BR /&gt;&lt;SPAN&gt;I have a content in my alfresco share using custom content model.I want to get all the parent root nodes for the content noderef.How to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example i got path as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;path———-/{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/site/1.0}sites/{http://www.alfresco.org/model/content/1.0}sia/{http://www.alfresco.org/model/content/1.0}documentLibrary/{http://www.alfresco.org/model/content/1.0}Test/{http://www.alfresco.org/model/content/1.0}New" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/site/1.0}sites/{http://www.alfresco.org/model/content/1.0}sia/{http://www.alfresco.org/model/content/1.0}documentLibrary/{http://www.alfresco.org/model/content/1.0}Test/{http://www.alfresco.org/model/content/1.0}New&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can i get or map with only companyhome,sites,sia,documentLibrary,Test,New along with nodes of each of them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sradha&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 10:23:37 GMT</pubDate>
    <dc:creator>sradha</dc:creator>
    <dc:date>2012-12-05T10:23:37Z</dc:date>
    <item>
      <title>How to get all nodes of a content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-nodes-of-a-content/m-p/255423#M208553</link>
      <description>Hi,I have a content in my alfresco share using custom content model.I want to get all the parent root nodes for the content noderef.How to do that?for example i got path aspath———-/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/site/1.0}sites/{http://www.a</description>
      <pubDate>Wed, 05 Dec 2012 10:23:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-nodes-of-a-content/m-p/255423#M208553</guid>
      <dc:creator>sradha</dc:creator>
      <dc:date>2012-12-05T10:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all nodes of a content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-nodes-of-a-content/m-p/255424#M208554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using NodeService with Java API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Getting the parent nodes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;ChildAssociationRef&amp;gt; childs = serviceRegistry.getNodeService().getParentAssocs(yourNode);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Getting the root nodes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set&amp;lt;NodeRef&amp;gt; rootNodes = serviceRegistry.getNodeService().getRootNode(yourNode);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope it helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 02:56:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-nodes-of-a-content/m-p/255424#M208554</guid>
      <dc:creator>angello0571</dc:creator>
      <dc:date>2012-12-07T02:56:59Z</dc:date>
    </item>
  </channel>
</rss>

