Navigation Helper Service
The methods of the navigation helper server wrap the basic methods of the navigation service, in order to provide commonly needed functionality.
For example, while you could find the parent of the current node by using the navigation service’s INavigationNamingHandler interface, it is easier to use the navigation helper service’s getParent() method.
There are two versions of the helper service, both PRT services:
● INavigationHelperService: To be called by portal (PRT) applications. Each method takes the IPortalComponentRequest object as a parameter.
● IWDNavigationHelperService: To be called by Web Dynpro applications. Provides the same methods as INavigationHelperService, but the methods in this service do not require a request object.
The following code shows how to obtain the navigation helper service in a portal application:
INavigationHelperService
navHelperService = (INavigationHelperService)
PortalRuntime.getRuntimeResources()
.getService(INavigationHelperService.KEY);
The following code shows how to obtain the navigation helper service in a Web Dynpro application:
IWDNavigationHelperService wdNavHelperService =
(IWDNavigationHelperService) WDPortalUtils
.getService(IWDNavigationHelperService.KEY);