public class NavigationNodePrepareInterceptor extends Object implements PrepareInterceptor
catalogVersion and parent.catalogVersion are consistent via
catalogVersion change or parent change accordingly to modified property. For hierarchies
child nodes catalogVersion is also modified.| Constructor and Description |
|---|
NavigationNodePrepareInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected List<CMSNavigationNodeModel> |
findAllChildren(CMSNavigationNodeModel node,
List<CMSNavigationNodeModel> res) |
void |
onPrepare(Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setCmsNavigationService(CMSNavigationService cmsNavigationService) |
void |
setModelService(ModelService modelService) |
public void onPrepare(Object model, InterceptorContext ctx) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptormodel - the model which values has to be preparedctx - the InterceptorContextInterceptorException - if an error occured during the preparationprotected List<CMSNavigationNodeModel> findAllChildren(CMSNavigationNodeModel node, List<CMSNavigationNodeModel> res)
public void setModelService(ModelService modelService)
public void setCmsNavigationService(CMSNavigationService cmsNavigationService)
Copyright © 2017 SAP SE. All Rights Reserved.