Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
GaneshKumar Kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your using IBM WebSphere, try this code to access PUMA. I'm sure the code is similar with the other environments.

 
Adam Martin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops! sorry for the double post.
[ June 01, 2007: Message edited by: Adam Martin ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic