Quantcast
Channel: SCN : Popular Discussions - SAP Enterprise Portal: Content Management and Collaboration
Viewing all articles
Browse latest Browse all 1826

Problem with IUser Object

$
0
0

HI Experts,

 

I am developing a Search Application using the KM Indexmanagement API for TREX.

 

As part of my development, i need  current loged in USER,

i am getting IUSER Object  using com.sap.security.IUser.(NEW VERSION API OBJECT)

 

Now I need to create ResouceContext Object using  IResourceContext API.

But it takes IUser object as argument,

which is of type com.sapportals.portal.security.usermanagement.IUser (OLDER VERSION API OBJECT).

NOW I need to convert New version IUSER to older version IUSER.

 

HOW IT IS POSSIBLE??????

 

I tried all the possible ways like........using

 

Fisrt way i tried is......

 

*****************************************

IWDClientUser wdClientUser = WDClientUser.getCurrentUser();

IUser sapUser = wdClientUser.getSAPUser();

 

         com.sapportals.portal.security.usermanagement.IUser ep5User =

           WPUMFactory.getUserFactory().

           getEP5User(sapUser);

       

           IResourceContext resourseContext = new ResourceContext(ep5User); 

                                         

*********************************************************

When i try using this it says the below code is deprecated and it is not excuting at all

but not giving error, it show warning saying these methods are deprecated

 

com.sapportals.portal.security.usermanagement.IUser ep5User =

           WPUMFactory.getUserFactory().

           getEP5User(sapUser);

           

For the above code it says getEP5User, IUser are deprecated.

 

using this way i am unable to run.

 

 

The second way i tried is

 

**********************************************************

After searching some thread in SDN i got this solution , i tried this ......

 

com.sapportals.portal.security.usermanagement.IUser user=(com.sapportals.portal.security.usermanagement.IUser)request.getUser().getUser();

IResourceContext resourceContext=new ResourceContext(user);

 

**********************************************************

But in this what is REQUEST ?

 

where can i get this request object.

 

when i read that thread, where i found the above solution , he is working with PDK and developed some servlet.

in his servlet he wrote some code for request object.

But in my case i am developing some WebDynpro application.

I am unable to get request object.

 

I tried all the possible ways..... searched in entire SDN....understood all API'S but i didn't find any solution.

 

I feel even SAP has not recognised this problem.

 

I explained my problem in detail, if any one has solution please help me out.

 

Thanks in advance

 

regards

Bala


Viewing all articles
Browse latest Browse all 1826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>