Hi Anjan,

as you noted the eventing is happening "post-mortem" so no way to get the
relevant metadata. If you'd use Apache Oak as persistence you could
register a commit hook that allows you to  to interact with the "before"
and "after" state. The alternative within Apache Sling would be to have a
custom ResourceProvider in between Sling and JCR where you could intercept
the delete operation and store the information that you need (check out the
superimposing resourceprovider in contrib to check out how such a
"delegating" resourceprovider could work).

HTH
Dominik

On Wed, Mar 11, 2015 at 6:50 AM, Anjan <poliset...@gmail.com> wrote:

> When a document is deleted, SlingConstants.TOPIC_RESOURCE_REMOVED event is
> fired.  But the node is already deleted by the time I try to access it by
> it's path.  So I cannot access the VersionHistory either.  So how to access
> the VersionHistory just before the node is deleted?
>
>
>
> --
> View this message in context:
> http://apache-sling.73963.n3.nabble.com/Datastore-usage-tp4048204p4048330.html
> Sent from the Sling - Users mailing list archive at Nabble.com.
>

Reply via email to