<?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 document by query with all properties without content stream in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-document-by-query-with-all-properties-without-content-stream/m-p/83505#M25545</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;At the moment I'm getting Alfresco documents by queries like that:&lt;/P&gt;&lt;PRE&gt;select cmis:objectId from cmis:document ...&lt;/PRE&gt;&lt;P&gt;then I get the document itself by the following code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;String objectId &lt;/SPAN&gt;= &lt;SPAN&gt;qresult&lt;/SPAN&gt;.getPropertyValueByQueryName(&lt;SPAN&gt;"d.cmis:objectId"&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;Document doc &lt;/SPAN&gt;= (&lt;SPAN&gt;Document&lt;/SPAN&gt;) &lt;SPAN&gt;session&lt;/SPAN&gt;.getObject(&lt;SPAN&gt;session&lt;/SPAN&gt;.createObjectId(&lt;SPAN&gt;objectId&lt;/SPAN&gt;));&lt;/PRE&gt;&lt;P&gt;The problem is that when I get the document like that it seems to transfer the whole contentStream for every document which is not needed in my use-case.&lt;/P&gt;&lt;P&gt;Then I tried to get all properties by changing the query to:&lt;/P&gt;&lt;PRE&gt;select * from cmis:document&lt;/PRE&gt;&lt;P&gt;but this returns only the properties of the document aspect (cmis:name, ...) is it possible to get all properties of the document without having to add all aspect with a "join" to the query?&lt;/P&gt;&lt;P&gt;Or is there another way to get documents with all properties but without the contentstream?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 11:41:45 GMT</pubDate>
    <dc:creator>mundifaber</dc:creator>
    <dc:date>2020-09-25T11:41:45Z</dc:date>
    <item>
      <title>Get document by query with all properties without content stream</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-document-by-query-with-all-properties-without-content-stream/m-p/83505#M25545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;At the moment I'm getting Alfresco documents by queries like that:&lt;/P&gt;&lt;PRE&gt;select cmis:objectId from cmis:document ...&lt;/PRE&gt;&lt;P&gt;then I get the document itself by the following code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;String objectId &lt;/SPAN&gt;= &lt;SPAN&gt;qresult&lt;/SPAN&gt;.getPropertyValueByQueryName(&lt;SPAN&gt;"d.cmis:objectId"&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;Document doc &lt;/SPAN&gt;= (&lt;SPAN&gt;Document&lt;/SPAN&gt;) &lt;SPAN&gt;session&lt;/SPAN&gt;.getObject(&lt;SPAN&gt;session&lt;/SPAN&gt;.createObjectId(&lt;SPAN&gt;objectId&lt;/SPAN&gt;));&lt;/PRE&gt;&lt;P&gt;The problem is that when I get the document like that it seems to transfer the whole contentStream for every document which is not needed in my use-case.&lt;/P&gt;&lt;P&gt;Then I tried to get all properties by changing the query to:&lt;/P&gt;&lt;PRE&gt;select * from cmis:document&lt;/PRE&gt;&lt;P&gt;but this returns only the properties of the document aspect (cmis:name, ...) is it possible to get all properties of the document without having to add all aspect with a "join" to the query?&lt;/P&gt;&lt;P&gt;Or is there another way to get documents with all properties but without the contentstream?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 11:41:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-document-by-query-with-all-properties-without-content-stream/m-p/83505#M25545</guid>
      <dc:creator>mundifaber</dc:creator>
      <dc:date>2020-09-25T11:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get document by query with all properties without content stream</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-document-by-query-with-all-properties-without-content-stream/m-p/83506#M25546</link>
      <description>&lt;P&gt;Asked and answered on Stack Overflow here: &lt;A href="https://stackoverflow.com/questions/64114222/get-opencmis-documents-by-query-with-all-properties-without-content-stream" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/64114222/get-opencmis-documents-by-query-with-all-properties-without-content-stream&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 15:25:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-document-by-query-with-all-properties-without-content-stream/m-p/83506#M25546</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2020-10-20T15:25:00Z</dc:date>
    </item>
  </channel>
</rss>

