Package org.nuxeo.ecm.core.event
Interface PostCommitFilteringEventListener
-
- All Superinterfaces:
PostCommitEventListener
- All Known Implementing Classes:
AbstractLongRunningListener
,ACEStatusUpdatedListener
,AsynchronousUnicityCheckListener
,AuditEventLogger
,CheckedInCommentListener
,NotificationEventListener
,NuxeoDriveGroupUpdateListener
,NuxeoDriveVirtualEventLogger
,PermissionGrantedNotificationListener
,PostCommitOperationEventListener
,StoredRenditionsCleanupListener
,TaggedVersionListener
,TemplateTypeBindingListener
public interface PostCommitFilteringEventListener extends PostCommitEventListener
Post-commit listener that can decide synchronously whether it's worth calling.This is useful if there are quick decisions that can be made synchronously, and to avoid creating useless thread work.
- Since:
- 5.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
acceptEvent(Event event)
Checks if this event is worth passing to the asynchronousPostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle)
.-
Methods inherited from interface org.nuxeo.ecm.core.event.PostCommitEventListener
handleEvent
-
-
-
-
Method Detail
-
acceptEvent
boolean acceptEvent(Event event)
Checks if this event is worth passing to the asynchronousPostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle)
.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 inPostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle)
do the final filtering.- Parameters:
event
- the event- Returns:
true
to accept it, orfalse
to ignore it- Since:
- 5.6
-
-