Class WebhookConfigurationRootClassUpdateInterceptor
java.lang.Object
de.hybris.platform.webhookservices.interceptor.WebhookConfigurationRootClassUpdateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectClassModel>
@Deprecated(since="2211.FP2",
forRemoval=true)
public class WebhookConfigurationRootClassUpdateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectClassModel>
Deprecated, for removal: This API element is subject to removal in a future version.
A validate interceptor that prevents updating the root IntegrationObjectClassModel to
false when the IntegrationObject
is associated to an existing WebhookConfiguration given the WebhookServicesFeature.BUSINESS_EVENT_SUPPORT is enabled.-
Constructor Summary
ConstructorsConstructorDescriptionWebhookConfigurationRootClassUpdateInterceptor(WebhookConfigurationService webhookConfigService) Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a new WebhookConfigurationRootClassUpdateInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectClassModel ioClass, InterceptorContext interceptorContext) Deprecated, for removal: This API element is subject to removal in a future version.Called in themodelService.saveAll()method.
-
Constructor Details
-
WebhookConfigurationRootClassUpdateInterceptor
public WebhookConfigurationRootClassUpdateInterceptor(WebhookConfigurationService webhookConfigService) Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a new WebhookConfigurationRootClassUpdateInterceptor.- Parameters:
webhookConfigService- to look upWebhookConfigurationModel
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectClassModel ioClass, InterceptorContext interceptorContext) throws InterceptorException Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<IntegrationObjectClassModel>- Parameters:
ioClass- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
IntegrationServicesFeature.PREVENT_IOC_ROOT_UPDATEis enabled by default.