Class IntegrationObjectItemAttributeValidateInterceptor
java.lang.Object
de.hybris.platform.integrationservices.interceptor.IntegrationObjectItemAttributeValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectItemAttributeModel>
public class IntegrationObjectItemAttributeValidateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectItemAttributeModel>
An interceptor that validates the
IntegrationObjectItemAttributeModel's attribute cannot be autoCreate or partOf
which references an abstract type in the integration object
and validates the IntegrationObjectItemAttributeModel's attribute cannot be unique which is either Collection or Map-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationObjectItemAttributeValidateInterceptor(@NotNull DescriptorFactory descriptorFactory) Instantiate theIntegrationObjectItemAttributeValidateInterceptor -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectItemAttributeModel attributeModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
IntegrationObjectItemAttributeValidateInterceptor
public IntegrationObjectItemAttributeValidateInterceptor(@NotNull @NotNull DescriptorFactory descriptorFactory) Instantiate theIntegrationObjectItemAttributeValidateInterceptor- Parameters:
descriptorFactory- the descriptor factory to create type descriptor
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectItemAttributeModel attributeModel, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<IntegrationObjectItemAttributeModel>- Parameters:
attributeModel- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-