Class TmaBundledProdOfferOptionValidateInterceptor
java.lang.Object
de.hybris.platform.b2ctelcoservices.interceptors.TmaBundledProdOfferOptionValidateInterceptor
- All Implemented Interfaces:
de.hybris.platform.servicelayer.interceptor.Interceptor,de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaBundledProdOfferOptionModel>
public class TmaBundledProdOfferOptionValidateInterceptor
extends Object
implements de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaBundledProdOfferOptionModel>
Interceptor to validate the attributes configured for a
TmaBundledProdOfferOptionModel.- Since:
- 2011
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(TmaBundledProdOfferOptionModel tmaBundledProdOfferOptionModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext interceptorContext) protected voidvalidateDefault(TmaBundledProdOfferOptionModel tmaBundledProdOfferOptionModel) Validates the default value in theTmaBundledProdOfferOptionModel.protected voidvalidateLimits(TmaBundledProdOfferOptionModel tmaBundledProdOfferOptionModel) Validates the lower, upper and default limits in theTmaBundledProdOfferOptionModel.protected voidvalidateProductOffering(TmaBundledProdOfferOptionModel tmaBundledProdOfferOptionModel) Validates the Product Offering in theTmaBundledProdOfferOptionModel.
-
Constructor Details
-
TmaBundledProdOfferOptionValidateInterceptor
public TmaBundledProdOfferOptionValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(TmaBundledProdOfferOptionModel tmaBundledProdOfferOptionModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext interceptorContext) throws de.hybris.platform.servicelayer.interceptor.InterceptorException - Specified by:
onValidatein interfacede.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaBundledProdOfferOptionModel>- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException
-
validateProductOffering
protected void validateProductOffering(TmaBundledProdOfferOptionModel tmaBundledProdOfferOptionModel) throws de.hybris.platform.servicelayer.interceptor.InterceptorException Validates the Product Offering in theTmaBundledProdOfferOptionModel.- Parameters:
tmaBundledProdOfferOptionModel- The bundled product offering option- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException- In case the product offering is not valid
-
validateLimits
protected void validateLimits(TmaBundledProdOfferOptionModel tmaBundledProdOfferOptionModel) throws de.hybris.platform.servicelayer.interceptor.InterceptorException Validates the lower, upper and default limits in theTmaBundledProdOfferOptionModel.- Parameters:
tmaBundledProdOfferOptionModel- The bundled product offering option- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException- In case the lower, upper and default limit are not valid
-
validateDefault
protected void validateDefault(TmaBundledProdOfferOptionModel tmaBundledProdOfferOptionModel) throws de.hybris.platform.servicelayer.interceptor.InterceptorException Validates the default value in theTmaBundledProdOfferOptionModel.- Parameters:
tmaBundledProdOfferOptionModel- The bundled product offering option- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException- In case the default value is not valid
-