<?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 get full folder path from noderef in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309573#M262703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm in java. Not JavaScript so I don't think I can use this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have access to the NodeRef and the NodeRefService which I can use but I can't find any reference showing me how to get the Path of the document. I can get the FileInfo object for the document but this FileInfo only seems to contain the file name and whether the noderef is a file or a folder. I need the full path like /Sites/aptest/documentLibrary/DropOff/Invoice1.pdf (not just the file name which is Invoice1.pdf) &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 18:04:41 GMT</pubDate>
    <dc:creator>vince20151</dc:creator>
    <dc:date>2014-06-12T18:04:41Z</dc:date>
    <item>
      <title>How to get full folder path from noderef</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309571#M262701</link>
      <description>I'm implementing an action when a file (document) is created in a folder. I have access to the noderef of the document.I like to get the full folder name where the document has just been created. My code has condition logic on how to act based on the folder name.How do I do this in java?Thanks a bun</description>
      <pubDate>Thu, 12 Jun 2014 15:59:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309571#M262701</guid>
      <dc:creator>vince20151</dc:creator>
      <dc:date>2014-06-12T15:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get full folder path from noderef</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309572#M262702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use something like : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Document doc = (Document) session.getObject(object_id);&lt;BR /&gt;doc.getPaths().get(0);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the name of the document is concatenated at the end of the path so you have to remove it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 16:10:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309572#M262702</guid>
      <dc:creator>iv0id</dc:creator>
      <dc:date>2014-06-12T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get full folder path from noderef</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309573#M262703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm in java. Not JavaScript so I don't think I can use this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have access to the NodeRef and the NodeRefService which I can use but I can't find any reference showing me how to get the Path of the document. I can get the FileInfo object for the document but this FileInfo only seems to contain the file name and whether the noderef is a file or a folder. I need the full path like /Sites/aptest/documentLibrary/DropOff/Invoice1.pdf (not just the file name which is Invoice1.pdf) &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 18:04:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309573#M262703</guid>
      <dc:creator>vince20151</dc:creator>
      <dc:date>2014-06-12T18:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get full folder path from noderef</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309574#M262704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use NodeService's getPath method ,which will return Path object ,then use Path Object's toString()/toPrefixString()/toDisplayPath() method according your requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 01:50:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309574#M262704</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-13T01:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get full folder path from noderef</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309575#M262705</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;SPAN&gt;This may help you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Path folderPath = nodeService.getPath("FOLDER_NODE_REF");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need the folder path as prefixed string,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;String prefixedPath = folderPath.toPrefixString(namespaceService);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 06:37:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309575#M262705</guid>
      <dc:creator>muralidharand</dc:creator>
      <dc:date>2014-06-13T06:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get full folder path from noderef</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309576#M262706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if i want noderef by providing the path of file?&lt;BR /&gt;I have file present in alfresco repository at some path. How do i get the noderef using path.&lt;BR /&gt;Actually i want to download that on my project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 21:15:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309576#M262706</guid>
      <dc:creator>varunchawla</dc:creator>
      <dc:date>2016-09-28T21:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get full folder path from noderef</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309577#M262707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use following method of&amp;nbsp;org.alfresco.service.cmr.model.FileFolderService,it is used to resolve a file or folder name path from a given root node down to the final node.&lt;/P&gt;&lt;P&gt;for&amp;nbsp;&lt;SPAN&gt;rootNodeRef you can pass company root node&lt;/SPAN&gt;&lt;BR /&gt; public FileInfo resolveNamePath(NodeRef rootNodeRef, List&amp;lt;String&amp;gt; pathElements) throws FileNotFoundException;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 01:16:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-full-folder-path-from-noderef/m-p/309577#M262707</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-09-29T01:16:22Z</dc:date>
    </item>
  </channel>
</rss>

