Accessing all the revision history of a document

Hello everyone!

This is my first post in this community and I am writing because I am relatively new developer when it comes to Hippo and I am looking for resources for my latest task.

I am building an audit feature for an application that wants a detailed history of all edits done to documents that we store in hippo. Does anyone have any referencing material that can detail the best way to collect this information? Any suggestions would be greatly appreciated!

Thanks so much,

Hi Phill,

Welcome in our community!

The history of documents is retained in the JCR versions below /jcr:system/jcr:versionStorage. Documents reference it by the jcr:versionHistory property and it can be retrieved though JCR API using methods like node VersionManager#getVersionHistory(path).
The system comes out of the box with a script to clean up the version history, see [1], perhaps you can learn from that.

This is the basics, next step is to expose the information safely, probably through a REST api?



Hello Jeroen,

Thank you very much for your reply! This looks like exactly the information I was looking for. I will start digging here and see what I can find.

Yes, that is the plan exactly. After I can get the revision history information that I need, I will expose access to that information in a RESTful api.

Your help is much appreciated. Thanks for the warm welcome into the Hippo community.


be sure to check: