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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTmaPopValidateInterceptor(TmaPopService tmaPopService, de.hybris.platform.servicelayer.session.SessionService sessionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.session.SessionServiceprotected TmaPopServicevoidonValidate(TmaProductOfferingPriceModel productOfferingPriceModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext interceptorContext) Checks that theTmaProductOfferingPriceModelis valid for all the product offerings where it is used.
-
Field Details
-
CATALOG_SYNC_ACTIVE_ATTRIBUTE
- See Also:
-
-
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 theTmaProductOfferingPriceModelis valid for all the product offerings where it is used.- Specified by:
onValidatein interfacede.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaProductOfferingPriceModel>- Parameters:
productOfferingPriceModel- the product offering priceinterceptorContext- 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
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
-