Home

Retrive comments for a document using CMIS

You are here

4 posts / 0 new
Last post
Retrive comments for a document using CMIS

Hello,

Is it possible to retrieve the comments attached to a document ?
How ?
I saw that cmis:checkInComment is given when searching, but not comments...

Thanks for advance

Re: Retrive comments for a document using CMIS

Not directly, because comments are stored as children of the document on which they are commenting, and CMIS only supports parent-child relationships for folders and their children.

However, comments are implemented as forum posts, and objects of that type (fm:post) are queryable. I just don't see an obvious way to relate the comments you'd get back from such a query to the documents they correspond to.

Jeff

Chief Community Officer
Alfresco Software
Blog: ecmarchitect.com | Twitter: jeffpotts01
CMIS APIs: Apache Chemistry | CMIS and Apache Chemistry in Action
Alfresco tutorials: Alfresco Developer Series

Re: Retrive comments for a document using CMIS

Thank you.

Re: Retrive comments for a document using CMIS

I have a js file which runs on document update. I want to get the comments data. I have managed to get the versioning number

${document.properties["cm:versionLabel"]}

How can I do this?