Class EntryGroupStructureValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.order.interceptors.EntryGroupStructureValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<AbstractOrderModel>
public class EntryGroupStructureValidateInterceptor extends java.lang.Object implements ValidateInterceptor<AbstractOrderModel>
Validates the entryGroup structure of the order to avoid cyclic dependencies between groups.
-
-
Constructor Summary
Constructors Constructor Description EntryGroupStructureValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<java.lang.Integer>getEntryGroupNumbers(java.util.Collection<EntryGroup> entryGroups)voidonValidate(AbstractOrderModel model, InterceptorContext interceptorContext)Called in themodelService.saveAll()method.protected voidvalidateRootGroupTree(EntryGroup rootGroup, java.util.List<EntryGroup> existingEntryGroups)protected voidvalidateRootGroupTrees(java.util.List<EntryGroup> rootGroups)
-
-
-
Method Detail
-
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
protected void validateRootGroupTrees(java.util.List<EntryGroup> rootGroups)
-
validateRootGroupTree
protected void validateRootGroupTree(EntryGroup rootGroup, java.util.List<EntryGroup> existingEntryGroups)
-
getEntryGroupNumbers
protected java.util.Collection<java.lang.Integer> getEntryGroupNumbers(java.util.Collection<EntryGroup> entryGroups)
-
-