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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTmaPriceRowPopValidateInterceptor(TmaPopService tmaPopService, de.hybris.platform.servicelayer.session.SessionService sessionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.session.SessionServiceprotected TmaPopServicevoidonValidate(PriceRowModel priceRow, de.hybris.platform.servicelayer.interceptor.InterceptorContext interceptorContext) Validates that thePriceRowModelis still valid for theTmaProductOfferingModelused, based on theTmaProductOfferingPriceModelof the price row.
-
Field Details
-
CATALOG_SYNC_ACTIVE_ATTRIBUTE
- See Also:
-
-
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 thePriceRowModelis still valid for theTmaProductOfferingModelused, based on theTmaProductOfferingPriceModelof the price row.- Specified by:
onValidatein interfacede.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
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
-