Hi everyone,
In the frame of an extension which has to perform some actions on page removal, I was wondering whether there’s a canonical way to detect that a DocumentDeletedEvent
takes place in a renaming context by opposition to a complete page removal. Currently, the listener performs the check below using the ObservationContext
, but there might be something more appropriate, what do you think?
observationContext.isIn(new JobStartedEvent("refactoring/rename"));
Cheers
Stéphane