<?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 CMIS search problem in public REST API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97751#M28557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm am trying to integrate with Alfresco using it's public REST API and I found some limitations there so far.&lt;BR /&gt;Currently I'm using Alfresco 5.2 Community edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I was not able to get list of all available fields on a node, as it is not possible to get dictionary info using Alfresco's public REST API. With above mentioned, I assume I cannot also get list of all available permissions that one can set on a node, please correct if I'm wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I'm using search API, and cmis QL, I'm not able to get just specific properties from the cmis:document. If I use following&amp;nbsp;POST call:&lt;BR /&gt;&lt;A href="http://localhostport" rel="nofollow noopener noreferrer"&gt;http://localhost&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco/api/-default-/public/search/versions/1/search&lt;/A&gt;&lt;BR /&gt;with following body parameter:&lt;BR /&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;"query": {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"language": "cmis",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"query": "select&amp;nbsp;* from cmis:document where cmis:name like 'tes%'",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;result I've got is as expected.&lt;BR /&gt;&lt;BR /&gt;But if I use query to select specific&amp;nbsp;cmis&amp;nbsp;properties e.g.&amp;nbsp;&lt;BR /&gt; &lt;STRONG&gt;"query": "select cmis&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;bjectId from cmis:document where cmis:name like 'djur%'",&lt;BR /&gt;&lt;/STRONG&gt;it returns me exactly the same subset of data as I'm using &lt;STRONG&gt;'*'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug in Alfresco public REST API, or is there another way to achieve what I described above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Djordje&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jul 2019 16:49:40 GMT</pubDate>
    <dc:creator>djole87</dc:creator>
    <dc:date>2019-07-01T16:49:40Z</dc:date>
    <item>
      <title>CMIS search problem in public REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97751#M28557</link>
      <description>Hi everyone,I'm am trying to integrate with Alfresco using it's public REST API and I found some limitations there so far.Currently I'm using Alfresco 5.2 Community edition.First I was not able to get list of all available fields on a node, as it is not possible to get dictionary info using Alfresco</description>
      <pubDate>Mon, 01 Jul 2019 16:49:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97751#M28557</guid>
      <dc:creator>djole87</dc:creator>
      <dc:date>2019-07-01T16:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS search problem in public REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97752#M28558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the &lt;STRONG&gt;fields JSON body parameter&lt;/STRONG&gt; to restrict the fields returned within a response Like:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "query": {&lt;BR /&gt; "language": "cmis",&lt;BR /&gt; "query": "select * from cmis:document where cmis:name like 'tes%'"&lt;BR /&gt; },&lt;BR /&gt; "fields": ["id"]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer this&amp;nbsp;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/#!/search/search" title="https://api-explorer.alfresco.com/api-explorer/#!/search/search" rel="nofollow noopener noreferrer"&gt;Alfresco Content Services REST API Explorer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prachi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 11:15:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97752#M28558</guid>
      <dc:creator>prachi_shah_c2</dc:creator>
      <dc:date>2019-07-02T11:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS search problem in public REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97753#M28559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi Prachi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your response. Yeah I know that I can use fields property to filter fields I would like to see in the response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my use case users are writing these queries and sending it to the service I provide. And to use fields property you've mentioned, I would need to know exact mapping between all cmis available properties and alfresco fields (objectId-&amp;gt;id, name-&amp;gt;name... ) and I'm not sure how to know these mappings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Đorđe&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 08:38:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97753#M28559</guid>
      <dc:creator>djole87</dc:creator>
      <dc:date>2019-07-04T08:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS search problem in public REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97754#M28560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There really are not that many CMIS properties to map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cmis&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;bjectId =&amp;gt; id&lt;/LI&gt;&lt;LI&gt;cmis&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;bjectTypeId =&amp;gt; nodeType&lt;/LI&gt;&lt;LI&gt;cmis:secondaryObjectTypeId =&amp;gt; aspectNames&lt;/LI&gt;&lt;LI&gt;cmis:name =&amp;gt; name&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Most/all of those should be quite easy to figure out by looking at the documentation of the response schema for the &lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/search/search" rel="nofollow noopener noreferrer"&gt;search operation&lt;/A&gt;, e.g. that&amp;nbsp;cmis:createdBy maps to createdByUser etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 09:46:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97754#M28560</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-07-04T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS search problem in public REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97755#M28561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you maybe know&amp;nbsp;to which Alfresco fields&amp;nbsp;the following cmis props are mapped?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #727174; background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:isImmutable&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:isLatestVersion&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:isMajorVersion&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:isLatestMajorVersion&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:versionLabel&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:versionSeriesId&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:isVersionSeriesCheckedOut&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:versionSeriesCheckedOutBy&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:versionSeriesCheckedOutId&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:checkinComment&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:contentStreamFileName&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;cmis:contentStreamId&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Đorđe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 10:30:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97755#M28561</guid>
      <dc:creator>djole87</dc:creator>
      <dc:date>2019-07-04T10:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS search problem in public REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97756#M28562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;cmis:versionLabel =&amp;gt; properties.cm:versionLabel&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other properties&amp;nbsp;all have no directly corresponding Alfresco properties / fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 10:57:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-search-problem-in-public-rest-api/m-p/97756#M28562</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-07-04T10:57:04Z</dc:date>
    </item>
  </channel>
</rss>

