Class WebhookServicesAfterSaveEventListener
java.lang.Object
de.hybris.platform.webhookservices.event.WebhookServicesAfterSaveEventListener
- All Implemented Interfaces:
AfterSaveListener
An AfterSaveEvent listener that converts the
AfterSaveEvent to WebhookEvents
before sending it to the EventSender-
Constructor Summary
ConstructorsConstructorDescriptionWebhookServicesAfterSaveEventListener(@NotNull EventSender eventSender, @NotNull TenantLifecycle tenantLifecycle) Deprecated, for removal: This API element is subject to removal in a future version.Since 2105.0.WebhookServicesAfterSaveEventListener(@NotNull EventSender eventSender, @NotNull TenantLifecycle tenantLifecycle, @NotNull WebhookEventFactory webhookEventFactory) Deprecated, for removal: This API element is subject to removal in a future version.Since 2205.WebhookServicesAfterSaveEventListener(@NotNull RootEventSender rootEventSender, @NotNull TenantLifecycle tenantLifecycle, @NotNull WebhookEventFactory webhookEventFactory) Instantiates aWebhookServicesAfterSaveEventListener -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSave(Collection<AfterSaveEvent> events) Takes real action to deal with theAfterSaveEvents.voidsetModelService(ModelService modelService) Deprecated, for removal: This API element is subject to removal in a future version.Since 2205.voidsetWebhookConfigurationService(WebhookConfigurationService webhookConfigurationService) Deprecated, for removal: This API element is subject to removal in a future version.Since 2205.
-
Constructor Details
-
WebhookServicesAfterSaveEventListener
@Deprecated(since="2105.0", forRemoval=true) public WebhookServicesAfterSaveEventListener(@NotNull @NotNull EventSender eventSender, @NotNull @NotNull TenantLifecycle tenantLifecycle) Deprecated, for removal: This API element is subject to removal in a future version.Since 2105.0. Use the new constructor instead.Instantiates a
WebhookServicesAfterSaveEventListener- Parameters:
eventSender- An event sender that will sendWebhookEventtenantLifecycle- TenantLifecycle to regulate the operation of this listener
-
WebhookServicesAfterSaveEventListener
@Deprecated(since="2205", forRemoval=true) public WebhookServicesAfterSaveEventListener(@NotNull @NotNull EventSender eventSender, @NotNull @NotNull TenantLifecycle tenantLifecycle, @NotNull @NotNull WebhookEventFactory webhookEventFactory) Deprecated, for removal: This API element is subject to removal in a future version.Since 2205. Use the new constructor instead.Instantiates aWebhookServicesAfterSaveEventListener- Parameters:
eventSender- An event sender that will sendAbstractEventtenantLifecycle- TenantLifecycle to regulate the operation of this listenerwebhookEventFactory- A factory to createWebhookEvents
-
WebhookServicesAfterSaveEventListener
public WebhookServicesAfterSaveEventListener(@NotNull @NotNull RootEventSender rootEventSender, @NotNull @NotNull TenantLifecycle tenantLifecycle, @NotNull @NotNull WebhookEventFactory webhookEventFactory) Instantiates aWebhookServicesAfterSaveEventListener- Parameters:
tenantLifecycle- TenantLifecycle to regulate the operation of this listenerwebhookEventFactory- A factory to createWebhookEventsrootEventSender- An event sender that will sendWebhookEvent
-
-
Method Details
-
afterSave
- Specified by:
afterSavein interfaceAfterSaveListener- Parameters:
events- A collection ofAfterSaveEvent
-
setWebhookConfigurationService
@Deprecated(since="2205", forRemoval=true) public void setWebhookConfigurationService(WebhookConfigurationService webhookConfigurationService) Deprecated, for removal: This API element is subject to removal in a future version.Since 2205. No longer used.Sets the WebhookConfigurationService- Parameters:
webhookConfigurationService- WebhookConfigurationService to search for WebhookConfigurations
-
setModelService
Deprecated, for removal: This API element is subject to removal in a future version.Since 2205. No longer used.Sets the ModelService- Parameters:
modelService- ModelService to search for items
-