Class WebhookConfigBackofficeService

java.lang.Object
de.hybris.platform.webhookbackoffice.services.WebhookConfigBackofficeService

public class WebhookConfigBackofficeService extends Object
Handles the read and write requests from the extension's widgets
  • Field Details

    • DEFAULT_EVENT_TYPE

      public static final String DEFAULT_EVENT_TYPE
  • Constructor Details

    • WebhookConfigBackofficeService

      public WebhookConfigBackofficeService()
  • Method Details

    • setFlexibleSearchService

      public void setFlexibleSearchService(@NotNull @NotNull FlexibleSearchService flexibleSearchService)
    • setModelService

      public void setModelService(@NotNull @NotNull ModelService modelService)
    • getWebhookConfiguration

      @Deprecated(since="2205", forRemoval=true) public List<WebhookConfigurationModel> getWebhookConfiguration(@NotNull @NotNull IntegrationObjectModel integrationObject, @NotNull @NotNull ConsumedDestinationModel consumedDestination)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use getWebhookConfiguration(integrationObject, consumedDestination, eventType) instead
      Retrieves a list of WebhookConfigurationModels searched with unique components
      Parameters:
      integrationObject - An IO model
      consumedDestination - A consumedDestination which is associated with a DestinationTarget that has DestinationChannel: 'WEBHOOKSERVICES'
      Returns:
      A list of WebhookConfigurationModel
    • getWebhookConfiguration

      public List<WebhookConfigurationModel> getWebhookConfiguration(@NotNull @NotNull IntegrationObjectModel integrationObject, @NotNull @NotNull ConsumedDestinationModel consumedDestination, @NotNull @NotNull String eventType)
      Retrieves a list of WebhookConfigurationModels searched with unique components
      Parameters:
      integrationObject - An IO model
      consumedDestination - A consumedDestination which is associated with a DestinationTarget that has DestinationChannel: 'WEBHOOKSERVICES'
      eventType - A webhook event name
      Returns:
      A list of WebhookConfigurationModel if found, otherwise returns Collections.emptyList()
    • getActiveGroovyScripts

      public List<ScriptModel> getActiveGroovyScripts()
      Retrieves ScriptModels that are active and of type Groovy
      Returns:
      list of ScriptModels, or empty list
    • createWebhookConfiguration

      @Deprecated(since="2105.0", forRemoval=true) public WebhookConfigurationModel createWebhookConfiguration(@NotNull @NotNull IntegrationObjectModel integrationObject, @NotNull @NotNull ConsumedDestinationModel consumedDestination, String filterLocation)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use createWebhookConfiguration(integrationObject, consumedDestination, filterLocation, eventType) instead
      Create and persist a WebhookConfigurationModel and return it.
      Parameters:
      integrationObject - An IO model
      consumedDestination - A consumedDestination which is associated with a DestinationTarget that has DestinationChannel: 'WEBHOOKSERVICES'
      filterLocation - A location of filter
      Returns:
      WebhookConfigurationModel just created
    • createWebhookConfiguration

      public WebhookConfigurationModel createWebhookConfiguration(@NotNull @NotNull IntegrationObjectModel integrationObject, @NotNull @NotNull ConsumedDestinationModel consumedDestination, String filterLocation, String eventType)
      Create and persist a WebhookConfigurationModel and return it.
      Parameters:
      integrationObject - An IO model
      consumedDestination - A consumedDestination which is associated with a DestinationTarget that has DestinationChannel: 'WEBHOOKSERVICES'
      filterLocation - A location of filter
      eventType - A webhook event name
      Returns:
      WebhookConfigurationModel just created