How do you get the type of an event?

What is the call to get the type of an event?

These types are shown in the “Common Events” section of “Events and Listeners”, http://doc.nuxeo.com/display/NXDOC/Events+and+Listeners

0 votes

1 answers

821 views

ANSWER



I found this posting from member 'moise' which answered my question:

http://forum.nuxeo.com/?t=msg&goto=18110&&srch=DocumentEventTypes#msg_18110

A snippet from that post:

if (!(event.getName().equals(documenteventtypes.DOCUMENT_CREATED))) {

The constants for document event types can be found in (for Nuxeo 5.6, for example):

http://community.nuxeo.com/api/nuxeo/5.6/javadoc/org/nuxeo/ecm/core/api/event/DocumentEventTypes.html

0 votes