portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "curro" <franciscojavier.ros...@avarmar.com>
Subject RE: Jetspeed service in Header.vm
Date Tue, 26 Oct 2010 07:43:12 GMT
Thank you very much David, this is just what I needed

Regards

-----Original Message-----
From: David Taylor [mailto:davidseantaylor@gmail.com] 
Sent: lunes, 25 de octubre de 2010 16:46
To: Jetspeed Developers List
Subject: Re: Jetspeed service in Header.vm

On Thu, Oct 21, 2010 at 9:12 AM, curro
<franciscojavier.rosado@avarmar.com> wrote:
> Hello all,
>
> Some one knows if Can I use the GroupManager from the Header.vm? I need to
> know if some user is member of some Groups in the Header.vm.
>

#set ($gm =
$jetspeed.getComponent("org.apache.jetspeed.security.GroupManager"))
<b>Group = $gm.getGroup("test")</b>


> The only solution I can think of is to create a velocity tool that
connects
> to the DB and see the security table.

Another approach: writing a portlet. The tutorial covers accessing
services in portlets:

http://portals.apache.org/jetspeed-2/tutorial/04/jetspeed-service.html

And then rendering your portlet window with

$jetspeed.renderPortletWindow("windowId", "app::portlet")

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message