on 08-28-2008 7:43 AM
Hi Experts
I need to get the portal role information ie Role Name and Role id which is currently assigned to the current user in runtime through webdynpro java please help me out in this issue
Regards
Noel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you want to get the uniquename of the logged in portal user use this code.
String Username = "";
IWDClientUser wdUser = null;
try {
wdUser = WDClientUser.getCurrentUser();
} catch (WDUMException e) {
e.printStackTrace();
}
IUser user = wdUser.getSAPUser();
();
Username =user.getUniqueName();
// for unique ID use user.getUniqueId().
for this you need to add the security.api jar file.
Right click on the project properties->addexternal jars and add this .jar file
hope that is helpful,let me know if you have any issues
regards
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.