Class PickNToMBundleSelectionCriteriaValidateInterceptor
java.lang.Object
de.hybris.platform.configurablebundleservices.interceptor.impl.PickNToMBundleSelectionCriteriaValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class PickNToMBundleSelectionCriteriaValidateInterceptor
extends Object
implements ValidateInterceptor
Validates that the selection criteria has between integer n and integer m selections n>=0 and m >=0
and that n can take values between 0 and m-1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisLessThanZero(Integer value) voidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.
-
Constructor Details
-
PickNToMBundleSelectionCriteriaValidateInterceptor
public PickNToMBundleSelectionCriteriaValidateInterceptor()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
isLessThanZero
-