on 07-31-2014 10:48 AM
Hi experts,
In the below method the Iuser is deprecated in nwds 7.31 sp 12 , do we have any other aleternative for this , im using the below code to read data from KM
com.sapportals.portal.security.usermanagement.IUser epUser = null;
try
{
epUser = WPUMFactory.getUserFactory().getEP5User(sapUser);
}
catch(Exception e)
{
}
Regards
Govardan
Hi,
Please use IUserFactory API where in you can use the method:getLogonByUserId().Also there are additional methods of IUserAccount as well.
Do try and let me know.
Regards,
Nimisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You know, there is documentation: Using User Management Engine API - Portal - SAP Library and User Management Functions for Users - Integrating Security Functions - SAP Library.
Do not use the method getEP5User.
Try to use get User by Login ID.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to check for the Jar which provides the IUser for you. IUser in the older may be deprecated and to resolve, you may have to use the new Jar for 7.3 under JDK6.
For example: For IRole, you need to replace com.sapportals.portal.security.usermanagement.IRoleFactory with com.sap.security.api.IRoleFactory and import com.sap.security.api.IRoleFactory instead of com.sapportals.portal.security.usermanagement.IRole. while migrating the Portal applications from 7.0x to 7.3
Try to look up for something similar for IUser.
Hopefully it should solve your issue.
Regards,
Sharath
Hi Giovardan,
You can try com.sap.security.api.IUserAccountFactory api, then get user by logon ID.
http://help.sap.com/javadocs/nwce/ce71/se/SP5/com/sap/security/api/IUserAccountFactory.html
Regards,
Nikhil
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 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.