on 10-10-2007 4:47 PM
Hello,
I have trouble with getting role from UMFactory after upgrade to (EP 7) SP13. I'm using this code "
UMFactory.getRoleFactory().getRoleByUniqueName(g_check_role);
" Now I get only information that the role cannot be found (works in previous version of portal). Really I don't know where can be problem... Do you have any suggestion or information about this?
Thanks !
Hi Roman,
the problem may take place in string definition of role unique name - g_check_role. An suggestion:
Try to add this role to your user in EP. Then call
IUserFactory uf = UMFactory.getUserFactory();
String s[] = UMFactory.getRoleFactory().getRolesOfUser(uf.getUserByLogonID(<your user logon id>).getUniqueID(),true);
<b>s</b> is an String[] array containing all unique names of all roles assigned to the given user. Then just check the value of the role you are interested in.
mz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.