Skip to Content
Former Member
Nov 29, 2007 at 03:00 PM

ResourceContext(IUser) constructor is undefined,problem of Deprecated IUser


Hi Experts,

I have created an IUser as follows: user = UMFactory.getUserFactory().getUserByLogonID("Kmuser");

now i m using this user into the following:

IResourceContext resourceContext = new ResourceContext(user);

For this i m getting a compiler error that constructor for ResourceContext(user) doesnt exist.

I did explored and studied about the IUser then i came to know that thare are two types of IUser one is com.sapportals.wcm.util.usermanagement.IUser which is deprecated and the newer one is

ResourceContext class has all the constructor which takes only the deprecated IUser.

So does SAP APIs provides any other ResourceContext class which Works well with

Or is there any way to cast to com.sapportals.wcm.util.usermanagement.IUser????

Please help me out

Help will be appreciated and rewarded