05-30-2013 12:08 PM
SELECT *
FROM cmis:document
WHERE IN_FOLDER('workspace://SpacesStore/d588e663-7dc4-48b2-be8e-b6044584f769')
ItemIterable<QueryResult> risultati = <SOMETHING>.getSession(Security.connectedUser()).query(query,false);
Session session = cmisClient.getSession();
OperationContext operationContext = new OperationContextImpl();
operationContext.setMaxItemsPerPage(25);
String queryString = <MYQUERY>;
ItemIterable<QueryResult> results = session.query(queryString, false,operationContext);
int pageNumber = 0;
boolean finished = false;
int count = 0;
while (!finished) {
ItemIterable<QueryResult> currentPage = results.skipTo(count).getPage();
for (QueryResult qResult : currentPage) {
<SOME LOGIC>
count++;
}
pageNumber++;
if (!currentPage.getHasMoreItems())
finished = true;
}
ItemIterable<QueryResult> currentPage = results.skipTo(count).getPage();
after first 25 results I have a CmisRuntimeException because currentaPage have no data 07-05-2013 12:48 PM
09-04-2014 05:52 AM
09-04-2014 05:52 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.