Class WebhookConfigurationValidateInterceptor
java.lang.Object
de.hybris.platform.webhookservices.model.WebhookConfigurationValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<WebhookConfigurationModel>
public final class WebhookConfigurationValidateInterceptor
extends Object
implements ValidateInterceptor<WebhookConfigurationModel>
This ValidateInterceptor validates the
WebhookConfigurationModel is proper before saving it-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(WebhookConfigurationModel config, InterceptorContext context) Called in themodelService.saveAll()method.
-
Constructor Details
-
WebhookConfigurationValidateInterceptor
public WebhookConfigurationValidateInterceptor()
-
-
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.
-