|
Home > Archive > WebSphere Portal Server > April 2005 > PUMA API
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hi Im looking for PUMA API. Can somebody help to find the API.
Thanks
-sri
| |
|
| Search for - wp.user.api.jar, I think it is in shared/app.
Regards
Karin
| |
|
| Hi,
I think this link only includes the docmentation as far as i can see (unless firewall is stripping jars).
I did actually find the classes in wps.jar in the basev5_stub area of RAD6.0. I'm referencing this and getting group information in the app fine now. Thanks for your pointer.
Rough code below for anyone else...
Regards,
mark
try
{
UserManager userMngr = UserManager.instance();
com.ibm.wps.puma.User u = userMngr.findById(request.getUser().getID());
java.util.List groups = u.getGroups();
for(int x=0; x<groups.size(); x++)
{
com.ibm.wps.puma.Group group = (com.ibm.wps.puma.Group)groups.get(x);
String info = "User In GROUP: " + group.getName();
getPortletLog().info(info);
}
}
catch(Exception e)
{
String info = "LOGGER::login - Exception: " + e.getMessage();
getPortletLog().info(info);
}
|
|
|
|
|