Hi,
I’m using XWiki 13.10.5 and I have written an extension that listens for page/document deletions and renames. In the case of a rename my code appears to be getting a delete event which is part of the rename job (I.e. context.isIn(new DocumentRenamingEvent());
returns true
) but separately a second DocumentDeletedEvent
which isn’t part of the rename job (context.isIn(new DocumentRenamingEvent());
returns false
) as well as a DocumentRenamedEvent
.
As such, my code can’t reliably tell whether the document has been deleted or renamed.
Is there something I may be doing wrong or is there a way to determine whether a Delete event is an actual delete or part of a rename?
Thanks in advance,
Alex