public interface OnSaveListener extends TransactedListener
When in a transaction context the transaction commit or rollback will flush the event stack so when a new transaction is started the new events will always be collected in a clean stack.
Note that the save event that triggered the notification is not part of the events passed to that listener
void onSave(CoreEvent events)
This method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
events- all core events collected in current transaction.
void onSave(Operation<?> events)
This method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
events- all operation events collected in current transaction
Copyright © 2011 Nuxeo SA. All Rights Reserved.