Class WebhookConfigurationDestinationValidateInterceptor
java.lang.Object
de.hybris.platform.webhookservices.model.WebhookConfigurationDestinationValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<WebhookConfigurationModel>
public final class WebhookConfigurationDestinationValidateInterceptor
extends Object
implements ValidateInterceptor<WebhookConfigurationModel>
Validates consumed destination used with
WebhookConfigurationModel instances being persisted.
Forbids webhook configuration persistence, if the destination is not associated with a WEBHOOKSERVICES destination target.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(WebhookConfigurationModel config, InterceptorContext context) Called in themodelService.saveAll()method.
-
Constructor Details
-
WebhookConfigurationDestinationValidateInterceptor
public WebhookConfigurationDestinationValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(WebhookConfigurationModel config, InterceptorContext context) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<WebhookConfigurationModel>- Parameters:
config- the model which values has to be validatedcontext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-