Using KM and Collaboration API in portal component and web dynpro

Hi,
I have to develop portal components and Web Dynpros (JAVA) which have to use the following functions:
- copy, delete KM documents
- sending E-Mails 
Can anyone give me some actual documentation links for the KM and Collaboration APIs ?
Which references do I need in portalapp.xml for KM/collaboration and which jar-Files do I have to add to the project?
We are using NetWeaver 7.01 SP18.

Hi  Yogalakshmi,
thank you for the link and the information. Now I managed to work with the KM documents.
One more Question: to get the resource Context, I use this code:
portalUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
IResourceContext resourceContext = new ResourceContext(portalUser);
The method getServiceUser is deprecated, also the com.sapportals.portal.security.usermanagement.IUser is deprecated. Is there an other possibility to get the ResourceContext. (perhaps with com.sap.security.api.IUser) ?

Similar Messages

  • Difference between Abstract portal Component and JSPDyn page.

    Hi Experts,
    What is the difference between Abstract portal Component and JSPDyn page.
    Thanks,
    Jay.

    Hi,
    The PDK provides two methods for creating a portal component:
    Abstract Portal Component
    The Abstract Portal Component class offers a lean method for writing HTML commands to the Web client as well as for basic event handling. It is an implementation of the IPortalComponent, which is the central abstraction of the Portal Component API.
    DynPage
    The Page Processor Component, which extends the Abstract Portal Component, returns a DynPage. It provides more sophisticated event handling. Controls that produce events (such as buttons and checkboxes) have an event attribute that contains the name of the event handling method. This event handling method is invoked by the DynPage when it occurs.
    The JSPDynPage is an implementation of the DynPage and allows the use of the DynPage in combination with JSP (Java Server Pages).
    The PDK documentation and examples focus on the DynPage. Easier event handling and the separatation of content development (JSP) from application development (Java) make the DynPage a better choice for components with interaction and changing content.
    For more details, Refer thes thread,
    https://fortress.wa.gov/dop/portal/irj/portalapps/com.sap.portal.pdk.basic.portalcomponentimplementation/docs/jspdynpage.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0b3e9d5-b2af-2a10-20ba-9f6ce6b1a27f
    Hop it helps..
    GS
    Edited by: Sathishkumar GS on Apr 14, 2008 2:07 PM

  • How to use a Webservice (deployableproxy) within a portal component?

    hi,
    i need to know how to use a webservice using a deployable proxy within a portal component?
    i've created the proxies and they work (with servlets).
    i know how to use them in servletes (context lookup, jndi mapping, application references) but i cant find a way to use them in a portal component.. tried the context lookup way but cant figure out which jndi mapping to use.
    any help?
    thanks in advance,
    constantin

    i've found this document:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/cb2e29578c0262e10000000a11466f/frameset.htm
    but it doesn't help...
    i should add a privatesharing resource...
    <property name="PrivateSharingReference" value="SAPJ2EE::rh21.de/pca~wsproxy"/>
    which works
    this is my code
    public void doContent(IPortalComponentRequest request,IPortalComponentResponse response) {
       try {
         Context context = new InitialContext();
         WSPhonebook obj = (WSPhonebook) context.lookup("/wsclients/proxies/rh21.de/pca~wsproxy/de.rh21.wsproxy.phonebook.WSPhonebook");
         WSPhonebookViDocument phonebook = (WSPhonebookViDocument) obj.getLogicalPort("Config1Port_Document", WSPhonebookViDocument.class);
    } catch.....
    now the lookup works (i guess, no messages about that anymore), but i catch ClassNotDefFoundError-Exceptions, but the classes are there, i can strg+click them in the editor, they are in the used dc's etc.
    any help? its quite uurgent :/

  • Use WebDynpro JCO Destination in Abstract Portal Component

    Hello,
    I was wondering if it is possible to use a WebDynpro JCo Destination in an Abstract Portal Component? I have a portal component that make as JCO call to run an rfc. I get the MYSAPSSO2 ticket from the cookie and pass this in to the JCO client. This works fine. Now I need to be able to run this for anonymous users as well. I was hoping to be able to retrieve a WebDynpro JCo destination that is set up as a userid/password type and use this to make the connection to run my RFC. This way I could avoid having to store the userid and password somewhere and encrypt/decrypt  it etc...
    Thanks,
    Bert

    Yes Asusha
    You can use JSP , JSPDyn pages in Abstract portal component.
    You can call a Jsp file from the abstract portal component.
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
         com.sapportals.portal.prt.resource.IResource somePage =          
                   request.getResource("jsp", "pagelet/test.jsp");
                   response.include(request, somePage);
    Then you can made your desired UI in JSP.
    Hope this helps..
    Cheers
    Chinmaya
    Reward for helpful answers

  • Example "Designing Component-Based Web Dynpro Applications" in NWDS 7.1

    hi,
    importing Designing Component-Based Web Dynpro Applications.zip into NWDS 7.1, I get ~ 200 errors.
    after repairing the projects (in WEB-Dynpro View) ands migrating, there are 76 errors:
    Component 'CustomersUIComp': Used component/component interface is missing: ComponentInterfaceImplementation com.sap.cd355.comp.adv.modelcomp.ModelCompInterface Hint: Check availability of public part archive     LocalDevelopmentcd355compadvui_final~sap.com/src/packages/com/sap/cd355/comp/adv/ui/customers     CustomersUIComp.wdcomponent     ModelComponent     1240309796017     1800
    TextView 'city_editor.text': Context attribute 'CustomersView.Customers.Address.city' does not have a type and cannot be bound to a UI element. Hint: Remove the binding or bind a context element matching the property's type.     LocalDevelopmentcd355compadvui_final~sap.com/src/packages/com/sap/cd355/comp/adv/ui/customers     CustomersView.wdview     text     1240309796032     1821
    ViewUsage 'com.sap.cd355.comp.adv.ui.customers.CustomersUICompInterfaceViewCustomersUIComponentUsage1': Embedded View/InterfaceView is missing. InterfaceView com.sap.cd355.comp.adv.ui.customers.CustomersUICompInterfaceView Hint: Repair Window     LocalDevelopmentcd355compadvmaster_final~sap.com/src/packages/com/sap/cd355/comp/adv/master     MasterComp.wdwindow     Unknown     1240309796503     1823
    hermann

    Seems like your example requires some other DCs as well, which don't appear to be part of the zip you mentioned.

  • Userid of a Portal-user in Web Dynpro ABAP

    Dear colleagues,
    we want to migrate our application from BSP to Web Dynpro ABAP and I'm looking for a procedure how I can get the userid of a Portal-user in Web Dynpro ABAP which is running inside an iView ?
    In BSP I used iView application parameter user_id and in the BSP the event handler for data retrieval with:
    userid = runtime->server->request->get_form_field( 'userid' ).
    Found a lot of entries how to do it in Java but no one for WDA ?
    Thanks in advance
    Michael

    Hi Michael,
    Actualy it is not so trivial. You have some options:
    1) In case user_id is parameter of iView you can read URL parameter like described here Webdynpro ABAP url-parameters
    2) In case user_id is not iView parameter you can use usuall ABAP <i>sy-uname</i> system variable.
    But pay attantion that it is not really EP user. Here we have 2 options: user mapping and SSO. In case of user mapping <i>sy-uname</i> will contain R/3 user which is mapped to EP user. In case of SSO <i>sy-uname</i> will contain same user name like in EP, because by using SSO user must ne the same on issuing and accepting systems.
    Best regards, Maksim Rashchynski.

  • Can the role info be passed from portal to ABAP web dynpro application

    Hi,
    We have some roles in the portal. We call the ABAP web dynpro applications from the portal. Is it possible to pass on the role from the portal to the Web dynpro ABAP application so that we can use this role information in the application.
    Thanks,
    Pooja

    Hi,
    you can try to add the expression
      role=<IView.PCDUnit>
    as part of the Application Parameters in the iView. This will be the role in 99%. However not all iViews started in the Portal must belong to a role. You can start iViews using page navigation that are not part of a role. Therefore the PCD does not talk about roles but about "units" which is the superordinate term.
    the value will be the PCD path of the role - e.g:
      portal_content/myFolder/roles/myRole

  • Get date from portal in a web dynpro?

    hi all,
    how get date from portal in a web dynpro???
    thanks.

    new Date(System.getTimeInMillis());
    Good luck, Roelof

  • Abstract portal component and JSP question

    Can we use htmlb components in abstractportal components.
    I am using isolatedhtmlcontainer in abstractportal component and it is not compiling. It works fine with Dynpage component
    Also one more question can we just write a JSP to get the userid of the portal. I tried typecasting request object to IPortalComponentRequest , but iam not able to get the userid . Can anyone suggest anything . I want get the userid from the jsp and pass this userid to asp as query string
    Thanks
    LAK

    Yes you can create a JSPDynPage and define the component type as NativeJSP in portalapp.xml for e.g.
      <i>      <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/YourJSP.jsp"/></i>
    The explicit object for IPortalComponentRequest is componentRequest in JSP. The other way to get componentRequest is
    IPortalComponentRequest       currentRequest       = (IPortalComponentRequest) pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST );
    to get the user further just call currentRequest.getUser()

  • Using User Management Engine API in Portal Application

    Hello,
    I actually develope a simple Portal Application, which print any User-Infos. Especially I need the date of the last Login. For this purpose I read the Article Using User Management Engine API - Portal - SAP Library where they use the library com.sap.security.api. In the articel they describe also, how to set DC dependencies. But this doesn't function for a Portal Component, because they do not appear in the Component Browser.
    So my question is, how get I the User Management Engine API referenced in my Portal Application, so that I can use the package com.sap.security.api. In the filesystem I can not find a JAR-File for the Development Componenten tc/je/usermanagement/api
    Greetings,
    Thomas

    HI,
    Getting the last logon date can be a small problem. There is a method called: getLastSuccessfulLogonDate, but that one is deprecated since NW 2004s.
    https://help.sap.com/javadocs/NW04S/SPS09/se/com/sap/security/api/IUserAccount.html#getLastSuccessfulLogonDate()
    In NW 7.3 the method is still there: Generated Documentation (Untitled), but even so, JavaDoc states that the value is not updated automatically
    "get last sucessful logon date NOTE: This attribute is not automatically updated during login."

  • Difference between portal component and portal service?

    Hi I am kishore...
             I worked on portal components but not on portal services... Would anybody tell the difference between the portal components and portal services...? What is a portal service..?
               How we know which one to choose in the scenario.?
        Thanks in adavance

    Hi kishore,
    A portal component is custom Java code that is executed according to user requests, and generates HTML output for display on the client.
    Portal components:
    Page builder, which assembles pages
    Admin tools, such as logger, which is comprised of user interface messages.
    Pages
    Technically, the page is also an iView. A page includes iViews or pages (nested) and Layout components
    iViews
    There are two different isolation levels (iView types)
    Embedded: iViews’ html is embedded as part of page html. iViews are called synchronically on the server, and retrieved in one response, to  the client (this is the page response)..  Each iView reloading reloads all iViews on page.
    URL (Isolated): iViews are fetched by an IFRAME element in an “own” request. One response for the page followed by additional request-response for each iView (depending on browser 2-4 requests simultaneously).
    Portal Services:
    A portal service is a component that offers a globally accessible function in the portal. 
    A portal service act as the middleware, that is, interfaces that are enabled to exchange procedures and data. They offer functionality to portal components, and other services.
    There are two groups of portal services:
    Portal services (part of the PRT)     
    Caching                     
    Notification
    iView service
    Application Repository
    System Landscape
    Role, pages, worksets
    Web Services
    Unification service
    Portal services (external to the PRT)     
    Client Eventing                 
    URL generator
    Logger
    JCO client service
    Hope this helps.
    Regards
    Atul Shrivastava

  • Using portal theme in web dynpro tables

    We are currently running EP6 (NW04).  Is there a way to make our java web dynpro table ui elements use the portal theme?  All tables appear blue unless they are checked as readonly in which case they are white. 
    I see there is a TableCellDesign ui element, but that is not available until NW04s and we are not there yet.
    Please assist. (and thank you!)
    Jeff Karls

    hi
    You are right about NW04s portal theme editor and we are able to change colour
    the tablecelleditor ui. But as far as i remember i was able to change properties like selected cell colour, non selected cell colour and mulitselected cell colour.
    However if you are not able to change it in EP 6.0 (NW04) then use the webdynpro themes. I suppose you will be able to do everything there.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d2b1d790-0201-0010-25b7-d1fb059a8ad9">How to edit webdynpro themes</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/1e/535d420447e054e10000000a155106/frameset.htm">Setting the theme in Visual admin</a>
    Hope it helps.
    regards
    LNV

  • Portal Eventing between Web DynPro Java iView and non-Web DynPro iView

    Dear Experts,
    I have 1 Web DynPro Java iView and 1 non-Web DynPro (using JSPDynPage and JSP) iView, both attached to a page. When Web DynPro Java iView fire a portal raise event, the portal iView did not execute the javascript function tied to the event subscribed.
    Here is the code snippet which reside in the Web DynPro Java iView that is used to fire the event
    String param = "test";
    WPortalEventing.fire("urn:com.company.Test1", "TestEvent", param);
    This the code snippet that is in the jsp page
    function notifyTest(param)
         // Code to print param value here
    EPCM.subscribeEvent("urn:com.company.Test1", "TestEvent", notifyTest);
    Note:
    1. When Web DynPro Java iView fire the portal event the entire page is refreshed, including the non-WDP iView.
    2. When EPCM is replaced with window.top.EPCM, the page is refreshed, it is totally hanged with progress bar.
    Can anyone help to solve this problem?

    hi
    Please write the below code snippet in ur jsp for notifyTestjavascriptfunction
    function notifyTest( eventObj ) {
         eventParameter=eventObj.dataObject;
         // code to print the parameter "eventParameter"
    Thanks
    Harsimran

  • Launching instant messaging component from web dynpro

    Hi
    We have a requirement to launch instant messaging component from a web dynpro java link. Could you tell me what APIs can be used here? Is it possible to launch the component in a new browser window through some API calls?
    From collaboration launch pad if we take the link of instant message from properties and try to open it a new browser instance, we find a message staing "Session not started" and there is some java script error in the page. Also the Send button is invisible and the other buttons Leave Session, Close Session are inactive. Is it possible to launch the messaging window from a url?
    The url we used to launch it is as below.
    http://host:port/irj/servlet/prt/portal/prtroot/com.sap.netweaver.coll.appl.ui.rtc.RTCComponent?jspName=Chat.jsp&paramIndex=2&initiator=X
    Looking forward for your comments.
    Thanks
    Sudeep

    It's possible. On your alv you have to add botton with action to call bsp.
    You can use the following coding to determine the object type...
    CALL METHOD lr_mapping_srv->determine_ui_object_of_bor
        EXPORTING
          iv_bor_object_key  = lv_bor_object_key
          iv_bor_object_type = ls_orderadm_h-object_type
          iv_logical_system  = ls_orderadm_h-logical_system
        RECEIVING
          rv_result          = lv_ui_object_type.
    Then you have to build bsp...
    lv_orderadm_h_guid_c = ls_orderadm_h-guid.
      CONCATENATE
        lc_par0 sy-mandt
        lc_par1 lv_ui_object_type
        lc_par2 lc_display
        lc_par3 lv_orderadm_h_guid_c
        lc_par4 'nocookie'
      INTO lv_query.
      CALL METHOD cl_bsp_runtime=>if_bsp_runtime~construct_bsp_url
        EXPORTING
          in_application = lc_bsp_application
          in_page        = lc_bsp_page
        IMPORTING
          out_abs_url    = lv_open_url.
      CONCATENATE lv_open_url lv_query INTO lv_open_url.
    and finally you have to call browser...
    lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      CALL METHOD lo_window_manager->create_external_window( EXPORTING url = lv_open_url
                                                             RECEIVING window = lo_window ).
      lo_window->open( ).

  • Cannot access Portal Service from Web dynpro DC

    Hi all,
    I cannot access the portal service from my web dynpro dc.
    1. I created a Portal Service (say xxxservice) in a DC (say the DC name is testservice and the vendor is xx.com)
    2. Created a public part under the testservice DC and added my classes to it.
    3. Built and deployed the testservice DC.
    Now,
    4. I created a web dynpro DC.
    5. In the used DC section added the public part of the testservice DC and also the epbc.prtapi._api.jar for build time and runtime with strong qualifier.
    6. In the web dynpro "Sharing Reference", I added PORTAL:xx.com/testservice
    7. In the component controller, I am calling a method from the Portal Service.
    8. Built the web dynpro DC and deployed it.
    9. But at the run time it gives, NoClassDefFoundError on the xxxservice.
    I looked at many forum threads and tried everything. For eg: changed the Sharing Reference to PORTAL:sap.com/testservice but nothing works.
    Please do suggest me if I am missing something
    Thanks

    Hi Laxmi,
    I am sure something wrong at Portal Service DC creation. On webdynpro part you done fine .. by putting PORTAL:sap.com/testservice
    Check the below steps:
    1. Create DC Portal Applicaiton Stand alone (SDA)
    2. Add portal Service for the newly created portal service dc
    3. build and activate
    4. by default you should be get public part by name API which is compilation dependency
    5. here you dont need to do anything else
    6. on webdynpro just add the used dc to this API public part of portal service dc
    7. add PORTAL:sap.com/testservice  sharing reference
    If u go by this you shouldnt get any error..
    Now, u are saying something like ur own classes .. i think u are trying to put u r own classes to service.. but remeber portal service is to have only IYourService class and YourService class.. other classes should be made to be jar.. and add that jar to External library DC and create PPs compile & Assemble and add that DC to current service dc.
    Hope it is clear.. if not pls let me know..
    Thanks,
    Raags

Maybe you are looking for

  • Playstation 3 not connecting to PSN

    I've just moved from BT standard to Sky Fibre and since the move I cannot get my PS3 to connect to the playstation network. The main reason for upgrading was for better gaming!Anyone with any ideas?I've tried setting a static IP, changing channels an

  • Opening documents in Word

    Since yesterday morning, my workstation refuses to open any documents from SharePoint directly to Word or Excel. SharePoint is throwing me a message saying I don't have any compatible software installed, which I have (Office 2010). The weird thing is

  • Must render everything in Premiere Pro before sending to Encore?

    I think the answer is no, I DON'T have to have EVERYTHING in the Premiere Pro sequence that I'm sending to Encore completely rendered as I don't think I see any problems BUT am I missing something? Thanks in advance for guidance here.

  • Fast Entry Actions : Error on export to WebDynpro

    Hi everyone, I am getting the following error when attempt to configure the fast entry of actions... SPRO (IMG)Personnel Management Personnel Administration Customizing User Interfaces Fast Entry for Actions Change Fast Entry of Actions When I click

  • Command-I crashes my Finder

    Since about 2 weeks, everytime I press command-I on anything on my desktop (or elsewhere) my 'Finder' crashes. The crash leaves a crashdump-entry in the console.log and the Finder.crash.log says: Date/Time: 2007-02-14 17:41:11.416 +0100 OS Version: 1