<?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 count folder and document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-count-folder-and-document/m-p/301932#M255062</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 want know a number of the documents and file in a root folder. I do a simple query and retrieve a property getTotalNumItems of ItemIterable&amp;lt;QueryResult&amp;gt; query. I think that this solution is no better solution to count a item of specific root folder. My code is:&lt;/SPAN&gt;&lt;BR /&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;String query = "SELECT * FROM cmis:document D WHERE IN_TREE (D, '"+workSpace+"') ";&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;&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;ItemIterable&amp;lt;QueryResult&amp;gt; q = session.query(query, false);&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;&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; q.getTotalNumItems();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another mode to retrieve a number of item of root folder from CMIS protocol?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 14:11:47 GMT</pubDate>
    <dc:creator>sintextsrl</dc:creator>
    <dc:date>2016-06-22T14:11:47Z</dc:date>
    <item>
      <title>CMIS count folder and document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-count-folder-and-document/m-p/301932#M255062</link>
      <description>Hi,I want know a number of the documents and file in a root folder. I do a simple query and retrieve a property getTotalNumItems of ItemIterable&amp;lt;QueryResult&amp;gt; query. I think that this solution is no better solution to count a item of specific root folder. My code is:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String query = "SEL</description>
      <pubDate>Wed, 22 Jun 2016 14:11:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-count-folder-and-document/m-p/301932#M255062</guid>
      <dc:creator>sintextsrl</dc:creator>
      <dc:date>2016-06-22T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS count folder and document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-count-folder-and-document/m-p/301933#M255063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think is the only way: look at Florian comment in this post &lt;/SPAN&gt;&lt;A href="https://angelborroy.wordpress.com/2014/07/15/alfresco-·-counting-elements-by-cmis-queries/" rel="nofollow noopener noreferrer"&gt;https://angelborroy.wordpress.com/2014/07/15/alfresco-·-counting-elements-by-cmis-queries/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 20:57:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-count-folder-and-document/m-p/301933#M255063</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2016-06-22T20:57:57Z</dc:date>
    </item>
  </channel>
</rss>

