<?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 Parent in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-parent/m-p/157184#M111383</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'm working in a custom action and I need to get the parent node (folder/space) that receives the action (document). I could tell someone how to access it? I don't find it!&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a nodeService instance and a NodeRef of my document (actionedUponNodeRef). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Javier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 18:42:33 GMT</pubDate>
    <dc:creator>ruizja</dc:creator>
    <dc:date>2008-03-27T18:42:33Z</dc:date>
    <item>
      <title>get Parent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-parent/m-p/157184#M111383</link>
      <description>Hi,I'm working in a custom action and I need to get the parent node (folder/space) that receives the action (document). I could tell someone how to access it? I don't find it!&amp;nbsp; &lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: I have a nodeService instance and a NodeRef of my document (actionedUponNodeRef). Thanks,Javier</description>
      <pubDate>Thu, 27 Mar 2008 18:42:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-parent/m-p/157184#M111383</guid>
      <dc:creator>ruizja</dc:creator>
      <dc:date>2008-03-27T18:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: get Parent</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-parent/m-p/157185#M111384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found myself solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ChildAssociationRef parentAssoc = nodeService.getPrimaryParent(actionedUponNodeRef);&lt;BR /&gt;if (parentAssoc == null || parentAssoc.getParentRef() == null)&lt;BR /&gt;{&lt;BR /&gt;// TODO: Distinguish between ItemNotFound and AccessDenied&lt;BR /&gt;}&lt;BR /&gt;NodeRef parentRef = parentAssoc.getParentRef();&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 20:53:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-parent/m-p/157185#M111384</guid>
      <dc:creator>ruizja</dc:creator>
      <dc:date>2008-03-27T20:53:57Z</dc:date>
    </item>
  </channel>
</rss>

