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​(FlexibleSearchService flexibleSearchService)
      • setModelService

        public void setModelService​(ModelService modelService)
      • getConsumedDestinationByChannel

        public java.util.List<ConsumedDestinationModel> getConsumedDestinationByChannel​(DestinationChannel channel)
        Retrieves all ConsumedDestinationModels filtered by DestinationChannel
        Parameters:
        channel - The DestinationChannel to be used as a filter
        Returns:
        A list of ConsumedDestinationModels
      • getWebhookConfiguration

        public java.util.List<WebhookConfigurationModel> getWebhookConfiguration​(IntegrationObjectModel integrationObject,
                                                                                 ConsumedDestinationModel consumedDestination,
                                                                                 java.lang.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 class path
        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
      • createAndPersistWebhookConfiguration

        public WebhookConfigurationModel createAndPersistWebhookConfiguration​(IntegrationObjectModel integrationObject,
                                                                              ConsumedDestinationModel consumedDestination,
                                                                              java.lang.String eventType,
                                                                              java.lang.String filterLocation)
        Create, persist a WebhookConfigurationModels searched with unique components and return it.
        Parameters:
        integrationObject - An IO model
        consumedDestination - A consumedDestination which is associated with a DestinationTarget that has DestinationChannel: 'WEBHOOKSERVICES'
        eventType - A class path
        filterLocation - A location of filter
        Returns:
        WebhookConfigurationModel just created