Class WebhookConfigBackofficeService
java.lang.Object
de.hybris.platform.webhookbackoffice.services.WebhookConfigBackofficeService
Handles the read and write requests from the extension's widgets
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWebhookConfiguration(@NotNull IntegrationObjectModel integrationObject, @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) insteadcreateWebhookConfiguration(@NotNull IntegrationObjectModel integrationObject, @NotNull ConsumedDestinationModel consumedDestination, String filterLocation, String eventType) Create and persist a WebhookConfigurationModel and return it.Retrieves ScriptModels that are active and of type GroovygetWebhookConfiguration(@NotNull IntegrationObjectModel integrationObject, @NotNull ConsumedDestinationModel consumedDestination) Deprecated, for removal: This API element is subject to removal in a future version.use getWebhookConfiguration(integrationObject, consumedDestination, eventType) insteadgetWebhookConfiguration(@NotNull IntegrationObjectModel integrationObject, @NotNull ConsumedDestinationModel consumedDestination, @NotNull String eventType) Retrieves a list of WebhookConfigurationModels searched with unique componentsvoidsetFlexibleSearchService(@NotNull FlexibleSearchService flexibleSearchService) voidsetModelService(@NotNull ModelService modelService)
-
Field Details
-
DEFAULT_EVENT_TYPE
-
-
Constructor Details
-
WebhookConfigBackofficeService
public WebhookConfigBackofficeService()
-
-
Method Details
-
setFlexibleSearchService
-
setModelService
-
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) insteadRetrieves 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
-
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 modelconsumedDestination- A consumedDestination which is associated with a DestinationTarget that hasDestinationChannel: 'WEBHOOKSERVICES'eventType- A webhook event name- Returns:
- A list of
WebhookConfigurationModelif found, otherwise returnsCollections.emptyList()
-
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) 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, String filterLocation, 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
-