Class AbstractWebhookEventSender
java.lang.Object
de.hybris.platform.webhookservices.service.impl.AbstractWebhookEventSender
- All Implemented Interfaces:
WebhookEventSender
- Direct Known Subclasses:
WebhookDeleteEventToItemSender,WebhookEventToItemSender
Abstract class implements the
WebhookEventSender. This abstract class contains common methods that used by
WebhookEventToItemSender and WebhookDeleteEventToItemSender to do the actual posting to the destination because
the OutboundServiceFacade already provides item to JSON conversion and monitoring.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractWebhookEventSender(@NotNull ItemModelSearchService itemModelSearchService, @NotNull OutboundServiceFacade outboundServiceFacade) Constructor fort theAbstractWebhookEventSender -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemModelSearchServiceprotected booleanisMatchingDestinationTarget(WebhookConfigurationModel webhookConfig, EventSourceData eventSourceData) protected Optional<EventConfigurationModel>loadWithoutCaching(EventConfigurationModel eventConfig) protected voidlogDebug(ItemModel item, WebhookConfigurationModel webhookConfiguration) protected voidsendToWebhook(@NotNull WebhookConfigurationModel webhookConfiguration, ItemModel item, EventType eventType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.webhookservices.service.WebhookEventSender
send
-
Constructor Details
-
AbstractWebhookEventSender
protected AbstractWebhookEventSender(@NotNull @NotNull ItemModelSearchService itemModelSearchService, @NotNull @NotNull OutboundServiceFacade outboundServiceFacade) Constructor fort theAbstractWebhookEventSender- Parameters:
itemModelSearchService- to look upItemModeloutboundServiceFacade- to send the event out to the destination
-
-
Method Details
-
sendToWebhook
protected void sendToWebhook(@NotNull @NotNull WebhookConfigurationModel webhookConfiguration, ItemModel item, EventType eventType) -
isMatchingDestinationTarget
protected boolean isMatchingDestinationTarget(WebhookConfigurationModel webhookConfig, EventSourceData eventSourceData) -
loadWithoutCaching
-
getItemModelSearchService
-
logDebug
-