cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Portal runtime Information from J2ee application

Former Member
0 Kudos

Hi ,

I think i have to rephrase my question.

I webdynpro , we can get the user inofrmation, who is logged in portal

IWDClientUser user = WDClientUser.getCurrentUser();

similarly is there any way of getting the portal user info from J2ee application...

Thanks in Advance,

Lakshmi

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Lakshmi,

first, rethink your question again - the users you work with within the portal are less "portal users" but users accessed via UME. Somehow the history is that the users belong to the portal (from EP5), but meanwhile, users are stored/retrieved via UME, which exists for EP, WebDynpro as well as other J2EE applications - they just have to use it!

So, in the end, the answer to your question definitely is <i>yes</i>! For an overview, see for instance page 3 of https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/using the user management api with ep applications.pdf even if the rest is concentrated on portal dev.

If you want to authenticate against UME, have a look at this thread, for it seems not to be documented in official docs... /thread/26477 [original link is broken]

Hope it helps (and if, please consider rewarding points)

Detlev

Former Member
0 Kudos

Thank you very much Deltev,

it is quite inofrmative and helpful.

now i understood that J2ee application can use UME api

to ger user details(if the user id is known).

IUserFactory userFact = UMFactory.getUserFactory();

getUserFactory().getUser(String uniqueID)

getUserFactory().getUserByLogonID(String logonID)

getUserFactory().getUser(String uniqueID,AttributeList attrList)

In all the three methods i need Login id to get the user details.

But the J2ee application does not have a its own login page .it is supposed to retreive data for the user who is logged in portal.

(the j2ee application is integrated in the portal by cretaing a URL iview and linking the jsp file in the .ear)

so the loginid above should be the portal login id .

in portal components we can get that by

IUserFactory userFactory= UMFactory.getUserFactory();

IUser myUser = userFactory.getUser(request.getUser().getUserId());

now the probelm is how to pass this portal login id to J2ee applicaton(which is called by URL iview)...

can you please let me know if this possible or if i am wrong in understanding the concepts.

Thanks in advance

Lakshmi

Jordan_Stanchev
Product and Topic Expert
Product and Topic Expert
0 Kudos

> Hi Lakshmi,

> If you want to authenticate against UME, have a look

> at this thread, for it seems not to be documented in

> official docs...

> Detlev

Do you think that this could help on this topic?

Integration of SAP J2EE Engine and UME Authentication

(http://help.sap.com/saphelp_nw04/helpdata/en/15/abdc3ed98f7650e10000000a114084/frameset.htm)

Greetings,

Jordan

detlev_beutner
Active Contributor
0 Kudos

Hi Lakshmi,

> now the probelm is how to pass this portal login id

> to J2ee applicaton(which is called by URL iview)...

For integrating other apps into the portal including authentication don't use URL iView but AppIntegrator, see the link given by me.

Hope it helps

Detlev

Former Member
0 Kudos

thanks, Deltev and Jordan...

I Think i should use appIntegrator for integrating the J2ee Application,so that i can pass the userid and passwd.

i am working on that . will definetly award the points after i solve the problem..

Thanks a lot once again

Lakshmi

Former Member
0 Kudos

Thank you very much Deltev,

Integrating through APPintegartor solved my problem.

now i was able to pass the portal user information to the j2ee application .

the link you have given in another thread solved my problem . https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/the application integrator in ep 6.0

Thanks a lot once again,

Lakshmi

Former Member
0 Kudos

Hi Lakshmi Durga,

i read the pdf included in "The Application Integrator in EP 6.zip" but I am not successful Upload file com.sap.portal.howtos.webapp.par to the portal using component "PortalAnywhere.default" because I have not found the Archive Uploader.

Can you indicate to me how I can upload the par file?

Thanks

Answers (0)