alfresco - How to filter folder children using cmis query? -
i filter children of folders cmis 1.0 compliant repository 1 query. far doesn't seem possible have settled execute 2 queries retrieve children (i.e. folders , documents), still filter children custom types have following query:
select cmis:objecttypeid, cmis:objectid cmis:folder cmis:objecttypeid = 'my:custom1' or cmis:objecttypeid = 'my:custom2' or cmis:objecttypeid = 'cmis:folder' in_folder('workspace://spacesstore/fhj738tw-45hw-659u-9ds1-9cx3nh95r089')
which doesn't work keep getting error mismatched input.
i've used query in order children of particular folder
string query; query = "select * cmis:document in_folder('" + folderid + "')";
and children
itemiterable<queryresult> resultlist = session.query(query, false);// no need session ???
and
for (queryresult qr : resultlist) { string iddocument = qr.getpropertybyqueryname("cmis:objectid").getfirstvalue().tostring(); document doc = (document) session.getobject(iddocument); }
note in example cmis:objectid
can more cmis query
hope you.
Comments
Post a Comment