Class TmaPriceRowPopValidateInterceptor

java.lang.Object
de.hybris.platform.b2ctelcoservices.interceptors.TmaPriceRowPopValidateInterceptor
All Implemented Interfaces:
de.hybris.platform.servicelayer.interceptor.Interceptor, de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<PriceRowModel>

public class TmaPriceRowPopValidateInterceptor extends Object implements de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<PriceRowModel>
Interceptor that validates PriceRowModel for a TmaProductOfferingModel.
Since:
2011
  • Field Details

  • Constructor Details

    • TmaPriceRowPopValidateInterceptor

      public TmaPriceRowPopValidateInterceptor(TmaPopService tmaPopService, de.hybris.platform.servicelayer.session.SessionService sessionService)
  • Method Details

    • onValidate

      public void onValidate(PriceRowModel priceRow, de.hybris.platform.servicelayer.interceptor.InterceptorContext interceptorContext) throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Validates that the PriceRowModel is still valid for the TmaProductOfferingModel used, based on the TmaProductOfferingPriceModel of the price row.
      Specified by:
      onValidate in interface de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<PriceRowModel>
      Parameters:
      priceRow - the price row.
      interceptorContext - the interceptor context
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException - throws exception if the price row is no longer valid for the offering based on the product offering price.
    • getTmaPopService

      protected TmaPopService getTmaPopService()
    • getSessionService

      protected de.hybris.platform.servicelayer.session.SessionService getSessionService()