on 03-08-2006 5:36 AM
Hi
I am getting following exception while trying to lock a user in WAS.
UMRuntimeException: Maint method setLocked cannot be used because the principal is not mutable!
i have written the following code
<i>try {
IUserAccountFactory userAccountFactory = UMFactory.getUserAccountFactory();
IUserFactory userFactory = UMFactory.getUserFactory();
IUser user = userFactory.getMutableUser(wdContext.currentUserDetailsElement().getUniqueID());
IUserAccount[] accounts = user.getUserAccounts();
wdComponentAPI.getMessageManager().reportSuccess(accounts[0].getUniqueID());
accounts[0].setLocked(true,accounts[0].LOCKED_BY_ADMIN);
} catch (UMException ex) {
wdComponentAPI.getMessageManager().reportSuccess(
"UME Exception" + ex.getMessage());
}
</i>
Do you have any solution.
Regads
Shobhan
Hi Shoban,
Could you able to manage lock the user?. Could you please pass me the code. Thank you in advance
Regards
Maruti
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 | |
10 | |
7 | |
6 | |
6 | |
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.