cancel
Showing results for 
Search instead for 
Did you mean: 

Auditing comment changes

garryw
Champ in-the-making
Champ in-the-making
Hi,

I am currently looking at the auditing capabilities of Alfresco and although I have found a way to Extract the deleted comments values using the content service to access the reader for the deleted node ref, when trying to do the same for a newly created comment the call to contentService.getReader(nodeRef, ContentModel.PROP_CONTENT) returns null.

I had tried starting with the alfresco-access example as a base for the auditing but this does not record event on things like comments it just contains the commentCount as one of the properties.

Any help or advise on this would be much appreciated.

G
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

I think it may not be possible to audit the content of a comment at the exact time the node is created. This is due to the service design, which results in a two-step process: 1) create the node and 2) write the content. In your audit application this means you would need to audit content writes in addition to node creations to extract the necessary values.

Regards
Axel