Hi,

Core events are now sent using the document model as source (and not the document anymore).

Note that old school event listeners should still work ok for now, but should be migrated soon as the compatibility may introduce bugs and will be removed shortly.

To migrate your event listener, make it implement the empty interface org.nuxeo.ecm.core.listener.DocumentModelEventListener, and make it deal with a DocumentModel instead of a Document as event source.

If you event listener does not care about the source, or the event it deals with is not a document, you should make it follow the interface anyway.

Nuxeo 5 listeners are being migrated. I would need some help migrating the following listeners, if the original developers could have a look at them:

- DocModifierListener
- DocUIDGeneratorListener
- DocVersioningListener
- LifeCycleListener

Please report any problem that you may run into because of that change.
Thanks,

anahide.

--
Anahide Tchertchian, Nuxeo
Mail: [EMAIL PROTECTED] - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to