SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAP Portal

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2010, 12:50 AM
SAPMM SAPMM is offline
Senior Member
 
Join Date: May 2010
Location: Virginia
Posts: 238
Default How to get IUserContext from IUser ?

Hello All,

I am trying to get the IUserContext object from IUser object.
I found a very easy method

Code:
com.sapportals.portal.prt.session.IUserContext userContext= request.getUser();
which will give IUserContext object.

What I am trying to do is to get the same from an userid.

Regards,
SAPMM
Reply With Quote
Sponsors
  #2  
Old 11-01-2010, 01:03 AM
Golfi Golfi is offline
Senior Member
 
Join Date: May 2010
Location: Delaware
Posts: 824
Default Re: How to get IUserContext from IUser ?

Hi,

Please go to the link below, it will help you

http://help.sap.com/saphelp_sm32/hel...06/content.htm

Regards,
Golfi
Reply With Quote
  #3  
Old 11-01-2010, 01:05 AM
Portal Portal is offline
Senior Member
 
Join Date: May 2010
Location: Miami
Posts: 791
Default Re: How to get IUserContext from IUser ?

Hi,

As per my knowledge; UserContext stores the user session related information. Hence UserContext cannot exist without associated session.

Hence UserConext cannot be fetched using IUser API. Please check API - http://help.sap.com/javadocs/NW04S/SPS09/se/index.html


Regards,
Portal
Reply With Quote
  #4  
Old 11-01-2010, 01:07 AM
SAPMM SAPMM is offline
Senior Member
 
Join Date: May 2010
Location: Virginia
Posts: 238
Default Re: How to get IUserContext from IUser ?

Hi Portal,

I am trying to do as per this Site Map. Here, the modification I would require is, to get the same site map, for another user. This is for an administration purpose. So that an administrator can enter a user id and get the roles and worksets associated to the specific users.

Regards,
SAPMM
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:40 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno