Class WebhookServicesAfterSaveEventListener

java.lang.Object
de.hybris.platform.webhookservices.event.WebhookServicesAfterSaveEventListener
All Implemented Interfaces:
AfterSaveListener

public class WebhookServicesAfterSaveEventListener extends Object implements AfterSaveListener
An AfterSaveEvent listener that converts the AfterSaveEvent to WebhookEvents before sending it to the EventSender
  • 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 send WebhookEvent
      tenantLifecycle - 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.
      Parameters:
      eventSender - An event sender that will send AbstractEvent
      tenantLifecycle - TenantLifecycle to regulate the operation of this listener
      webhookEventFactory - A factory to create WebhookEvents
    • WebhookServicesAfterSaveEventListener

      public WebhookServicesAfterSaveEventListener(@NotNull @NotNull RootEventSender rootEventSender, @NotNull @NotNull TenantLifecycle tenantLifecycle, @NotNull @NotNull WebhookEventFactory webhookEventFactory)
      Parameters:
      tenantLifecycle - TenantLifecycle to regulate the operation of this listener
      webhookEventFactory - A factory to create WebhookEvents
      rootEventSender - An event sender that will send WebhookEvent
  • Method Details

    • afterSave

      public void afterSave(Collection<AfterSaveEvent> events)
      Takes real action to deal with the AfterSaveEvents. Converts each AfterSaveEvent into WebhookEvents
      Specified by:
      afterSave in interface AfterSaveListener
      Parameters:
      events - A collection of AfterSaveEvent
    • 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(since="2205", forRemoval=true) public void setModelService(ModelService modelService)
      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