Hi Guys,
In our application, we read one property file from KM folder using this code.
com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
myLinkRid = RID.getRID(propertyFile);
resourceContext = new ResourceContext(user);
IResource resource = ResourceFactory.getInstance().getResource(myLinkRid,resourceContext);
The functionality is working fine. But IUser and getServiceUserFactory() methods are showing depreciated. So, please let me know the correct method(without depriciate) of these two.
And one more function is getting the user's last successfull logon date using IUserAccount getLastSuccessfullLogonDate() method and setLastSuccessfulLogonDate(date) method. In those methods also showing depreciated. But functionality is working fine.
So, please let me know, if any correct methods is in this process.
Thanks & Regards
Vijaykumar.S