Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 05, 2007 at 04:42 PM

    why don't u use,

    request.getUser().getUser()

    Add comment
    10|10000 characters needed characters exceeded