Class PickNToMBundleSelectionCriteriaValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.configurablebundleservices.interceptor.impl.PickNToMBundleSelectionCriteriaValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class PickNToMBundleSelectionCriteriaValidateInterceptor extends java.lang.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 Constructor Description PickNToMBundleSelectionCriteriaValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisLessThanZero(java.lang.Integer value)voidonValidate(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription 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
protected boolean isLessThanZero(java.lang.Integer value)
-
-