Class TmaPopValidateInterceptor

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

public class TmaPopValidateInterceptor extends Object implements de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaProductOfferingPriceModel>
Interceptor to validate that a TmaProductOfferingPriceModel is valid for all the assigned priceRows with products.
Since:
2011
  • Field Details

  • Constructor Details

    • TmaPopValidateInterceptor

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

    • onValidate

      public void onValidate(TmaProductOfferingPriceModel productOfferingPriceModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext interceptorContext) throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Checks that the TmaProductOfferingPriceModel is valid for all the product offerings where it is used.
      Specified by:
      onValidate in interface de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaProductOfferingPriceModel>
      Parameters:
      productOfferingPriceModel - the product offering price
      interceptorContext - interceptor context
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException - throws exception if a product offering is found that is not compatible with the price.
    • getTmaPopService

      protected TmaPopService getTmaPopService()
    • getSessionService

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