Class WebhookConfigurationValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.webhookservices.model.WebhookConfigurationValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<WebhookConfigurationModel>
public final class WebhookConfigurationValidateInterceptor extends java.lang.Object implements ValidateInterceptor<WebhookConfigurationModel>
This ValidateInterceptor validates theWebhookConfigurationModelis proper before saving it
-
-
Constructor Summary
Constructors Constructor Description WebhookConfigurationValidateInterceptor()
-
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.
-
-