on 12-30-2014 6:28 AM
Hello,
I have a requirement where I need to create a web service which takes a querystring as input and returns matching portal navigation suggestions as output.
I am looking for a server side API that I can use within my stateless session bean which will do this job.
Any ideas/code samples/API links will be of great help.
Thanks & Regards,
Amey
Hi,
It would be ofcourse much easier with client side ,as there is the LSAPI just for that.
In server side, you can write a component that uses the INavigationService , and from there getInitialNodes method that gets all the logged in user's roles. (and then inspect the children , etc..)
Best Regards,
Tal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot Tal for prompt & useful reply.
The method getInitialNodes returns all roles for a user in form of an arraylist of NavigationNodes .
And then I need to search within this list for matching navigation node titles?
If possible, could you please also share links to any blog/documentation available for demonstration of how to use this INavigationService ?
Thanks & Regards,
Amey
Hello Tal,
Thanks for reply. Two queries: -
1. I checked the blog and implementation of method getrootnodes is not mentioned in it
2. I also found below link but it has code only to get current user's initial (top-level) navigation nodes: -
mySiteMap.java - Portal - SAP Library
Any further ideas?
Thanks & Regards,
Amey
Hi,
You can check also javadocs of INavigationService -
http://help.sap.com/javadocs/NW73/SPS01/EP/com/sapportals/portal/navigation/INavigationService.html
see the getInitialNodes methods
And in the INavigationNode for each node, you can fetch the children:
http://help.sap.com/javadocs/NW73/SPS01/EP/com/sapportals/portal/navigation/INavigationNode.html
Best Regards,
Tal
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.