public class AuditEventLogger extends Object implements PostCommitFilteringEventListener
EventBundleinto the Audit log.
|Constructor and Description|
|Modifier and Type||Method and Description|
Checks if this event is worth passing to the asynchronous
Handles the set of events that were raised during the life of an user operation.
public boolean acceptEvent(Event event)
Note that the event's documents are usually disconnected into
ShallowDocumentModel instances, which means that this
method may not be able to get to all the information it would get from a standard DocumentModel implementation.
If there is not enough information in the ShallowDocumentModel to decide whether this event is of interest, then
this method should accept it an let the actual logic done in
PostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle) do the final filtering.
event- the event
trueto accept it, or
falseto ignore it
public void handleEvent(EventBundle events)
The events are fired as a
BundleEvent after the transaction is committed.
events- the events to handle
Copyright © 2016 Nuxeo SA. All rights reserved.