@Deprecated public class PictureViewListener extends Object implements PostCommitFilteringEventListener
Constructor and Description |
---|
PictureViewListener()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptEvent(Event event)
Deprecated.
Checks if this event is worth passing to the asynchronous
PostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle) . |
void |
handleEvent(EventBundle events)
Deprecated.
Handles the set of events that were raised during the life of an user operation.
|
public void handleEvent(EventBundle events) throws ClientException
PostCommitEventListener
The events are fired as a BundleEvent
after the transaction is committed.
handleEvent
in interface PostCommitEventListener
events
- the events to handleClientException
public boolean acceptEvent(Event event)
PostCommitFilteringEventListener
PostCommitEventListener.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 in PostCommitEventListener.handleEvent(org.nuxeo.ecm.core.event.EventBundle)
do the final filtering.
acceptEvent
in interface PostCommitFilteringEventListener
event
- the eventtrue
to accept it, or false
to ignore itCopyright © 2015 Nuxeo SA. All rights reserved.