Class EntryGroupStructureValidateInterceptor
java.lang.Object
de.hybris.platform.order.interceptors.EntryGroupStructureValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<AbstractOrderModel>
public class EntryGroupStructureValidateInterceptor
extends Object
implements ValidateInterceptor<AbstractOrderModel>
Validates the entryGroup structure of the order to avoid cyclic dependencies between groups.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<Integer>getEntryGroupNumbers(Collection<EntryGroup> entryGroups) voidonValidate(AbstractOrderModel model, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.protected voidvalidateRootGroupTree(EntryGroup rootGroup, List<EntryGroup> existingEntryGroups) protected voidvalidateRootGroupTrees(List<EntryGroup> rootGroups)
-
Constructor Details
-
EntryGroupStructureValidateInterceptor
public EntryGroupStructureValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(AbstractOrderModel model, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<AbstractOrderModel>- Parameters:
model- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
validateRootGroupTrees
-
validateRootGroupTree
-
getEntryGroupNumbers
-