-
1. Re: How to overwrite the UIPortalNavigation.js(Shared resouces) logics using extenstion project??
trong.tran Sep 4, 2012 8:40 AM (in response to sreenureddy20)I recommend you to build your own navigation portlet base on the existing one, it's much easier to touch your need.
-
2. Re: How to overwrite the UIPortalNavigation.js(Shared resouces) logics using extenstion project??
sreenureddy20 Sep 4, 2012 11:35 AM (in response to trong.tran)Thank you Trong Tran. If we create own navigation portlet, can we manage the nodes and subnodes of the navigation menu?
Please let me know the process of managing the navigation nodes and subnodes.
-
3. Re: How to overwrite the UIPortalNavigation.js(Shared resouces) logics using extenstion project??
trong.tran Sep 4, 2012 11:23 PM (in response to sreenureddy20)absolutely yes, you can manage the nodes/subnodes of a navigation by ( it's supposed that you are using latest GateIn release versions ) :
1/ Using public API from https://github.com/gatein/gatein-api-java which is more recommended. It could also help to improve the API if you have any feedback.
2/ Using internal NavigationService API which is also being used in the existing built-in navigation portlets.
-
4. Re: How to overwrite the UIPortalNavigation.js(Shared resouces) logics using extenstion project??
sreenureddy20 Sep 5, 2012 2:51 AM (in response to trong.tran)In https://github.com/gatein/gatein-api-java has only interfaces. Where we can find the implementaions for these api.
Where can we find internal NAvigationService API
Please let me know..
-
5. Re: How to overwrite the UIPortalNavigation.js(Shared resouces) logics using extenstion project??
trong.tran Sep 5, 2012 4:00 AM (in response to sreenureddy20)The public API's implementation is also there. Unfortunately there is not yet an offical documentation for this, so you could take a look at JUnit testcase for reference in use.
For the internal NavigationService, it's in GateIn code base org.exoplatform.portal.mop.navigation.NavigationService. It also has JUnit testcases for reference OR you could take the existing built-in navigation portlets for example as I said.
-
6. Re: How to overwrite the UIPortalNavigation.js(Shared resouces) logics using extenstion project??
nscavell Sep 5, 2012 9:59 AM (in response to sreenureddy20)The public API has undergo some changes and we hope to release an alpha or something soon for people to play with. Unfortunately it hasn't gained much ground in the last week or so, but we are aiming at including the public api in 3.5. You can take a look at some early work here http://git.io/mQ5IRw. There is no current branch for gatein that supports this yet (the implementation). Hoping this will be coming shortly.
The api on github that Trong linked was missing the user case. There was no concept of the current request. You had to know what site to load the navigation from (which should be known by the current request) and you had to know the user if you wanted to filter on security. The one I linked hopefully will solve the issue and to obtain the navigation you would do something like
Navigation navigation = PortalRequest.getInstance().getNavigation();
If you are looking for something now then really your only option is to use the internal api NavigationService, or look at the UserNavigation and UserPortal. You can see an example of this here https://community.jboss.org/wiki/PortalNavigationjava. Using internal api's comes with some risk as they can change between point releases. Hence the whole reason we are trying to have a public api available. But until then, there's really no alternative.
-
7. Re: How to overwrite the UIPortalNavigation.js(Shared resouces) logics using extenstion project??
trong.tran Sep 6, 2012 6:51 AM (in response to nscavell)Thanks Nick for the clarificaton. I missed these points, it's my bad
-
8. Re: How to overwrite the UIPortalNavigation.js(Shared resouces) logics using extenstion project??
sreenureddy20 Sep 6, 2012 7:56 AM (in response to nscavell)Thanks Nick. Can you provide a simple working application for this requirement..