programmatically retrieving group using PUMA
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > programmatically retrieving group using PUMA




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    programmatically retrieving group using PUMA  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-10-07 12:28 AM

Hello,
I am using the following code to retrieve the user group.
try{
PumaProfile pp = puma_home.getProfile(request);
PumaLocator pLocator=puma_home.getLocator(request);
User user = (User)pp.getCurrentUser();
java.util.Map attrib_values = pp.getAttributes(user, createAttributes());   
  List list=pLocator.findGroupsByPrincipal(user,true);
Iterator i1=list.iterator();
while(i1.hasNext())
{
Group group=(Group)i1.next();
java.util.Map groupAttribs=pp. getAttributes(group,createGroupAttribute
s());

String cn=(String)groupAttribs.get((Object)"cn");
System.out.println("CN="+cn);

}
}catch (PumaException pe){
System.out.println("exception in testPumaProfile"+pe.getMessage());
}catch(Exception e)
{
System.out.println("exception"+e.getMessage());
}


public static List createGroupAttributes()
{
List attribs=new ArrayList();


attribs.add("cn");
return attribs;

}

For groups like wpsadmins its working fine but for other groups its giving t
he following error
xception in testPumaProfilecom.ibm.portal.WpsException: EJPSG0029E: The user
 uid=bikramjit,o=Default Organization does not have the necessary rights to 
perform action (PermissionCollection)[8_0_CH [USER_GROUP:401]:NAAc
tionSet)View, (-1 ) (/ActionSet)](/
PermissionCollection)
Any help?





[ Post a follow-up to this message ]



    Re: programmatically retrieving group using PUMA  
bnaha


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-11-07 06:31 PM

I have resolved it!!!!!.





[ Post a follow-up to this message ]



    Re: programmatically retrieving group using PUMA  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-11-07 06:31 PM

Ok friend, but when you announce a resolution you have to share it with the 
rest of the forum 







[ Post a follow-up to this message ]



    Re: programmatically retrieving group using PUMA  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-07 12:22 AM

I got the same issue and this is the fix:

go to portal admin|access|virtual resources|USER GROUPS, add authenticated u
sers to Users setting, should fix the problem...





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:11 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register