Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ResourceContext using IUser with Net Weaver 7.0 SPS 11

We use EP 7.0 SP11.

I am creating a portal component that reads a file from KM and utlizes the information in the file to "do stuff". Who would have thought this would be so difficult to find a current example. I have been able to determine how to get to the file and read the contents but I have hit a snag with the ResourceContext.

com.sapportals.portal.security.usermanagement.IUser ep5User = null;
		
try
{
ep5User = WPUMFactory.getUserFactory().getEP5User(request.getUser());
}
....

IResourceContext resourceContext = new ResourceContext(ep5User);
try 
{ 
com.sapportals.wcm.repository.IResource resource = 
ResourceFactory.getInstance().getResource(rid, resourceContext);
...

ResourceContext expects com.sapportals.portal.security.usermanagement.IUser - I was able to find some code to convert my 7.0 IUser to the 5.0 IUser. But the method's say they are depricated. Is this ok - should I be using something else to do this?

Regards,

Diane

Message was edited by:

Diane Fuller

Former Member
Not what you were looking for? View more on this topic or Ask a question