public class DefaultNavigationNodeTreeService extends java.lang.Object implements NavigationNodeTreeService
| Constructor and Description |
|---|
DefaultNavigationNodeTreeService() |
| Modifier and Type | Method and Description |
|---|---|
TypedObject |
getChild(TypedObject node,
int index)
Find a child node of a given node at a given position
|
int |
getChildCount(TypedObject node)
Find number of child nodes for a given node
|
protected CMSNavigationService |
getCmsNavigationService() |
java.util.List<TypedObject> |
getRootNavigationNodes(CatalogVersionModel catVer)
Find all root nodes for a given catalog version
|
protected TypeService |
getTypeService() |
boolean |
isLeaf(TypedObject node)
Determine whether a node is a leaf node or not.
|
void |
setCmsNavigationService(CMSNavigationService navigationNodeService) |
void |
setTypeService(TypeService typeService) |
public TypedObject getChild(TypedObject node, int index)
NavigationNodeTreeServicegetChild in interface NavigationNodeTreeServicenode - parent nodeindex - node positionpublic int getChildCount(TypedObject node)
NavigationNodeTreeServicegetChildCount in interface NavigationNodeTreeServicenode - parent node with children nodespublic boolean isLeaf(TypedObject node)
NavigationNodeTreeServiceisLeaf in interface NavigationNodeTreeServiceprotected TypeService getTypeService()
public void setTypeService(TypeService typeService)
public java.util.List<TypedObject> getRootNavigationNodes(CatalogVersionModel catVer)
NavigationNodeTreeServicegetRootNavigationNodes in interface NavigationNodeTreeServicecatVer - catalog versionprotected CMSNavigationService getCmsNavigationService()
public void setCmsNavigationService(CMSNavigationService navigationNodeService)
Copyright © 2018 SAP SE. All Rights Reserved.