Class WebhookConfigurationDestinationValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.webhookservices.model.WebhookConfigurationDestinationValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<WebhookConfigurationModel>
public final class WebhookConfigurationDestinationValidateInterceptor extends java.lang.Object implements ValidateInterceptor<WebhookConfigurationModel>
Validates consumed destination used withWebhookConfigurationModelinstances being persisted. Forbids webhook configuration persistence, if the destination is not associated with a WEBHOOKSERVICES destination target.
-
-
Constructor Summary
Constructors Constructor Description WebhookConfigurationDestinationValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(WebhookConfigurationModel config, InterceptorContext context)Called in themodelService.saveAll()method.
-
-
-
Method Detail
-
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.
-
-