Class TmaPoVariantValidateInterceptor
java.lang.Object
de.hybris.platform.b2ctelcoservices.interceptors.TmaPoVariantValidateInterceptor
- All Implemented Interfaces:
de.hybris.platform.servicelayer.interceptor.Interceptor,de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaPoVariantModel>
public class TmaPoVariantValidateInterceptor
extends Object
implements de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaPoVariantModel>
Validation Interceptor for
TmaPoVariantModel.
It validates if the product offering variant has a base product and if each VariantCategory defined on the base product has a
corresponding VariantValueCategory defined on the variant.- Since:
- 1810
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.i18n.L10NServiceprotected de.hybris.platform.servicelayer.session.SessionServicevoidonValidate(TmaPoVariantModel poVariant, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) voidsetL10NService(de.hybris.platform.servicelayer.i18n.L10NService l10NService) voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) protected voidvalidateBaseProductSuperCategories(TmaPoVariantModel poVariant, Collection<CategoryModel> variantValueCategories)
-
Field Details
-
CATALOG_SYNC_ACTIVE_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
TmaPoVariantValidateInterceptor
public TmaPoVariantValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(TmaPoVariantModel poVariant, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx) throws de.hybris.platform.servicelayer.interceptor.InterceptorException - Specified by:
onValidatein interfacede.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaPoVariantModel>- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException
-
validateBaseProductSuperCategories
protected void validateBaseProductSuperCategories(TmaPoVariantModel poVariant, Collection<CategoryModel> variantValueCategories) throws de.hybris.platform.servicelayer.interceptor.InterceptorException - Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException
-
getL10NService
protected de.hybris.platform.servicelayer.i18n.L10NService getL10NService() -
setL10NService
public void setL10NService(de.hybris.platform.servicelayer.i18n.L10NService l10NService) -
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService() -
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
-