Class TmaProductSpecCharValueUseValidateInterceptor

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

public class TmaProductSpecCharValueUseValidateInterceptor extends Object implements de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<TmaProductSpecCharValueUseModel>
Interceptor to validate the attributes configured for TmaProductSpecCharValueUseModel.
Since:
2105
  • Constructor Details

    • TmaProductSpecCharValueUseValidateInterceptor

      public TmaProductSpecCharValueUseValidateInterceptor()
  • Method Details

    • onValidate

      public void onValidate(TmaProductSpecCharValueUseModel productSpecCharValueUse, 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<TmaProductSpecCharValueUseModel>
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException
    • validateMinCardinality

      protected void validateMinCardinality(TmaProductSpecCharValueUseModel productSpecCharValueUse) throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Validates the min cardinality in the TmaProductSpecCharValueUseModel.
      Parameters:
      productSpecCharValueUse - The product specification characteristic value use
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException - In case the min cardinality is not valid
    • validateMaxCardinality

      protected void validateMaxCardinality(TmaProductSpecCharValueUseModel productSpecCharValueUse) throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Validates the max cardinality in the TmaProductSpecCharValueUseModel.
      Parameters:
      productSpecCharValueUse - The product specification characteristic value use
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException - In case the max cardinality is not valid
    • validatePscvs

      protected void validatePscvs(TmaProductSpecCharValueUseModel productSpecCharValueUse) throws de.hybris.platform.servicelayer.interceptor.InterceptorException
      Validates the PSCVs in the TmaProductSpecCharValueUseModel.
      Parameters:
      productSpecCharValueUse - The product specification characteristic value use
      Throws:
      de.hybris.platform.servicelayer.interceptor.InterceptorException - In case the PSCVs are not valid