I have requirement to fetch some information about document whenever some user downloads or reads that document. So is there some nice way to extend Java API and to fetch information about document in these specific events? I am interested in situations when user using Share UI or some WebDAV client for example.
I do not know if I have enough information to respond to your question. It seems that the audit service is a good candidate (you can implement a custom extractor/generator):