You must register the connector with the navigation service for the navigation service to include your navigation nodes in the portal.
Generally, you create a new service whose only function is to register your connector.
Create a portal service, which must implement IService.
Define a constant for the prefix.
Syntax
public static String NAV_CONNECTOR_PREFIX = "myPrefix";
In the service's init() method, create an instance of your INavigationConnector class.
Syntax
public void init(IServiceContext serviceContext) { mm_serviceContext = serviceContext; myConnector = new myConnector(); }
Register the navigation connector in the service's afterInit() method.
Syntax
public void afterInit() { INavigationConnectorRegistration service = (INavigationConnectorRegistration) getContext().getService(INavigationService.KEY); if (service != null) { service.registerConnector( NAV_FILE_CONNECTOR_PREFIX, myConnector); } }
Create a service entry in portalapp.xml for the service, similar to the one shown below:
Syntax
<service name="myConnectorService"> <service-config> <property name="className" value="myConnectorService"/> <property name="startup" value="true"/> </service-config> </service>