Hi Experts ,
I have a scenario similar to the one in following weblog:
Accessing A Web Dynpro Application Through Portal Using Portal User ID
I need to know, if I can get the Portal "Role" of the user who has
looged in on the portal and then pass it as the application parameter
to the Web Dynpro application.
Also, if there is any other way to get the Portal Role of the user
in Web Dynpro, if EP and Web Dynpro are on different servers.
For the same server situation i have tried the following code which works:
Iterator rit = null;
IWDClientUser clientUser = WDClientUser.getCurrentUser();
IUser user = clientUser.getSAPUser();
rit = user.getRoles(true);
IRoleFactory rfact = UMFactory.getRoleFactory();
while (rit.hasNext()) {
String roleName = (String) rit.next();
IRole role = rfact.getRole(roleName);
wdContext.currentContextElement().setRole(role);
}
Any help would be appreciated.
Thanx in Advance
Alka.