Thank you very much David, this is just what I needed

Regards

-----Original Message-----
From: David Taylor [mailto:[email protected]] 
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
<[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to