How to access a Portal User Info from a J2EE application?

Hi,
I have deployed a j2ee application in portal and its running fine.
from that application i need to assign some roles to some users.i have the user id.
so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
plz help me
regards,
Visweswar

Hi,
Please check out this to get the portal user information from Java -
WdClientUser class/Interface to aciehve this.
Please check out these links on the same -
WDClientUser.getClientUser IUser
help needed
Regards
Lekha

Similar Messages

  • How can access MS Outlook Calender information  from my Java application.

    People schedule meeting with some data on regular basis.
    I need to access the Exchange server from my Java application and get the meeting dates along with other data pertaining to meeting.

    I had the same problem, and I dont think (as far as my knowledge goes) there is any freeware that will enable Java to access Exchange server. But there are some commercial products that are available.
    Chk this link as an example: http://www.compoze.com/products_hme_desc.html
    good luck in the research
    -kms

  • How to access CRM 2015 On-Premise from Azure web application

    hi,
    I have deployed a MVC Application on Microsoft Azure. I was wondering Is it possible to access(read and write records like we do normally in local deployment) CRM On-Premise from Cloud or Do CRM 2015 should be IFD deployed? 
    Any pointers will be highly appreciated.

    Hi,
    I don't familiar with CRM 2015 On-Premise, but it seems that this is a feature request, please access this website:
    https://zapier.com/zapbook/microsoft-dynamics/windows-azure-web-sites/, you could also ask this issue at CRM forum.
    Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites;
    therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure
    that you completely understand the risk before retrieving any software from the Internet
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to find out portal user from sso cookie ?

    Hi,
    I want to find out the portal user id from Portal30_sso cookie. It is required for security in my java servlet.
    Thanks
    Vikas

    First of all, you can't get anything from the portal30_sso cookie or the portal30 cookie or the SSO_ID cookie. These are cookies established for (1) The login server session; (2) The Portal session; (3) The login server single sign-on cookie - visible only to the login server.
    When you want to know who the current user is, you need to establish the context. If your servlet is standalone and not a partner application to the login server and it's not a portlet, etc., then what context does it have? What concept of users does it have? If you are really asking what Portal is currently logged on, that is still a loaded question. The user's browser could be accessing several portal's at the same time, each with a different identity. What I am getting at is that your servlet needs to somehow be associated with a particular portal before it can even think of asking this question.
    The ways to associate your servlet with a portal would be
    [list=1]
    [*]Make it a partner application
    [*]Make it a portlet
    [*]Make it an external application
    [list]
    Hope that helps.

  • How to access the portal database ?

    Hi ,
    1. How to access the portal database from an abstract portal component program ?
    2. How to insert data to the Table from the abstract portal component program ?
    Please provide me some direction to proceed .
    plz send me the steps how to access the Database using SQL.
    Thanks
    Smita
    Edited by: Smita Mohanty on Nov 14, 2008 9:21 AM

    Hi Smita,
    In case your portal has MS SQL server as its databse, then I am giving the step by step directions to achieve 90% of what you wish to do. Rest 10% you can try on your own.
    Go through my article given below:
    [How to Create a Web Service using Enterprise JavaBeans|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]
    First go through pages 1-12 which will help you to create user/table in MS SQL database as well as create a data source in Visual Admin. Page 19 will give you the code which you can use in your Portal component to access the tables you have created in your SQL database.
    I hope your problem gets solved.
    Bye
    Ankur

  • How can I transfer two user names from an iMac to a new macbook?

    How can I transfer two user names from an iMac to a new macbook?
    got a new laptop and need to transfer two usernames to it, complete with all documents help?

    Assuming you haven't already set up a user, the easiest way is to use the Setup Assistant during first boot of the new Mac, with the two Macs connected by firewire.
    You'll be prompted to migrate from a choice of sources - choose "from another Mac", select the catagories of data you want to transfer and follow the instructions.
    More info here, in Pondini's FAQ; http://pondini.org/OSX/SetupAsst.html

  • Need access to the user view from a form

    How can I get access (only need read access) to the user view from inside a form, in this case, the Question Login Form?

    This is mentioned in the forum somewhere:
    <invoke name='getView'>
    <ref>:display.session</ref>
    <concat>
    <s>User:</s>
    <ref>accountId</ref>
    </concat>
    <map>
    <s>authorized</s>
    <s>true</s>
    </map>
    </invoke>
    regards,
    Manish Gurnani

  • How do I run a user account from an external HD?

    How do I run a user account from an external HD? I will be away from my desktop iMac and want to use our MacBook Pro overseas for two months with my iMac user account copied to an external drive.

    1. WARNING: This procedure is for advanced users only. Some third-party software may not work as expected, or may not work at all, if the home folder is moved.
    2. Back up all data.
    3. Copy your home folder to the desired location, which must be on a volume of type "Mac OS Extended (Journaled)" with file ownership enabled, as shown in the Finder Info dialog. Encryption is optional. The volume must be on a local storage device, not on the network, and it must be mounted automatically at startup — before any user logs in. A disk image will not work.
    The name of your home folder is your short user name. Do not rename it. Do not copy the "Users" folder.
    5. Select
     ▹ System Preferences ▹ Users & Groups
    Click the lock icon and authenticate. Right-click or control-click your name in the account list, and select Advanced options from the popup menu. In the sheet that opens, change the location of the home directory. Log out and log back in.
    6. Test. If you have problems, reverse the above steps. If you got this far, you should have no trouble doing that. If everything works as you expect, delete the original home folder.

  • How to get the Portal Page name from PLSQL?

    Can anyone tell me how to get the portal page name from my dynamic page using plsql?
    Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
    My code for attempting to get the page id is below.
    <oracle>
    declare
    v_pageid varchar2(30);
    begin
    v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
    htp.print('Page is '|| v_pageid);
    end;
    </oracle>
    Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
    Thanks in advance!
    Sarah

    Few clarifications -
    1. wwpro_api_parameters cannot be used to get default portal
    page parameters such as '_pageid', '_dad', '_schema' etc.,
    2. Page information can be obtained through any components which
    are available in that particular page. For example, in case of
    dynamic page, we need to publish it as a portlet and add it to the
    page. This process creates necessary packages in the DB, but we
    will not have access to the portlet methods.
    So, I would prefer creating a simple DB provider & portlet and access
    page title from its show method as follows -
    //Declare local variable l_page_id, l_page_title as varchar2
    select page_id into l_page_id from wwpob_portlet_instance$ where
    portlet_id = p_portlet_record.portlet_id and
    provider_id = p_portlet_record.provider_id;
    select name into l_page_title from wwpob_page$ where id=l_page_id;
    More information on DB provider can be found at
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
    Secondly, usage of wwpro_api_parameters.get_value method is
    incorrect. This method expects two arguments -
    <ul>
    <li><b>p_name : </b> The name of the parameter to be returned.</li>
    <li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
    </ul>
    p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
    The following code fragment fetches all parameters available
    for a portlet.
    Note : Copy this code into 'show' method of your portlet.
    //Declare l_names, l_values as owa.vc_arr
    * Retreive all of the names of parameters for this portlet
    l_names := wwpro_api_parameters.get_names(
    p_reference_path=>p_portlet_record.reference_path);
    * Retreive all of the values of parameters for this portlet
    l_values := wwpro_api_parameters.get_values(p_names=>l_names,
    p_reference_path=>p_portlet_record.reference_path);
    //Loop through these arrays to get parameter information
    htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
    htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
    htp.tableRowClose;
    if l_names.count = 0 then
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.p('<td COLSPAN="2">'
    ||wwui_api_portlet.portlet_text(
    'No portlet parameters were passed on the URL.',1)
    ||'</td>');
    htp.tableRowClose;
    else
    for i in 1..l_names.count loop
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(l_names(i));
    htp.tableData(l_values(i));
    htp.tableRowClose;
    end loop;
    end if;
    htp.p('</table></center>');
    Hope it helps...
    -aMJAD.

  • Extract Portal User Name From HTTP POST Request (WSRP SOAP)

    How can we extract the user name from the HTTP POST Request (*WSRP SOAP*) from the Portal to the Portlet Provider (Producer)?
    We are load balancing between the Portal (10.1.14.2) and the providers (OC4J 10.1.3.3) and would like to extract the user name within the load balancer so we can create session affinity based on it.
    BTW, we already tried using TCP Flow but were unable to see the user name.

    From the documentation, it seems that you need to use
    HttpURLConnection.setRequestMethod("POST"); // "GET" is the defaultalthough I have seen examples on the web without it.
    Try!
    Edit: Also the single quotes around userid and password may be a problem.
    Use the previous poster suggestion, but do not include the single quotes.
    Edited by: baftos on Aug 6, 2008 4:27 PM

  • How can i remove credit card info from apple id?

    How can i remove credit crad info from my apple id?

    I tried to enter it as "none" but it didnt work. It keeps saying i need a card number and all that. But then, i clicked "same as shipping information" and just entered my name and all the adress stuff, put my credit card number as 0 and my security code as 0, put in a random date and clicked save.
    -Just a tip for anyone else who couldnt figure it out like me

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • How can I transfer all my info from my old mac to a new one?

    how can I transfer all my info from my old macbook to my mac mini?
    My Mac mini chash about one month ago and I got it back from apple, I didnt have a time michine back up for this one but in my old mac I have almost all my files, so I want to transfer all the data to the Mac mini with no problem

    You can use migration assitant which is located in the Utility Folder under Applications. The compters can be connected via ethernet, fire wire, or wifi. My recommendation is not to use wifi.
    You run migration assistant on both machines and you can choose to transfer everything or just data.
    Another way is to use migration assistant to restore from a time machine backup.

  • HT1918 how do i remove credit card info from account

    how do i remove credit card info from acct

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on an iOS device (iPad, iPhone or iPod Touch) then you could try tapping on your id in Settings > Store (Settings > iTunes & App Store on iOS 6+) and selecting 'View Apple ID' on the popup - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/kb/HT1918

  • How do I delete credit card info from my AppleID account profile?

    How do I delete credit card info from my AppleID account profile?

    To remove it from your account, tap on your id in Settings > iTunes & App Store and then tap on 'View Apple ID' on the popup and log into your account  - that should give you a payments link on your account's page from where you can change remove/change your payment details.
    Changing payment info : Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support
    If you don't get the 'none' option on the payment details screen : Why can’t I select None when I edit my Apple ID payment information? - Apple Support

Maybe you are looking for

  • How do I know of the fans are working?

    My computer is also hot  on the back and sounds silent.

  • Why wont my VEVO connect anymore

    I've been watching Vevo on me TV for months now and I'm hooked. Now, When I try to watch VEVO a screen comes up and tells me I must be logged in my Vevo account   1. Go to vevo.com/apple.  2. When prompted enter the Activation Code below. I can't fin

  • /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found

    I am trying to run the firefox from firefox-4.0.tar.bz2 on CentOS 5.6 and get the error message, ./firefox-bin: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by firefox/libxul.so) Firefox does not start. I thought having a copy

  • Adsl daemon not starting

    I have pppoe connection, in the past worked very well, I 've recently replaced an antique motherboard 10 years old with a 775 socket Asrock, chipset G41 that has Realtek 8102E/8103E on-board lan and I have since then always had to manually do sudo /e

  • GATHER_STATS job collect stats for 'static' tables

    Oracle version: 10gR2 If a business table hasn't changed (No DML) in the last 10 days, will oracle's default stats collection job DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROCstill collect stats of this table?