Hello,
At the moment I'm getting Alfresco documents by queries like that:
select cmis:objectId from cmis:document ...
then I get the document itself by the following code:
String objectId = qresult.getPropertyValueByQueryName("d.cmis:objectId");
Document doc = (Document) session.getObject(session.createObjectId(objectId));
The problem is that when I get the document like that it seems to transfer the whole contentStream for every document which is not needed in my use-case.
Then I tried to get all properties by changing the query to:
select * from cmis:document
but this returns only the properties of the document aspect (cmis:name, ...) is it possible to get all properties of the document without having to add all aspect with a "join" to the query?
Or is there another way to get documents with all properties but without the contentstream?
Asked and answered on Stack Overflow here: https://stackoverflow.com/questions/64114222/get-opencmis-documents-by-query-with-all-properties-wit...
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.