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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(TmaProductSpecCharValueUseModel productSpecCharValueUse, de.hybris.platform.servicelayer.interceptor.InterceptorContext interceptorContext) protected voidvalidateMaxCardinality(TmaProductSpecCharValueUseModel productSpecCharValueUse) Validates the max cardinality in theTmaProductSpecCharValueUseModel.protected voidvalidateMinCardinality(TmaProductSpecCharValueUseModel productSpecCharValueUse) Validates the min cardinality in theTmaProductSpecCharValueUseModel.protected voidvalidatePscvs(TmaProductSpecCharValueUseModel productSpecCharValueUse) Validates the PSCVs in theTmaProductSpecCharValueUseModel.
-
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:
onValidatein interfacede.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 theTmaProductSpecCharValueUseModel.- 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 theTmaProductSpecCharValueUseModel.- 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 theTmaProductSpecCharValueUseModel.- Parameters:
productSpecCharValueUse- The product specification characteristic value use- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException- In case the PSCVs are not valid
-