public class NavigationController extends Object
| Constructor and Description |
|---|
NavigationController() |
| Modifier and Type | Method and Description |
|---|---|
NavigationNodeData |
createNavigationNodeById(NavigationNodeData navigationNode,
HttpServletRequest request,
HttpServletResponse response)
Adds a new navigation node
|
void |
deleteNavigationNodeById(String uid)
Deletes the navigation node.
|
NavigationNodeListData |
findAllNavigationAncestorsAndSelf(String navigationNodeUid)
Finds all navigation ancestors for a given node uid and the node itself.
|
NavigationNodeListData |
findAllNavigationNodes()
Finds all navigation nodes
|
NavigationNodeListData |
findAllNavigationNodesByParentUid(String parentUid)
Finds all navigation nodes filtering by parentUid
|
NavigationNodeData |
findNavigationNodeById(String uid)
Find the navigation node by uid.
|
protected LocationHeaderResource |
getLocationHeaderResource() |
protected NavigationFacade |
getNavigationFacade() |
void |
setLocationHeaderResource(LocationHeaderResource locationHeaderResource) |
void |
setNavigationFacade(NavigationFacade navigationFacade) |
NavigationNodeData |
updateNavigationNodeById(String uid,
NavigationNodeData navigationNode)
Updates the navigation node for a given navigation node uid
|
public NavigationNodeListData findAllNavigationNodesByParentUid(String parentUid)
parentUid - the parent navigation node Uidpublic NavigationNodeListData findAllNavigationNodes()
public NavigationNodeData findNavigationNodeById(String uid) throws CMSItemNotFoundException
CMSItemNotFoundException - when the Navigation Node has not been found.public NavigationNodeData updateNavigationNodeById(String uid, NavigationNodeData navigationNode) throws CMSItemNotFoundException
CMSItemNotFoundException - when the Navigation Node has not been found.public void deleteNavigationNodeById(String uid) throws CMSItemNotFoundException
CMSItemNotFoundException - when the Navigation Node has not been found.public NavigationNodeData createNavigationNodeById(NavigationNodeData navigationNode, HttpServletRequest request, HttpServletResponse response) throws CMSItemNotFoundException
request - the HttpServletRequest objectresponse - the HttpServletResponse objectCMSItemNotFoundException - if the parentUid does not existpublic NavigationNodeListData findAllNavigationAncestorsAndSelf(String navigationNodeUid) throws CMSItemNotFoundException
CMSItemNotFoundException - when the navigation node uid does not exist.protected NavigationFacade getNavigationFacade()
public void setNavigationFacade(NavigationFacade navigationFacade)
protected LocationHeaderResource getLocationHeaderResource()
public void setLocationHeaderResource(LocationHeaderResource locationHeaderResource)
Copyright © 2000-2016 SAP SE. All Rights Reserved.