<?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: Is it possible to get the path from a cmis:document query? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290429#M243559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For anyone else facing this problem, I managed to figure out how to get a document's path in DotCMIS from the document's ID.&amp;nbsp; I am unsure if this is the most efficient way, but it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICmisObject object = session.GetObject(id);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDocument doc = object as IDocument;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IList&amp;lt;string&amp;gt; path = doc.Paths;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string pathFound = path.ElementAt(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 17:12:21 GMT</pubDate>
    <dc:creator>goebelchase</dc:creator>
    <dc:date>2014-07-30T17:12:21Z</dc:date>
    <item>
      <title>Is it possible to get the path from a cmis:document query?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290426#M243556</link>
      <description>I am retrieving a set of documents via a query, and part of the information I need on the documents is their path within Alfresco.the cmis:folder has a cmis&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ath option, but the cmis:document does not, and I have not been able to find any way to get this information from a cmis:document option.The C</description>
      <pubDate>Tue, 29 Jul 2014 20:00:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290426#M243556</guid>
      <dc:creator>goebelchase</dc:creator>
      <dc:date>2014-07-29T20:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the path from a cmis:document query?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290427#M243557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, you cannot get the path back as part of a query. You can, however, make a CMIS API call to get the list of paths an object is in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, if you use the OpenCMIS Workbench, here is what it would look like in the Groovy console:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;doc = session.getObject('a8a507b5-e778-4e67-9795-339c405c0612;1.0')&lt;BR /&gt;println doc.getPaths()&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;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 03:36:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290427#M243557</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-07-30T03:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the path from a cmis:document query?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290428#M243558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff, thank you for your reply, that's very helpful information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, I'm experiencing some issues with your proposed solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using the 'session.getObject(value)' is working fine, but when I try to get the path from it it says "'DotCMIS.Client.ICmisObject' does not contain a definition for 'getPaths' and no extension method 'getPaths' accepting a first argument of type 'DotCMIS.Client.ICmisObject' could be found (are you missing a using directive or an assembly reference?)".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I should have mentioned earlier that I am using DotCMIS in a C# application.&amp;nbsp; Is this functionality missing from DotCMIS as opposed to OpenCMIS?&amp;nbsp; Or is there simply a different method I need to use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help you or others could offer would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:15:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290428#M243558</guid>
      <dc:creator>goebelchase</dc:creator>
      <dc:date>2014-07-30T13:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the path from a cmis:document query?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290429#M243559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For anyone else facing this problem, I managed to figure out how to get a document's path in DotCMIS from the document's ID.&amp;nbsp; I am unsure if this is the most efficient way, but it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICmisObject object = session.GetObject(id);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDocument doc = object as IDocument;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IList&amp;lt;string&amp;gt; path = doc.Paths;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string pathFound = path.ElementAt(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:12:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290429#M243559</guid>
      <dc:creator>goebelchase</dc:creator>
      <dc:date>2014-07-30T17:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get the path from a cmis:document query?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290430#M243560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad you got it working!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Aug 2014 12:32:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-get-the-path-from-a-cmis-document-query/m-p/290430#M243560</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-08-09T12:32:01Z</dc:date>
    </item>
  </channel>
</rss>

