Can't remove event be called *before* the remove actions, because if you
call them after, the object no longer exists and you can't do test on it
(and rise a VetoException in some case ...)
Honor� David wrote:
Hi,
For our project we need to keep trace of any information object
(Node+Revisions ... let's call this an Entity), Including after deletion.
We want that when a user delete an entity via webdav these entity will
be moved to another place (and a reference to the new uri will be
stored in a property of the parent node.)
(You can see this like a "recycle bin" or a "trash can" functionality)
I'am trying to use the event system to make a copy of the entity
before effective deletion. but ... MacroEvent.DELETE event is call
after all data have been deleted and StructureEvent.REMOVE is call
before node deletion but AFTER deletion of all revisions ... then
impossible to do a copy.
Is there any way do some task (with possibility to throw a
VetoException) BEFORE a delete or a remove ?
Thanks,
David.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]