I wrote below Query in CMIS.
Query= select * from cmis:document
But it returns only first 100 results. Actually in Repository more than 100 results are there.
So how can i get All results using same query?
I wrote below CMIS Code--
Code=
public ArrayList<JSONObject> search() {
ItemIterable<QueryResult> results =null;
StringBuilder sb=null;
sb = new StringBuilder();
sb.append("select * from hr:hrdoctype");
CMISSession1 s=new CMISSession1();
Session session=s.getSession();
// execute query
results = session.query(sb.toString(), false);
ArrayList<JSONObject> list=new ArrayList<>();
for (QueryResult qr : results) {
GregorianCalendar gc = (GregorianCalendar) qr.getPropertyValueById("cmis:creationDate");
try{
int month = gc.getTime().getMonth();
-
-
-
}
catch(org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException e)
{
}
}
-------------
list.add(json);
}
return list;
}
Please Help.
Thanks in Advance.