Class DefaultWebhookItemPayloadConverter
java.lang.Object
de.hybris.platform.webhookservices.cache.DefaultWebhookItemPayloadConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<ItemModel,Set<WebhookItemConversion>>
public class DefaultWebhookItemPayloadConverter
extends Object
implements org.springframework.core.convert.converter.Converter<ItemModel,Set<WebhookItemConversion>>
The default
WebhookItemConversion converter.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWebhookItemPayloadConverter(@NotNull WebhookConfigurationService webhookConfigurationService, @NotNull IntegrationObjectConversionService conversionService, @NotNull WebhookFilterService webhookFilterService) Instantiates a new Webhook item payload conversion service. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
DefaultWebhookItemPayloadConverter
public DefaultWebhookItemPayloadConverter(@NotNull @NotNull WebhookConfigurationService webhookConfigurationService, @NotNull @NotNull IntegrationObjectConversionService conversionService, @NotNull @NotNull WebhookFilterService webhookFilterService) Instantiates a new Webhook item payload conversion service.- Parameters:
webhookConfigurationService- to look upWebhookConfigurationModelconversionService- to convert an item model to the integration object payloadwebhookFilterService- to filterItemModelbeing sent to a webhook
-
-
Method Details
-
convert
ConvertsItemModeltoWebhookItemConversion.- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<ItemModel,Set<WebhookItemConversion>> - Parameters:
item- the deletedItemModelto convert- Returns:
- the set of
WebhookItemConversionif item can be converted; otherwise returnsCollections.emptySet()
-