Hi all,

We're currently creating an app that allows help desk people to track what a 
user did in the system.
In order to do that, we're storing all the OSGi events that get emitted in a 
central store and run some analysis on it.

So far we've been getting a good amount of events related to creation, 
modification and deletion and some of our own custom events. [1]
But we thought it might be nice to also emit an event when a user accesses a 
node?

Now, emitting events for every single GET request might be a bit overkill, 
that's why we only emit events if the resource
has a "sling:tracking" property set to true.

I've created a patch for this and pushed it to codereview to get some feedback. 
[2]
For now everything happens in the DefaultGetServlet as (AFAICT) most of the 
requests hit that servlet first.

WDYT, is this approach doable?

Simon


[1] https://issues.apache.org/jira/browse/SLING-1590
[2] http://codereview.appspot.com/1787044/show

Reply via email to