Class DefaultWebhookConfigurationService
java.lang.Object
de.hybris.platform.webhookservices.service.impl.DefaultWebhookConfigurationService
- All Implemented Interfaces:
WebhookConfigurationService
public class DefaultWebhookConfigurationService
extends Object
implements WebhookConfigurationService
Default implementation of
WebhookConfigurationService-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWebhookConfigurationService(@NotNull FlexibleSearchService flexibleSearchService, @NotNull DescriptorFactory descriptorFactory) Deprecated, for removal: This API element is subject to removal in a future version.use new constructor insteadDefaultWebhookConfigurationService(@NotNull FlexibleSearchService flexibleSearchService, @NotNull DescriptorFactory descriptorFactory, @NotNull ItemModelSearchService itemSearchService) Instantiates theDefaultWebhookConfigurationService -
Method Summary
Modifier and TypeMethodDescriptionfindByEventAndItemMatchingAnyItem(WebhookEvent event, ItemModel item) Find WebhookConfigurations that are associated to the given webhook event, and have an Integration Object Item with the same type as the given item typefindByEventAndItemMatchingRootItem(WebhookEvent event, ItemModel item) Find WebhookConfigurations that are associated to the given webhook event, and have the Integration Object root item with the same type as the given item type.Find WebhookConfiguration by a primary keyFind WebhookConfigurations that are associated to the given abstract event, and have the Integration Object root item type the same as the given item type
-
Constructor Details
-
DefaultWebhookConfigurationService
@Deprecated(since="2205", forRemoval=true) public DefaultWebhookConfigurationService(@NotNull @NotNull FlexibleSearchService flexibleSearchService, @NotNull @NotNull DescriptorFactory descriptorFactory) Deprecated, for removal: This API element is subject to removal in a future version.use new constructor insteadInstantiates theDefaultWebhookConfigurationService- Parameters:
flexibleSearchService- Service for searchingItemModelsdescriptorFactory- DescriptorFactory to create descriptors
-
DefaultWebhookConfigurationService
public DefaultWebhookConfigurationService(@NotNull @NotNull FlexibleSearchService flexibleSearchService, @NotNull @NotNull DescriptorFactory descriptorFactory, @NotNull @NotNull ItemModelSearchService itemSearchService) Instantiates theDefaultWebhookConfigurationService- Parameters:
flexibleSearchService- Service for searchingItemModelsdescriptorFactory- DescriptorFactory to create descriptorsitemSearchService- ItemModelSearchService to search for webhookConfigurations without caching.
-
-
Method Details
-
getWebhookConfigurationsByEventAndItemModel
public Collection<WebhookConfigurationModel> getWebhookConfigurationsByEventAndItemModel(AbstractEvent event, ItemModel item) Description copied from interface:WebhookConfigurationServiceFind WebhookConfigurations that are associated to the given abstract event, and have the Integration Object root item type the same as the given item type- Specified by:
getWebhookConfigurationsByEventAndItemModelin interfaceWebhookConfigurationService- Parameters:
event- An AbstractEvent to search foritem- Search Integration Object root items matching the item type- Returns:
- A collection of WebhookConfigurationModels if found, otherwise an empty collection
-
findByEventAndItemMatchingRootItem
public Collection<WebhookConfigurationModel> findByEventAndItemMatchingRootItem(WebhookEvent event, ItemModel item) Description copied from interface:WebhookConfigurationServiceFind WebhookConfigurations that are associated to the given webhook event, and have the Integration Object root item with the same type as the given item type.- Specified by:
findByEventAndItemMatchingRootItemin interfaceWebhookConfigurationService- Parameters:
event- A WebhookEvent to search foritem- Search Integration Object root items matching the item type- Returns:
- A collection of WebhookConfigurationModels if found, otherwise an empty collection
-
findByEventAndItemMatchingAnyItem
public Collection<WebhookConfigurationModel> findByEventAndItemMatchingAnyItem(WebhookEvent event, ItemModel item) Description copied from interface:WebhookConfigurationServiceFind WebhookConfigurations that are associated to the given webhook event, and have an Integration Object Item with the same type as the given item type- Specified by:
findByEventAndItemMatchingAnyItemin interfaceWebhookConfigurationService- Parameters:
event- A WebhookEvent to search foritem- Search Integration Object root items matching the item type- Returns:
- A collection of WebhookConfigurationModels if found, otherwise an empty collection
-
findWebhookConfigurationByPk
Description copied from interface:WebhookConfigurationServiceFind WebhookConfiguration by a primary key- Specified by:
findWebhookConfigurationByPkin interfaceWebhookConfigurationService- Parameters:
pk- the primary key of the WebhookConfiguration- Returns:
WebhookConfigurationModelif found otherwiseOptional.empty()
-