public class EntryGroupStructureValidateInterceptor extends java.lang.Object implements ValidateInterceptor<AbstractOrderModel>
| Constructor and Description |
|---|
EntryGroupStructureValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<java.lang.Integer> |
getEntryGroupNumbers(java.util.Collection<EntryGroup> entryGroups) |
void |
onValidate(AbstractOrderModel model,
InterceptorContext interceptorContext)
Called in the
modelService.saveAll() method. |
protected void |
validateRootGroupTree(EntryGroup rootGroup,
java.util.List<EntryGroup> existingEntryGroups) |
protected void |
validateRootGroupTrees(java.util.List<EntryGroup> rootGroups) |
public EntryGroupStructureValidateInterceptor()
public void onValidate(AbstractOrderModel model, InterceptorContext interceptorContext) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<AbstractOrderModel>model - the model which values has to be validatedinterceptorContext - the InterceptorContextInterceptorException - if any values of the model are not valid.protected void validateRootGroupTrees(java.util.List<EntryGroup> rootGroups)
protected void validateRootGroupTree(EntryGroup rootGroup, java.util.List<EntryGroup> existingEntryGroups)
protected java.util.Collection<java.lang.Integer> getEntryGroupNumbers(java.util.Collection<EntryGroup> entryGroups)
Copyright © 2018 SAP SE. All Rights Reserved.