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 Modifier and Type Method Description WebhookConfigurationModelcreateAndPersistWebhookConfiguration(IntegrationObjectModel integrationObject, ConsumedDestinationModel consumedDestination, java.lang.String eventType, java.lang.String filterLocation)Create, persist a WebhookConfigurationModels searched with unique components and return it.java.util.List<ScriptModel>getActiveGroovyScripts()Retrieves ScriptModels that are active and of type Groovyjava.util.List<ConsumedDestinationModel>getConsumedDestinationByChannel(DestinationChannel channel)Retrieves all ConsumedDestinationModels filtered by DestinationChanneljava.util.List<WebhookConfigurationModel>getWebhookConfiguration(IntegrationObjectModel integrationObject, ConsumedDestinationModel consumedDestination, java.lang.String eventType)Retrieves a list of WebhookConfigurationModels searched with unique componentsvoidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetModelService(ModelService modelService)
-
-
-
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 modelconsumedDestination- A consumedDestination which is associated with a DestinationTarget that hasDestinationChannel: '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 modelconsumedDestination- A consumedDestination which is associated with a DestinationTarget that hasDestinationChannel: 'WEBHOOKSERVICES'eventType- A class pathfilterLocation- A location of filter- Returns:
- WebhookConfigurationModel just created
-
-