on 10-05-2007 3:35 PM
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
why don't u use,
request.getUser().getUser()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.