WebSphere Portal Server - PUMA API

This is Interesting: Free IT Magazines  
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]

Author PUMA API

2005-04-01, 6:02 pm

Hi Im looking for PUMA API. Can somebody help to find the API.
Thanks
-sri

2005-04-05, 7:54 am

Search for - wp.user.api.jar, I think it is in shared/app.

Regards
Karin

2005-04-13, 6:01 pm

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);
}

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com