Class 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 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 Detail

      • CATALOG_SYNC_ACTIVE_ATTRIBUTE

        protected static final java.lang.String CATALOG_SYNC_ACTIVE_ATTRIBUTE
        See Also:
        Constant Field Values
    • Constructor Detail

      • TmaPoVariantValidateInterceptor

        public TmaPoVariantValidateInterceptor()
    • Method Detail

      • onValidate

        public void onValidate​(TmaPoVariantModel poVariant,
                               de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)
                        throws de.hybris.platform.servicelayer.interceptor.InterceptorException
        Specified by:
        onValidate in interface de.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)