Class DefaultWebhookConfigurationService
- java.lang.Object
-
- de.hybris.platform.webhookservices.service.impl.DefaultWebhookConfigurationService
-
- All Implemented Interfaces:
WebhookConfigurationService
public class DefaultWebhookConfigurationService extends java.lang.Object implements WebhookConfigurationService
Default implementation ofWebhookConfigurationService
-
-
Constructor Summary
Constructors Constructor Description DefaultWebhookConfigurationService(@NotNull FlexibleSearchService flexibleSearchService, @NotNull DescriptorFactory descriptorFactory)Instantiates theDefaultWebhookConfigurationService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<WebhookConfigurationModel>getWebhookConfigurationsByEventAndItemModel(AbstractEvent event, ItemModel item)Find WebhookConfigurations that are associated to the given event, and have the Integration Object root item type the same as the given item type
-
-
-
Constructor Detail
-
DefaultWebhookConfigurationService
public DefaultWebhookConfigurationService(@NotNull @NotNull FlexibleSearchService flexibleSearchService, @NotNull @NotNull DescriptorFactory descriptorFactory)Instantiates theDefaultWebhookConfigurationService- Parameters:
flexibleSearchService- Service for searchingItemModelsdescriptorFactory- DescriptorFactory to create descriptors
-
-
Method Detail
-
getWebhookConfigurationsByEventAndItemModel
public java.util.Collection<WebhookConfigurationModel> getWebhookConfigurationsByEventAndItemModel(AbstractEvent event, ItemModel item)
Description copied from interface:WebhookConfigurationServiceFind WebhookConfigurations that are associated to the given event, and have the Integration Object root item type the same as the given item type- Specified by:
getWebhookConfigurationsByEventAndItemModelin interfaceWebhookConfigurationService- Parameters:
event- Event to search foritem- Search Integration Object root items matching the item type- Returns:
- A collection of WebhookConfigurationModels if found, otherwise an empty collection
-
-