chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: maxItems parameter?
Date Sat, 17 Oct 2015 11:11:09 GMT
Hi AJ,

Yes, that is supported by OpenCMIS and DotCMIS.
You control the maxItems parameter with the getPage() method and the
skipCount parameter with the skipTo() method.

To get the first 10 hits call this:
session.query(...).getPage(10)

To skip the first 3 hits and then get a list of max 100 hits call this:
session.query(...).skiptTo(3).getPage(100)


The corresponding JavaDoc is here:
https://chemistry.apache.org/java/0.13.0/maven/apidocs/org/apache/chemistry/opencmis/client/api/ItemIterable.html


- Florian


> It is my understanding that there is an optional "maxItems" for (at
> least) searching in the CMIS standard?
> 
> A quote from something I read: The CMIS specification defines the
> maxItems parameter as “the maximum number of items to return in a
> response”.
> 
> I believe this is different than "MaxItemsPerPage" in our OC properties.
> 
> But the actual question is whether this is supported/available in
> DotCMIS (or OpenCMIS)? I expected it to maybe be in the OC, but it's not
> there. Checked if there's an overloaded session.Query() method, but it's
> not there either.
> 
> Is this available???
> 
> Thanks,
> AJ
> 

Mime
View raw message