Show TOC

Navigation Helper ServiceLocate this document in the navigation structure

Use

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 for portal (PRT) applications. Each method takes the IPortalComponentRequest object as a parameter.

  • IWDNavigationHelperService for Web Dynpro applications. Provides the same methods as INavigationHelperService , but the methods in this service do not require a request object.

Portal Application

The following code shows how to obtain the navigation helper service in a portal application:

Sample Code
                  INavigationHelperService navHelperService = (INavigationHelperService)
    PortalRuntime.getRuntimeResources()
        .getService(INavigationHelperService.KEY);
               

Web Dynpro Application

The following code shows how to obtain the navigation helper service in a Web Dynpro application:

Sample Code
                  IWDNavigationHelperService wdNavHelperService =
    (IWDNavigationHelperService) WDPortalUtils
        .getService(IWDNavigationHelperService.KEY);