Any Nuxeo code can define its own events, but it's useful to know some of the standard ones that Nuxeo sends by default.
A document is about to be created. Since it is not yet created, it is still time to cancel its creation (for instance in the case of duplicates).
aboutToRemove - aboutToRemoveVersion
A document or a version are about to be removed.
A document is about to be saved after a modification. A synchronous listener may update the DocumentModel but must not save it (this will be done automatically).
A document's ACLs are about to change.
A document has been created (this implies that a write to the database has occurred). Be careful, this event is sent for all creations, including for new versions and new proxies.
documentLocked - documentUnlocked
A document has been locked or unlocked.
A document has been saved after a modification.
documentRemoved - versionRemoved
A document or a version have been removed.
A document's ACLs have changed.
The data structure for a document has been created, but nothing is saved yet. This is useful to provide default values in document creation forms.
A transition has been followed on a document.
The session has been saved (all saved documents are written to database).
Copy and Move Events
aboutToCopy - aboutToMove
A document is about to be copied or moved.
A document has been copied, the passed document is the new copy.
A document has been copied, the passed document is the original.
A document has been moved.
A document is about to be restored.
A document has been restored.
A document is about to be snapshotted as a new version. The changes made to the passed DocumentModel will be saved in the archived version but will not be seen by the main document being versioned. This is useful to update version numbers and version-related information.
A proxy has been published (or updated).
A proxy has been updated.
New content has been published in this section.
A document waiting for approval has been approved.
A document waiting for approval has been rejected.
A document has been published (event sent for the base document being published and for the published document).
A document has been published but is not approved yet (event sent for the base document being published and for the published document)
A retention is about to be set on a document.
A retention has been set on a document.
A legal hold is about to be set on a document.
A legal hold has been set on a document.
A legal hold is about to be removed on a document.
A legal hold has been removed on a document.
A document is about to be turned into a record.
A document has been turned into a record.