Package org.alfresco.event.sdk.handling
Class SimpleEventHandlingExecutor
java.lang.Object
org.alfresco.event.sdk.handling.SimpleEventHandlingExecutor
- All Implemented Interfaces:
EventHandlingExecutor
Simple implementation of
EventHandlingExecutor that uses EventHandlingRegistry to get the List of EventHandlers to
execute based on the event type and after that executes the handling method for each of them whenever the EventFilter condition is fulfilled by the event.-
Constructor Summary
ConstructorsConstructorDescriptionSimpleEventHandlingExecutor(EventHandlingRegistry eventHandlingRegistry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteEventHandlers(org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.Resource>> repoEvent) Execute the event handlers that correspond to a specificRepoEvent.
-
Constructor Details
-
SimpleEventHandlingExecutor
Constructor.- Parameters:
eventHandlingRegistry- givenEventHandlingRegistry
-
-
Method Details
-
executeEventHandlers
public void executeEventHandlers(org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.Resource>> repoEvent) Description copied from interface:EventHandlingExecutorExecute the event handlers that correspond to a specificRepoEvent.- Specified by:
executeEventHandlersin interfaceEventHandlingExecutor- Parameters:
repoEvent- givenRepoEventto be handled
-