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 Details

  • 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:
      onValidate in interface de.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)