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 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:
      onValidate in interface de.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 the TmaBundledProdOfferOptionModel.
      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 the TmaBundledProdOfferOptionModel.
      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 the TmaBundledProdOfferOptionModel.
      Parameters:
      tmaBundledProdOfferOptionModel - The bundled product offering option
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException - In case the default value is not valid