Class VariantProductValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.product.interceptors.VariantProductValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class VariantProductValidateInterceptor extends java.lang.Object implements 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
VariantProductModelis newly created or it'sVariantProductModel.BASEPRODUCTis modified.
-
-
Constructor Summary
Constructors Constructor Description VariantProductValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
setTypeService
public void setTypeService(TypeService typeService)
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionCalled 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.
-
-