You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Ashwill, Steve (Facilities & Services)" <sa...@uiuc.edu> on 2008/11/11 22:06:45 UTC
Accessing the GroupManager when running a struts app as a portal
I'm running an app in a portal using the struts bridge. It appears to be
set-up similar to the JPetstorePortlet description I found at
http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
However I can't seem to find a way to get the Jetspeed GroupManager .
I've tried to follow the steps outlined at:
http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html
<http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html
>
with no luck.
Can anyone tell me how I get the GroupManager or some other way to find
out what groups a user is a member of?
Steven Ashwill
p.s
I get the user name with a simple:
username = request.getUserPrincipal().getName();
Re: Accessing the GroupManager when running a struts app as a portal
Posted by David Sean Taylor <dt...@onehippo.com>.
On Nov 11, 2008, at 1:06 PM, Ashwill, Steve (Facilities & Services)
wrote:
> I'm running an app in a portal using the struts bridge. It appears
> to be
> set-up similar to the JPetstorePortlet description I found at
> http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
> However I can't seem to find a way to get the Jetspeed GroupManager .
>
> I've tried to follow the steps outlined at:
> http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-
> service.html
> <http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html
>>
> with no luck.
>
> Can anyone tell me how I get the GroupManager or some other way to
> find
> out what groups a user is a member of?
>
The tutorial approach should work fine. Make sure you are not
including the jetspeed-api jar in your webapp
Also, make sure you add a reference to the group manager in your
jetspeed-portlet.xml:
<js:services>
<js:service name='GroupManager'/>
...
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Accessing the GroupManager when running a struts app as a portal
Posted by Woonsan Ko <wo...@yahoo.com>.
Hi Steve,
I think you need to extend the StrutsPortlet by overriding the init(PortletConfig config) method. In your init(PortletConfig config) method, get the group manager component after super.init() and save it as a member as jetspeed-service guide document says. Of course, you need to edit jetspeed-portlet.xml also.
Regards,
Woonsan
--- On Tue, 11/11/08, Ashwill, Steve (Facilities & Services) <sa...@uiuc.edu> wrote:
> From: Ashwill, Steve (Facilities & Services) <sa...@uiuc.edu>
> Subject: Accessing the GroupManager when running a struts app as a portal
> To: "Jetspeed Users List" <je...@portals.apache.org>
> Date: Tuesday, November 11, 2008, 10:06 PM
> I'm running an app in a portal using the struts bridge.
> It appears to be
> set-up similar to the JPetstorePortlet description I found
> at
> http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
> However I can't seem to find a way to get the Jetspeed
> GroupManager .
>
> I've tried to follow the steps outlined at:
> http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html
> <http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html
> >
> with no luck.
>
> Can anyone tell me how I get the GroupManager or some other
> way to find
> out what groups a user is a member of?
>
>
>
> Steven Ashwill
>
>
> p.s
> I get the user name with a simple:
> username = request.getUserPrincipal().getName();
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org