I would like to filter the children of folders from a cmis 1.0 compliant repository with one query. So far that doesn\'t seem to be possible so I have settled to execute two que
I've used this query in order to get children of a particular folder
String query;
query = "SELECT * FROM cmis:document WHERE IN_FOLDER('" + folderId + "')";
and to get all the children
ItemIterable<QueryResult> resultList = session.query(query, false);// No need to say about session ???
and finally
for (QueryResult qr : resultList) {
String idDocument = qr.getPropertyByQueryName("cmis:objectId").getFirstValue().toString();
Document doc = (Document) session.getObject(idDocument);
}
Note that in my example i only get cmis:objectId
you can get more from Cmis Query
Hope that will help you.