Hello guys,
How can I update properties of several documents at once, for example using:
UPDATE cm: indexControl SET cm: isIndexed = true, cm: isContentIndexed = true WHERE cm: isIndexed = false AND cm: isContentIndexed = false AND cmis: objectTypeId = 'D: sij: documento'
sij:documento is a custom type on my data model.
You probably need to raise this question in the Content Services forum.
You can try to query all the objects that you are trying to change properties by queryObjects method of org.apache.chemistry.opencmis.client.api.Session an then call bulkUpdateProperties method of org.apache.chemistry.opencmis.client.api.Session
CMIS is a standard that provides a subset of SQL-92 for discovering objects, but not for modifying them.
http://docs.oasis-open.org/cmis/CMIS/v1.1/os/CMIS-v1.1-os.html#x1-10500014
You need to use other approach like suggested above to update your Repository Nodes.
solved with this tip from Apache Chemitry Samples: https://chemistry.apache.org/docs/cmis-samples/samples/update-objects/index.html
Many thanks for all.
Hi @ArlindoViana,
Glad you got a solution & thanks for the reference - really helpful to other users.
Best wishes,
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.