on 08-17-2009 12:50 PM
Hi Colleagues,
I am trying to get the portal roles assigned to a user in UME.When i go to User administration ,give a user ID and go to the assigned roles of that particular user,it lists me all the roles assigned to the user .The data sources can be Portal Role or UME database.
I want to make sure that i access only portal roles and not roles from UME database.
I am using the below code to retrieve all the roles assignerd to a user in UME.
IUser user = UMFactory.getUserFactory().getUserByLogonID(userID);
Iterator role=user.getRoles(true);
wdComponentAPI.getMessageManager().reportSuccess(userID);
String roleroot = null;
{
while(role.hasNext()){
String rolestr= (String)role.next();
wdComponentAPI.getMessageManager().reportSuccess(rolestr);
IRole r= UMFactory.getRoleFactory().getRole(rolestr);
roleroot =r.getUniqueName();
wdComponentAPI.getMessageManager().reportSuccess(roleroot);
Can anyone suggest how can i make neccessary changes to retrieve only the portal roles.
Regards,
Suvarna
Ref to "/thread/1446234 [original link is broken]
Thanks,
MS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.