|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.listener.AbstractEventListener org.nuxeo.ecm.core.listener.impl.TestTransactedListener
public class TestTransactedListener
This is a test listener that prints out transacted notifications.
Constructor Summary | |
---|---|
TestTransactedListener()
|
Method Summary | |
---|---|
void |
aboutToCommit(CoreEvent[] events)
Current transaction is about to commit. |
void |
aboutToCommit(Operation<?>[] events)
Current transaction is about to commit. |
void |
onCommit(CoreEvent[] events)
Current transaction was committed. |
void |
onCommit(Operation<?>[] events)
Current transaction was committed. |
void |
onSave(CoreEvent[] events)
Notify Last save in current transaction. |
void |
onSave(Operation<?>[] events)
Notify Last save in current transaction. |
Methods inherited from class org.nuxeo.ecm.core.listener.AbstractEventListener |
---|
accepts, addEventId, getName, getOrder, handleEvent, notifyEvent, operationStarted, operationTerminated, removeEventId, setName, setOrder |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestTransactedListener()
Method Detail |
---|
public void onCommit(CoreEvent[] events)
PostCommitListener
This method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
onCommit
in interface PostCommitListener
events
- all core events collected in current transaction.public void onCommit(Operation<?>[] events)
PostCommitListener
This method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
onCommit
in interface PostCommitListener
events
- all operation events collected in current transactionpublic void onSave(CoreEvent[] events)
OnSaveListener
This method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
onSave
in interface OnSaveListener
events
- all core events collected in current transaction.public void onSave(Operation<?>[] events)
OnSaveListener
This method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
onSave
in interface OnSaveListener
events
- all operation events collected in current transactionpublic void aboutToCommit(CoreEvent[] events)
PreCommitListener
This method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
aboutToCommit
in interface PreCommitListener
events
- all core events collected in current transaction.public void aboutToCommit(Operation<?>[] events)
PreCommitListener
This method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
aboutToCommit
in interface PreCommitListener
events
- all operation events collected in current transaction
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |