On Monday 20 January 2014 at 20:40, Peter Palaga wrote:
On 2014-01-20 20:13, Julien Viet wrote:can you tell me what are the properties you want store in addition ofthe URLLink ?The customer mentions an "open in new window" true/false attribute.-- PPJulien VietOn Monday 20 January 2014 at 14:21, Peter Palaga wrote:Thanks for the info, Julien. Yes, that is a way how to solve the URLpart of the problem.For the "open in new window", part I'd anyway expose the MOP attributesin some form trough the GateIn API.Thanks again,PeterOn 2014-01-20 13:47, Julien Viet wrote:I asked this question to be sure about your answer.For having navigation node pointing to external URL, you should useinstead the MOP that provides a way for achieving this result.The org.gatein.mop.api.workspace.Navigation object ownsorg.gatein.mop.api.workspace.link.Link object that is implemented forpages by the org.gatein.mop.api.workspace.link.PageLink subtype thatmeans that the navigations points to a page.There is also the org.gatein.mop.api.workspace.link.URLLink that seemsto be the feature you want to implement.This URLLink was never really exploited in the portal MOP however it isa feature that was anticipated when the MOP was designed.Julien Vietjulienviet.com <http://julienviet.com>On Monday 20 January 2014 at 13:22, Peter Palaga wrote:Hi Julien,for whatever reason, the customer wants to have navigation itemspointing to URLs external to the current portal installation.For example, if the current portal is hosted on my-company.com<http://my-company.com> they wantto be able to have navigation items pointing at e.g.<http://another-company.com/somepage.html>. This is not possible withthe presentAPI, which allows only for pointing at pages existing in the currentportal.Note that they also mention the need to store the info hwether the linkshould be opened in a new window.The proposed node properties can solve both.Best,PeterOn 2014-01-20 12:56, Julien Viet wrote:I do not understand clearly what means "navigation nodes pointing toexternal URLs” .what is the purpose of these external URLs ?Julien Vietjulienviet.com <http://julienviet.com>On Monday 20 January 2014 at 10:46, Peter Palaga wrote:Hi Julien, inline...On 2014-01-20 10:33, Julien Viet wrote:Hi Peter,can you describe the attributes you would like to store in this map ?Sure. Cite from* Both keys and values of the new node Properties would allowstrings only* The API would guarantee the uniqueness of the keys per node* The API would not guarantee anything about store/iteration order ofthe properties* GUI for editing the properties not a priority* Authorization: same as for other Navigation Node attributes -who canedit those, can edit also the new properties.-- PeterJulien Vietjulienviet.com <http://julienviet.com>On Friday 17 January 2014 at 13:58, Peter Palaga wrote:Hi Julien,I have just found that there isorg.gatein.mop.api.workspace.Navigation.getAttributes() on the MOPlayerwhich could be used to store the requested navigation nodeproperties.Can somebody see a reason, why this is not a good idea?Naturally, I'd have to find a way how to prevent a clash withkeys weuse internaly (e.g. MappedAttributes). Some simple prefix forthe keyspassed from the gatein api could solve that, I guess.Thanks,PeterOn 2014-01-16 18:13, Peter Palaga wrote:Hi *,I am starting to look at the customer request to provide a way todefinenavigation nodes pointing to external URLs. They can accomplishthis inPortal 4.3 using page properties, storing there not only theURL butalso if the link should open in a new window, etc. This data isthenused in a custom navigation portlet.There is no way known to me how this could be achieved using thepresentnavigation API. The following wiki page offers a space todiscuss thesolution. Please comment!Best,Peter_______________________________________________gatein-dev mailing listgatein-dev@lists.jboss.org <mailto:gatein-dev@lists.jboss.org>