Class WebhookConfigBackofficeService
- java.lang.Object
-
- de.hybris.platform.webhookbackoffice.services.WebhookConfigBackofficeService
-
public class WebhookConfigBackofficeService extends java.lang.ObjectHandles the read and write requests from the extension's widgets
-
-
Constructor Summary
Constructors Constructor Description WebhookConfigBackofficeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WebhookConfigurationModelcreateWebhookConfiguration(@NotNull IntegrationObjectModel integrationObject, @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) insteadWebhookConfigurationModelcreateWebhookConfiguration(@NotNull IntegrationObjectModel integrationObject, @NotNull ConsumedDestinationModel consumedDestination, java.lang.String filterLocation, java.lang.String eventType)Create and persist a WebhookConfigurationModel and return it.java.util.List<ScriptModel>getActiveGroovyScripts()Retrieves ScriptModels that are active and of type Groovyjava.util.List<WebhookConfigurationModel>getWebhookConfiguration(@NotNull IntegrationObjectModel integrationObject, @NotNull ConsumedDestinationModel consumedDestination)Retrieves a list of WebhookConfigurationModels searched with unique componentsvoidsetFlexibleSearchService(@NotNull FlexibleSearchService flexibleSearchService)voidsetModelService(@NotNull ModelService modelService)
-
-
-
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 modelconsumedDestination- A consumedDestination which is associated with a DestinationTarget that hasDestinationChannel: '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) insteadCreate and persist a WebhookConfigurationModel and return it.- Parameters:
integrationObject- An IO modelconsumedDestination- A consumedDestination which is associated with a DestinationTarget that hasDestinationChannel: '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 modelconsumedDestination- A consumedDestination which is associated with a DestinationTarget that hasDestinationChannel: 'WEBHOOKSERVICES'filterLocation- A location of filtereventType- A webhook event name- Returns:
- WebhookConfigurationModel just created
-
-