*
The moose likes Portals and Portlets and the fly likes How to check the  User's Groups in JSR 168 portlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "How to check the  User Watch "How to check the  User New topic
Author

How to check the User's Groups in JSR 168 portlet?

GaneshKumar Kumar
Greenhorn

Joined: May 23, 2006
Posts: 24
Hi,
I am developing JSR 168 portlets for installing in WPS 5.1. In one portlet I need to check the group where the user belongs to? Any idea how to do this? Please let me know if you know

Thanks,
Ganesh
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

How do you want to do it?

One way is to use the PUMA APIs. Another might be to actually use a Java connection to the LDAP database. PUMA might be best.

-Cameron McKenzie
GaneshKumar Kumar
Greenhorn

Joined: May 23, 2006
Posts: 24
Hi Cameron,
I want to do it by using PUMA. May I use it in JSR 168 portlet? If so can I import the package and directly use it in the CustomPortlet.java class Or any changes to be done in Portal properties files. Please let me know.

Thanks.
Ganesh
Adam Martin
Greenhorn

Joined: Jun 16, 2006
Posts: 4
If your using IBM WebSphere, try this code to access PUMA. I'm sure the code is similar with the other environments.



SCJP 1.4<br />SCWCD 1.4
Adam Martin
Greenhorn

Joined: Jun 16, 2006
Posts: 4
oops! sorry for the double post.
[ June 01, 2007: Message edited by: Adam Martin ]
 
wood burning stoves
 
subject: How to check the User's Groups in JSR 168 portlet?
 
Similar Threads
how to redirect to another servlet in a jsf+portal project
Add maximize button to portlet
Aren't IBM Portlet API based on JSR 168?
previousMode
Query on JSR 168 Struts portlet