Class VariantProductValidateInterceptor
java.lang.Object
de.hybris.platform.product.interceptors.VariantProductValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
Interceptor, which makes some operations (checking base product and base variant type) on variant product, which is
being created.
Interceptor is being performed only if the given VariantProductModel is newly created or it's
VariantProductModel.BASEPRODUCT is modified.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetTypeService(TypeService typeService)
-
Constructor Details
-
VariantProductValidateInterceptor
public VariantProductValidateInterceptor()
-
-
Method Details
-
setTypeService
-
onValidate
Called in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-