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 java.lang.Object implements de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaPoVariantModel>
Validation Interceptor forTmaPoVariantModel. 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 Modifier and Type Field Description protected static java.lang.StringCATALOG_SYNC_ACTIVE_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description TmaPoVariantValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected de.hybris.platform.servicelayer.i18n.L10NServicegetL10NService()protected de.hybris.platform.servicelayer.session.SessionServicegetSessionService()voidonValidate(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, java.util.Collection<CategoryModel> variantValueCategories)
-
-
-
Field Detail
-
CATALOG_SYNC_ACTIVE_ATTRIBUTE
protected static final java.lang.String CATALOG_SYNC_ACTIVE_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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, java.util.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)
-
-