This is where i get stuck Can you please explain how to be done. I mean any useful samples/tutorials/links will be much much appreciated. I don’t find useful while searching it.
There is no module right now which is doing specifically what you are doing (send rights related events) but here are two input filters generating object related events in general:
But before that you will need to have a good understanding of the XWiki object model. If that’s not already the case the following resource might help you understand what you should produce in the filter: