Accessing secured content area view from JPDK

Is it possible to access the secured content are views from JPDK?
For example if I am logged on as user USER1 in Portal, is it then possible to access WWSBR_ALL_ITEMS as USER1?

hi,
You can access Content Area APIs from any user using JDBC calls. But, you may have to grant 'EXECUTE' privileges on those procedures (& SELECT privilege if its a DB object like Table, VIEW).
If you are using PL/SQL procedures in your application, you can directly access them through PL/SQL calls, otherwise you have to use JDBC.
--Sriram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Content area views

    How is possible to see which items need approval.
    this link for Content area views doesn't work any other link for Content area views? http://technet.oracle.com/products/iportal/files/pdk/plsql/doc/sdk23vws.htm

    This will do it in Portal 3.0.6:
    SELECT DISTINCT c.title folder_title
    , a.title
    , a.author
    , a.createdate
    , a.cornerid
    , c.name
    , c.parentid
    FROM wwv_things a
    , wwsbr_sites$ b
    , wwv_corners c
    WHERE a.siteid = b.id
    AND b.id = g_site_id
    AND a.iscurrentversion = 1
    AND a.active = 0
    AND a.cornerid = c.id
    AND a.siteid = c.siteid
    AND a.language IN ('us', 's');
    /Malin
    null

  • 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

  • Automatic upload of content area items from the O/S

    I wish to automate the upload of content area items into the portal. Can this be done via the PDK or otherwise?
    I have a number of PDF and HTML reports that get generated and placed into a physical directory on the server. I want all these files from a specific directory to be uploaded as items into the portal automatically so that users can view the reports with appropriate security. The reports can be modified so that when run they insert a record into a custom table to store their path and file names. This can be used by a custom procedure to point to the files at the point of upload.
    However, can this upload actually be done?
    Any ideas on how to do this would be useful.
    Regards,
    John

    Physical path on the database server.
    Using the api to upload is easy as long as you provide the content-area id, folder-id, display-name, item-type (PORTAL30.WWSBR_API.ITEM_TYPE_FILE), content-area type id (PORTAL30.WWSBR_API.SHARED_OBJECTS), folder-region-id (whatever it is for Regular Items, you'll find it in wwsbr_all_folder_regions) and the physical file-name.

  • UNABLE TO ACCESS SECURED EJB USING IIOP FROM JSP

    Following codes does not work with IIOP when called from jsp returns an
    com.sap.engine.services.iiop.CORBA.CORBAObject:com.sap.engine.services.iiop.server.portable.Delegate_1_1@8312b1 step2 RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create(). at
    Following codes does not work with IIOP when called from a fat client returns an
    org.omg.CORBA.UNKNOWN:   vmcid: 0x0  minor code: 0 completed: Maybe
            at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServ
    iceContext.java:33)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.cosnaming.CNCtxFactory");
    p.put(Context.PROVIDER_URL, "iiop://hostname:50007");
    p.put(Context.SECURITY_PRINCIPAL, "User");
    p.put(Context.SECURITY_CREDENTIALS, "pass");
    I have add java option to add IIOP filer
    -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.iiop.csiv2.interceptors.SecurityInitializer
    Solution Required: Could you please detail me what steps in need to perform in order for me to access secure ejb using iiop protocol.
    FYI -- How ever ejb security works with P4 protocol, If required i can send you the test case ear.
    Thanks
    Vijay
    Following are the server side logs
    java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create().
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:91)
         at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
         at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
         at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
         ... 20 more
    ; nested exception is:
         java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
         at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
         at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
         at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
         at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
         at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    That's the code that you need to execute but you should
    probably encapsulate that code in Custom Action.
    Orion has a EJB Tag Library that is free to distribute that
    does all that stuff you just set some attributes.
    Go to their site and look at their Tag Libraries.
    Also look for other Tag Libraries Freely Available for EJB Access.

  • UCM 11g - how to accessing secured content using open WCM service

    Hi All,
    Does any one has an idea on how to access the contents that are checked in with security groups as "Secured". If the contents are checked in as "Public" then, we can easily access the same with the following open WCM servervice:l
    http://<ucm_server>:16200/cs/idcplg??IdcService=WCM_PLACEHOLDER&dataFileDocName=<data_file_name>&templateDocName=<region_template_name>
    Regards,
    Sanjay

    Hi Donato,
    Did you ever get an answer for this issue? I'm trying to get a similar case working and would be curious on how you ended up doing this...
    For what I know so far, this may help you:
    1) The trigger-EBSProfile requires you to pass th afGuid value, this value, is created automatically by the IPM process, basically, when you click the MA button in EBS, the SOA call to IPM does 2 things:
    First, it creates a row in the AFGRANTS table in the WCContent DB, this basically overwrites UCM security and give the user access to the documents, this table has the information of the EBS record (Business Object, and Primary Key) as well as the auto generated afGuid
    Second it sends back the URL to WCContent, mainly "/cs/idcplg/_p/min/af/trigger-EBSProfile?IdcService=GET_SEARCH_RESULTS_FORCELOGIN" and passes the afGuid created in the first step, which identifies the EBS record.
    So if you need to make direct calls to UCM under the trigger-EBSProfile you will need to manually (custom) add the afGuid and details of the EBS record to the table, the entries in this table get removed automatically based on the dexpirationdate value
    2) While the IPM SOA call overwrites the UCM security, if you have implemented your own security structure (assign a different security group to the documents and give the users access to it) you could make calls directly to UCM bypassing the "trigger-EBSProfile"..
    for example, in the call you were trying to make originally to DOC_INFO, if you know the dDocName of the document, you can simply call the service as "/cs/idcplg?IdcService=DOC_INFO_BY_NAME&dDocName=POC2001" (I use DOC_INFO_BY_NAME because you need to know the dDocId for DOC_INFO)
    You can do the same with other services like checkin/checkout etc, (for checking you will need to pass the additional parameters dfBusinessObejct, dAFBusinessObject and dfApplication to link the document to the EBS record)
    Regards,
    Juan Becerra

  • Backed up using i-cloud now can not restore because security questions are different from apple account?

    i just purchased a new i-touch for my son becasue he smashed th old one. I purchased it at the apple store and the tech told me to back info up utilizing i-cloud. I did that inside the store. I am trying to set the i-touch up using the i-cloud backup but when i get to the security question part, the questions are different from my apple account. I then get an error message saying server error. I called apple and they did not seem to be much help.

    Welcome to the Apple Community.
    Contact Apple through iTunes Store Support, and explain that you have forgotten your 3 security questions, that you can reset your password, but doing so doesn't reset your security questions.
    Explain that after resetting your password, you are still asked for the answers you have forgotten, before you can gain access to My Apple ID > Manage your account > Password & security, which is where you need to be to change your answers.
    Remember, support will receive hundreds, if not thousands of requests per day, some from people trying it on, others with little explanation and others that are written extremely poorly. Take the time to explain your situation properly, be precise and concise, brief but comprehensive.

  • Content Areas - Viewing Text Items error

    Hi,
    Our ability to view text items within content areas has just stopped.
    We now get Error: (WWS-00000)
    with no other dialogue or entries in the logs.
    As far as I know nothing has changed.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Krish Palaniappan ([email protected]):
    Hi everyone,
    We identified the issue. I expect that a patch will be released. I'll keep you posted!
    Thanks.<HR></BLOCKQUOTE>
    Hi,
    any news on the patch yet?
    Best regards,
    ~Dietmar.

  • Can not access V$Mystat sys view from procedure.

    Hi All,
    I am facing a problem like explained below. Please suggest me what to do.     
    I hav a cursor to access Distinct sid as follows :
    Cursor Cur_Sid Is
         Select Distinct Sid From V$Mystat;
    If I try to use it from a procedure it throws error like "ORA-00942: table or view does not exist".
    But same query I can execute from SQL prompt. Even in Form's local procedure too it is working fine.
    Can anyone please tell me why it is show.
    Note: I have used the same oracle user to test all the cases.
    Best Regards
    Mrigen

    Sounds like your user has access to the view granted via a role. Get a direct privilege granted and it should allow the PL/SQL procedure to compile.
    The issue is likely to be because your procedure needs to know it has access to that view at compile time which requires direct grants.

  • Accessing same Content Management Repository from Multiple Domains

    I'm attempting to point many different domains to a single content management repository to avoid the duplication of data.
    All the domains are able to read content correctly, but when trying to create content (whether programmatically or through the admin tool), most of the domains will get this error:
    java.sql.SQLException: ORA-00001: unique constraint (SCHEMA_NAME.PK_CM_NODE) violated
    Since there's no sequence generated in the database, it appears that the primary key is defined by something in the portal code. This seems to imply that you can't have multiple domains pointing to the same repository. Can someone confirm that they've seen this work? And if you've gotten it to work, what I am doing wrong?
    Thanks for any help,
    Dan Turkenkopf

    This particular issue is inherent to the OOTB repository in WLP. The repository uses a sequencer to generate id's for created content. The way these ID's are generated causes the possibility of two applications attempting to create items with the same ID. This is due to the fact that the WLP repository manages the ID's used when creating content and doesn't currently use a GUID strategy for content id's.
    You could configure another repository which does ID generation in a different fashion and avoid the persistence problem I've described.
    The VCR layer which provides the access to the OOTB repository really only has the cache issue I described. This can be worked around with some custom event listener implementations that can manage stales caches. These would need to be aware of the other applications sharing the underlying content repository.
    -Ryan

  • Accessing static content (javscript, css) from JSPs in portal component

    Hello,
    I have a portal component with some jsp files in the folder dist/PORTAL-INF/jsp . Within the jsps I want to access some css and javascript files which I've put in the folders dist/css and dist/scripts. Can anybody tell me how I can access them from the jsp?
    Thanks and best regards
    Dominik

    Hello,
    I finally solved it. To whom it may concern:
    The integration in the JSP should look like the following:
    <%
    IPortalComponentResponse componentResponse = (IPortalComponentResponse)pageContext.getAttribute(javax.servlet.jsp.PageContext.RESPONSE);
    IResource css = componentRequest.getResource(IResource.CSS, "css/style.css");
    IResource js = componentRequest.getResource(IResource.SCRIPT, "scripts/script.js");
    componentResponse.include(componentRequest, css);
    componentResponse.include(componentRequest, js);
    %>
    And make sure that the css file does NOT start with the tag
    <style type="text/css">
    Best regards,
    Dominik

  • Switching Content Area Portlet Edit/View Mode

    I am trying this question again since I did not get responses to my first try.
    The current Content Area Portlet included with Portal 3.0.8 works fine except that it does not include the "Main Banner" nor the "Sub Banner". This means that portlet users do not have access to either the "Edit/View folder" function nor the current folder name.
    My customer would like some users to have item upload capability. What are my choices without these banners? I can access the content area in "full page" mode and have the banners available. But this is undesirable since we would like the content area to stay "in the portlet" in order to maintain portal context.
    I might be able to switch the edit/view function from another portlet on the same page if I pass the p_edit and p_mode parameters to redraw the multiple portlet page correctly. I have tried passing p_edit using the portlet reference path "&162_KCPCONTENTAREA_6429252.p_edit=1", but the Content Area Portlet does not respond. What else do I need to do? Is this even possible?
    Thanks for any advise you can provide
    null

    Please try the discussion forum for Content Areas at:
    http://technet.oracle.com:89/cgi-bin/forumdisplay.cgi?action=topics&forum=Oracle9<i>i</i>AS+Portal+Content+Areas&number=82&DaysPrune=20&LastLogin=

  • Switching Content Area Portlet Edit/View Folder Mode

    The current Content Area Portlet included with Portal 3.0.8 works fine except that it does not include the "Main Banner" nor the "Sub Banner". This means that portlet users do not have access to either the "Edit/View folder" function nor the current folder name.
    My customer would like some users to have item upload capability. What are my choices without these banners? I can access the content area in "full page" mode and have the banners available. But this is undesirable since we would like the content area to stay "in the portlet" in order to maintain portal context.
    I might be able to switch the edit/view function from another portlet on the same page if I pass the p_edit and p_mode parameters to redraw the multiple portlet page correctly. I have tried passing p_edit using the portlet reference path "&162_KCPCONTENTAREA_6429252.p_edit=1", but the Content Area Portlet does not respond. What else do I need to do? Is this even possible?
    I would appreciate any advise you can provide.
    Thanks, Wendel Yale

    I have determined that there will be be an edit link included in the Content Area Portlet in the 3.0.9 release due out in May. This leaves open the question of support for parameter passing for out-of-the-box portlets. Will (Is) this supported?

  • Locking "Portal Administrators" out of items in a content area

    I have a content area that will contain sensitive documents.
    I've been asked to find out whether security can be set up so
    that only a certain group of users can access the content area.
    This includes locking out the portal administrators from seeing
    these items. Is this possible and how can it be done?
    Thanks!
    Esther Poulsen

    You will always need a couple of users that can function as
    Portal superusers/administrators. That said, most
    administrative tasks can be delegated and decentralized so that
    only these few administrators have completely global
    privileges. One of the key purposes of content areas is to
    partition security among your users.
    Regards,
    Jerry

  • How do I access my icloud to view my pictures

    I have an account with icloud, but I don't have an icloud icon to access pictures that is saved there. How can I access the pictures to view from my icloud? I have many pictures on icloud that I'm afraid that maybe I have lost.

    Your iCloud backup will contain your camera roll photos unless you excluded them from your backup in settings.  You should be able to recover them by restoring your phone to the entire backup.
    Restoring to an iCloud backup has to be done in the initial setup process.  If you have any data on your phone now that is not in the backup that you want to save you'll need to do that first.  Then go to Settings>General>Reset and tap Erase All Content and Settings.  You will then go through the setup screens as you did when the phone was new. When given the option, choose Restore from iCloud Backup (see image below).  Be sure you are connected to wifi and your charger as this will take some time to finish.

Maybe you are looking for