Class WebhookEventToItemSender
java.lang.Object
de.hybris.platform.webhookservices.service.impl.AbstractWebhookEventSender
de.hybris.platform.webhookservices.service.impl.WebhookEventToItemSender
- All Implemented Interfaces:
WebhookEventSender
This class extends
AbstractWebhookEventSender, this class sends payload of WebhookEvent to destination.-
Constructor Summary
ConstructorsConstructorDescriptionWebhookEventToItemSender(@NotNull OutboundServiceFacade outboundServiceFacade, @NotNull WebhookConfigurationService webhookConfigurationService, @NotNull ItemModelSearchService itemModelSearchService) Instantiates the WebhookEventToItemSender -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(EventSourceData eventSourceData) Sends the given eventvoidsetFilterService(WebhookFilterService service) Injects an optional filter service to be used by this item sender.Methods inherited from class de.hybris.platform.webhookservices.service.impl.AbstractWebhookEventSender
getItemModelSearchService, isMatchingDestinationTarget, loadWithoutCaching, logDebug, sendToWebhook
-
Constructor Details
-
WebhookEventToItemSender
public WebhookEventToItemSender(@NotNull @NotNull OutboundServiceFacade outboundServiceFacade, @NotNull @NotNull WebhookConfigurationService webhookConfigurationService, @NotNull @NotNull ItemModelSearchService itemModelSearchService) Instantiates the WebhookEventToItemSender- Parameters:
outboundServiceFacade- OutboundServiceFacade used to send the event out to the destinationwebhookConfigurationService- WebhookConfigurationService used to look upWebhookConfigurationModelitemModelSearchService- ItemModelSearchService used to look upItemModel
-
-
Method Details
-
send
Description copied from interface:WebhookEventSenderSends the given event- Parameters:
eventSourceData- Context of the event to be sent
-
setFilterService
Injects an optional filter service to be used by this item sender. If the webhook filter service is not injected, no item filtering will be performed.- Parameters:
service- an implementation of theWebhookFilterServicethat will execute filtering logic for the items being sent by this item sender.
-