cancel
Showing results for 
Search instead for 
Did you mean: 

Comments to The Documents By using Alfresco WebServices API or CMIS API

narithota
Champ in-the-making
Champ in-the-making
Hi Team,

I have a requirement to add comments to the documents and show the comments of the document by reading them from alfresco.

However I've managed to upload the document with comments by adding "comment" as a custom metadata field. But this is not a good approach at all.

I heard that alfresco share supports adding, editing and removing the comments to a documents.

So is there any way to add comments to the documents by using web-service or CMIS API?

Is alfresco share supports this by using web-interface only or can we do it by programmatically?

Alfresco 4.0 Community Edition.

Please provide some suggestions on this.

Thanks
Naresh







1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
You cannot create comments via CMIS. If you are running against Alfresco in the Cloud you can use the Public API to comment on documents because the REST half of the Public API supports commenting. You can see an example <a href="http://code.google.com/p/alfresco-api-java-examples/source/browse/alfresco-cloud-example/src/main/ja...">here</a>.

We want the Public API to be the same in the cloud and on-premise but it isn't yet. Until then, if you are running against on-premise, you can use <a href="http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Comment">an existing web script</a>, write your own web script, or use the web services API.

Jeff