Class WebhookConfigBackofficeService


  • public class WebhookConfigBackofficeService
    extends java.lang.Object
    Handles the read and write requests from the extension's widgets
    • Constructor Detail

      • WebhookConfigBackofficeService

        public WebhookConfigBackofficeService()
    • Method Detail

      • setFlexibleSearchService

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

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

        public java.util.List<WebhookConfigurationModel> getWebhookConfiguration​(@NotNull
                                                                                 @NotNull IntegrationObjectModel integrationObject,
                                                                                 @NotNull
                                                                                 @NotNull ConsumedDestinationModel consumedDestination)
        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
      • getActiveGroovyScripts

        public java.util.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,
                                                                    java.lang.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,
                                                                    java.lang.String filterLocation,
                                                                    java.lang.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