cancel
Showing results for 
Search instead for 
Did you mean: 

ResourceContext using IUser with Net Weaver 7.0 SPS 11

former_member540174
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

why don't u use,

request.getUser().getUser()

former_member540174
Participant
0 Kudos

It says requst.getUser().getUser() is deprecated.

Diane