|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CoreEventListenerService
Repository listener.
EventListener
,
CoreEvent
Method Summary | |
---|---|
void |
addEventListener(EventListener listener)
Adds a repository event listener. |
void |
fireOperationStarted(Operation<?> command)
Fires a command starting event. |
void |
fireOperationTerminated(Operation<?> command)
Fires a command termination event. |
EventListener |
getEventListenerByName(String name)
Returns an event listener given its name. |
Collection<EventListener> |
getEventListeners()
Returns the collection of event listeners. |
void |
notifyEventListeners(CoreEvent coreEvent)
Notifies a core event. |
void |
removeEventListener(EventListener listener)
Removes a repository event listener. |
void |
transactionCommited()
Notify post commit listeners about all events raised in the current transaction. |
void |
transactionRollbacked()
Called by the core session after the current transaction was rollbacked. |
void |
transactionStarted()
A new transaction started. |
Method Detail |
---|
void addEventListener(EventListener listener)
listener
- the event listener to addvoid removeEventListener(EventListener listener)
listener
- the event listener to removevoid notifyEventListeners(CoreEvent coreEvent)
Event listeners are notified if they are configured to process the given event type. They are notified in the order defined in their settings.
coreEvent
- a coreEvent instancevoid fireOperationStarted(Operation<?> command)
command
- the commandvoid fireOperationTerminated(Operation<?> command)
command
- the command that terminatedCollection<EventListener> getEventListeners()
EventListener getEventListenerByName(String name)
name
- the name of the event listener used a registration time
void transactionCommited()
void transactionRollbacked()
void transactionStarted()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |