on 01-02-2012 11:46 AM
Hello All,
I´m using the SAP Portal 7.01 SP6 and I wish an way to get the LastSuccessfulLogonDate of User UME.
The method getLastSuccessfulLogonDate do not work anymore because it was deprecated.
Does someone know another way to get this information? Is there some replacement API for that?
thanks.
Hi,
That does not exist anymore. So I developed some code for it. It uses standart UME fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
now is working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still not working
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello All,
If I insert the code bellow inside the MastHead(com.sap.portal.navigation.masthead.par) of Portal, then the method getLastSuccessfulLogonDate work OK.
String userName = request.getUser().getUniqueName();
try{
IUserAccount userAccount = UMFactory.getUserAccountFactory().getUserAccountByLogonId(userName);
IUserAccount mutableUserAccount = UMFactory.getUserAccountFactory().getMutableUserAccount(userAccount.getUniqueID());
Date now = new Date();
mutableUserAccount.setLastSuccessfulLogonDate(now);
mutableUserAccount.save();
mutableUserAccount.commit();
}catch (Exception e){}
Edited by: Tulio Vargas on Jan 19, 2012 6:58 PM
User | Count |
---|---|
87 | |
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.