Interface WebhookConfigurationService

All Known Implementing Classes:
DefaultWebhookConfigurationService

public interface WebhookConfigurationService
A service that provides convenience methods to interact with WebhookConfigurationModels.
  • 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 for
      item - 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 for
      item - 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 for
      item - Search Integration Object root items matching the item type
      Returns:
      A collection of WebhookConfigurationModels if found, otherwise an empty collection
    • findWebhookConfigurationByPk

      default Optional<WebhookConfigurationModel> findWebhookConfigurationByPk(PK pk)
      Find WebhookConfiguration by a primary key
      Parameters:
      pk - the primary key of the WebhookConfiguration
      Returns:
      WebhookConfigurationModel if found otherwise Optional.empty()