So I'm rolling some of my own KM API based JSP pages and AbstractPortalComponents and I found the following code to gain access to the KM:
com.sap.security.api.IUser user=(com.sap.security.api.IUser)request.getUser(); com.sapportals.portal.security.usermanagement.IUser epUser = WPUMFactory.getUserFactory().getEP5User(user); ResourceContext ctx= new ResourceContext(epUser);
The problem is, WPUMFactory.getUserFactory().getEP5User() is deprecated. Surely there's a non-deprecated way to achieve getting a ResourceContext object. Unfortunately I've not found a good guide on how to use the KM API that's not over 2 years old.
Any thoughts?