Class DefaultNavigationNodeTreeService
- java.lang.Object
-
- de.hybris.platform.cmscockpit.services.impl.DefaultNavigationNodeTreeService
-
- All Implemented Interfaces:
NavigationNodeTreeService
public class DefaultNavigationNodeTreeService extends java.lang.Object implements NavigationNodeTreeService
Default service for navigation nodes tree model
-
-
Constructor Summary
Constructors Constructor Description DefaultNavigationNodeTreeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedObjectgetChild(TypedObject node, int index)Find a child node of a given node at a given positionintgetChildCount(TypedObject node)Find number of child nodes for a given nodeprotected CMSNavigationServicegetCmsNavigationService()java.util.List<TypedObject>getRootNavigationNodes(CatalogVersionModel catVer)Find all root nodes for a given catalog versionprotected TypeServicegetTypeService()booleanisLeaf(TypedObject node)Determine whether a node is a leaf node or not.voidsetCmsNavigationService(CMSNavigationService navigationNodeService)voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
getChild
public TypedObject getChild(TypedObject node, int index)
Description copied from interface:NavigationNodeTreeServiceFind a child node of a given node at a given position- Specified by:
getChildin interfaceNavigationNodeTreeService- Parameters:
node- parent nodeindex- node position- Returns:
- child node of given node at given (index) position
-
getChildCount
public int getChildCount(TypedObject node)
Description copied from interface:NavigationNodeTreeServiceFind number of child nodes for a given node- Specified by:
getChildCountin interfaceNavigationNodeTreeService- Parameters:
node- parent node with children nodes- Returns:
- quantity of children
-
isLeaf
public boolean isLeaf(TypedObject node)
Description copied from interface:NavigationNodeTreeServiceDetermine whether a node is a leaf node or not.- Specified by:
isLeafin interfaceNavigationNodeTreeService- Returns:
- true if has no children, or is leaf by other means
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
getRootNavigationNodes
public java.util.List<TypedObject> getRootNavigationNodes(CatalogVersionModel catVer)
Description copied from interface:NavigationNodeTreeServiceFind all root nodes for a given catalog version- Specified by:
getRootNavigationNodesin interfaceNavigationNodeTreeService- Parameters:
catVer- catalog version- Returns:
- root nodes for given catalog version
-
getCmsNavigationService
protected CMSNavigationService getCmsNavigationService()
-
setCmsNavigationService
public void setCmsNavigationService(CMSNavigationService navigationNodeService)
-
-