<?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 limit the number of children in the folder.getChildren call in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277283#M230413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a need in my project, where I just need a limited number of children to be returned when the getChildren() is called. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was directly using CMIS api before, where in the navigationService.getChildren provided an option to limit the number of children fetched. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now we moved to the openCMIS, where I'm using folder.getChildren() API. But this does not provide an option to limit the number of results. (I tried setting the maxitemsPerPage on operationContext. It just sets the number of items fetched per page. Does not help)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone plz help me, if its possible to limit the number of results?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2012 05:29:47 GMT</pubDate>
    <dc:creator>jeffreydare</dc:creator>
    <dc:date>2012-10-30T05:29:47Z</dc:date>
    <item>
      <title>limit the number of children in the folder.getChildren call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277283#M230413</link>
      <description>Hey!I have a need in my project, where I just need a limited number of children to be returned when the getChildren() is called. I was directly using CMIS api before, where in the navigationService.getChildren provided an option to limit the number of children fetched. Now we moved to the openCMIS,</description>
      <pubDate>Tue, 30 Oct 2012 05:29:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277283#M230413</guid>
      <dc:creator>jeffreydare</dc:creator>
      <dc:date>2012-10-30T05:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: limit the number of children in the folder.getChildren call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277284#M230414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you trying to get a single set of results with an upper limit on the number of results (ie. you're not interested in paging through) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so then you should be able to treat that call as a single "page", ie. set skipCount to 0 and maxItemsPerPage as the upper limit …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 18:05:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277284#M230414</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2012-10-30T18:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: limit the number of children in the folder.getChildren call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277285#M230415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply. But, I tried another way, this also worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemIterable&amp;lt;CmisObject&amp;gt; children = folder.getChildren();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; children = children.getPage(50);&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;Now, the children just returns 50 objects. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please confirm, if this is a Ok?? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 04:33:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277285#M230415</guid>
      <dc:creator>jeffreydare</dc:creator>
      <dc:date>2012-11-05T04:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: limit the number of children in the folder.getChildren call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277286#M230416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FYI, see also:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://chemistry.apache.org/java/examples/example-list-folder.html" rel="nofollow noopener noreferrer"&gt;http://chemistry.apache.org/java/examples/example-list-folder.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int maxItemsPerPage = 50;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int skipCount = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 18:07:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-the-number-of-children-in-the-folder-getchildren-call/m-p/277286#M230416</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2012-11-27T18:07:49Z</dc:date>
    </item>
  </channel>
</rss>

