Interface WebhookConfigurationService
- All Known Implementing Classes:
DefaultWebhookConfigurationService
public interface WebhookConfigurationService
A service that provides convenience methods to interact with
WebhookConfigurationModels.-
Method Summary
Modifier and TypeMethodDescriptiondefault Collection<WebhookConfigurationModel>findByEventAndItemMatchingAnyItem(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 typedefault Collection<WebhookConfigurationModel>findByEventAndItemMatchingRootItem(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.default Optional<WebhookConfigurationModel>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
-
Method Details
-
getWebhookConfigurationsByEventAndItemModel
Collection<WebhookConfigurationModel> getWebhookConfigurationsByEventAndItemModel(AbstractEvent event, ItemModel item) Find WebhookConfigurations that are associated to the given abstract event, and have the Integration Object root item type the same as the given item type- 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
default Collection<WebhookConfigurationModel> findByEventAndItemMatchingRootItem(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.- 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
default Collection<WebhookConfigurationModel> findByEventAndItemMatchingAnyItem(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 type- 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
Find WebhookConfiguration by a primary key- Parameters:
pk- the primary key of the WebhookConfiguration- Returns:
WebhookConfigurationModelif found otherwiseOptional.empty()
-