HI All,
We are trying to write the CMIS consumer in JAVA for CMIS. Query service working but when it returns the results, strangely it doesn't return value for some attributes. Actually if we require values for 4 attributes then it returns value for 2nd and 4th attribute. If we reshuffle the attributes then also it returns values for attributes at position 2nd and 4th.Below the snippet of code.
String inputFile = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone =\"yes\"?>\n" +
"<entry xmlns=\"http://www.w3.org/2005/Atom\" "+
"xmlns:cmisra=\"http://docs.oasis-open.org/ns/cmis/restatom/200908/\" " +
"xmlns:cmis=\"http://docs.oasis-open.org/ns/cmis/core/200908/\">\n" +
"cmis:query xmlns:app=\"http://www.w3.org/2005\" "+
"<cmis:statement>Select cmis:name,acl_name from cmis:document where cmis:objectId='<object_id>'</cmis:statement> "+
"<cmis:searchAllVersions>true</cmis:searchAllVersions> "+
"<cmis:includeRelationships>none</cmis:includeRelationships> "+
"<cmis:renditionFilter>*</cmis:renditionFilter> "+
"<cmis:maxItems>50</cmis:maxItems> "+
"<cmis:skipCount>0</cmis:skipCount> "+
"</entry>\n";
For above it returns acl name but doesn't return object name. If we reshuffle the order in query then it returns object name and not acl name.
Any help will be appreciated.
Also please share any JAVA consumer sample for CMIS.
Regards,
Nil.