Retrieving documents from UCM

Hi
I have created a webcenter portal application that retrieves contents from UCM using the RIDC api. Currently any ucm user is able to access any document from UCM. I want the application to work such that a particular user say 'x' is able to access only a set of documents and another user say 'y' is not able to access those documents.
This is my java code:
try{
IdcClientManager manager = new IdcClientManager();
IdcClient idcClient = manager.createClient("idc://aisdell59.oracle.com:4444");
IdcContext userContext = new IdcContext ("temp_user");
// populate the binder with the parameters
DataBinder dataBinder = idcClient.createBinder();
dataBinder.putLocal("IdcService", "GET_FILE");
dataBinder.putLocal("dDocName",dDocName);
dataBinder.putLocal("RevisionSelectionMethod","LatestReleased");
dataBinder.putLocal("Rendition","Web");
ServiceResponse response1 = idcClient.sendRequest (userContext, dataBinder);
InputStream content= response1.getResponseStream() ;
How can i achieve this security?
Thanks and Regards

First of all, is there a specific reason why you are building your own component and not using the content presenter or other OOTB taskflows? These taskflows automaticly propagate the security to UCM.
If you really want your own component than you should replace following line:
IdcContext userContext = new IdcContext ("temp_user"); With:
String user =  ADFContext.getCurrent().getSecurityContext().getUserName();
IdcContext userContext = new IdcContext (user); This way the current logged in user will be propagated to the IdcContext and thus it will only return the document that are accessible by the user.

Similar Messages

  • How do I retrieve documents from my iCloud that i made in pages

    How do I retrieve documents from my iCloud that i made in pages

    Welcome to the Apple community.
    Your question is a little unclear, however if you mean how can you retrieve documents you have created on your iOS device on your Mac, then you need to download them at iCloud.com using the web browser (Safari or similar) on your mac.

  • Timeout when retrieving document from Content Server

    Dear experts,
    after the migration of an R/3 Enterprise system with a file-based Content Server (CS without database) we experience significant delays when a document shall be retrieved from the Content Server and displayed.
    The repository, from which documents are retrieved, has the following properties:
    Document Area = ArchiveLink
    Storage Type = HTTP content server
    Obviously the delay is caused by time-outs when R/3 tries to access the content sever.
    The RFC trace recorded during the document retrieval contains the following entries:
    Trace file opened at 20100825 104048 CEST SAP-REL 640,0,304 RFC-VER 3
    Trace file opened at 20100825 104115 CEST SAP-REL 640,0,304 RFC-VER 3
    End of trace *****
    ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    ABAP Programm: SAPLSCMS_CLTFC (Transaction: )
    Called function module: RFC_PING
    User: TSI0403 (Client: 007)
    Destination: SAPCMS (handle: 4, , {4C74C1A6-BD3B-3B59-E100-00001A5F0A18})
    SERVER> RFC Server Session (handle: 1, 41571399, {4C74D031-BD2C-3B58-E100-00001A5F0A18})
    SERVER> Caller host: cimpd38_MPD_38
    SERVER> Caller transaction code: MIR4 (Caller Program: CL_GOS_TOOLBOX_VIEW===========CP)
    SERVER> Called function module: GOS_EXECUTE_SERVICE
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3268
    CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1660
    ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    ABAP Programm: SAPLSCMS_FE_RFC (Transaction: )
    Called function module: RFC_PING
    User: TSI0403 (Client: 007)
    Destination: SAPHTTP (handle: 6, , {4C74C1B4-BD3B-3B59-E100-00001A5F0A18})
    SERVER> RFC Server Session (handle: 1, 41571399, {4C74D031-BD2C-3B58-E100-00001A5F0A18})
    SERVER> Caller host: cimpd38_MPD_38
    SERVER> Caller transaction code: MIR4 (Caller Program: CL_GOS_TOOLBOX_VIEW===========CP)
    SERVER> Called function module: GOS_EXECUTE_SERVICE
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3268
    CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1660
    I wonder why R/3 first attempts to contact the Content Server via the SAPCMS RFC destination rather than using HTTP (SAPHTTP)? - The connection tests for both RFC connections are successful.
    Is there a way to instruct R/3 to go via the SAPHTTP RFC destination as the first choice and NOT via SAPCMS when documents shall be retrieved and displayed?
    Thank you,
    Rainer Walter
    Edited by: Rainer Walter on Sep 3, 2010 3:07 PM

    Hi Ravindra,
    thank you for looking into this problem. The Content Server is not based on SAP DB/MaxDB. The repositories are represented as plain directory structures in a file system.
    My issue is that R/3 is not using the SAPHTTP RFC connection as first choice although the repository is flagged as "HTTP Content Server" but uses another RFC destination instead. When this attempt is timed out, R/3 eventually picks the appropriate RFC destination. So it takes a considerable amount of time until a requested document is finally retrieved from the repository in the Content Server.
    I am confused because the system where I experience this behaviour has been built from a system copy of a production system, and the Content Server for this new system has been built from scratch. In the original production system, no timeout is found when users are retrieving documents, and obviously the original R/3 system is using SAPHTTP right away. The original production system and the new system built from a system copy are accessing different Content Servers.
    I am looking for a way to instruct the new R/3 system to immediately use the SAPHTTP connection when talking to the Content Server, and I would be grateful for a hint where I can configure this to get rid of these timeouts.
    Best regards,
    Rainer

  • Retrieving documents from cache server using Bapi_Document_Checkoutviewx

    Hello,
    how can I retrieve the documents from cache server instead from content server, which are stored in SAP R/3 system.
    I use the bapi "BAPI_DOCUMENT_CHECKOUTVIEWX" in a Rfc-Client Programm to retrieve the documents. This BAPI retrieves the documents allways from content server and don't use the existent cache server.
    Thanks for any help!
    Birol

    Hi Birol,
    Can you please tell me is the content you have used in that "BAPI_DOCUMENT_CHECKOUTVIEWX programme"????
    Regards
    Harshavardhan.G

  • Documents from UCM not opening in some browsers

    Hi ,
    I am using the RIDC GET_FILE service to display the pdf in the WebCenter portal page. When the method is called the pdf document opens in Chrome browser in some machines but not in Firefox or other browsers. The file is returned as "application/octet-stream" and hence does not open as a pdf document.
    Following is the java code written to fetch the files
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.adf.share.ADFContext;
    import oracle.javatools.resourcebundle.BundleFactory;
    import oracle.security.xmlsec.samlp.ResponseType;
    import oracle.stellent.ridc.IdcClient;
    import oracle.stellent.ridc.IdcClientManager;
    import oracle.stellent.ridc.IdcClientException;
    import oracle.stellent.ridc.IdcClientManager;
    import oracle.stellent.ridc.IdcContext;
    import oracle.stellent.ridc.convenience.usersecurity.CacheId;
    import oracle.stellent.ridc.convenience.usersecurity.IUserSecurityCache;
    import oracle.stellent.ridc.convenience.usersecurity.impl.UserSGAcctAclCache;
    import oracle.stellent.ridc.convenience.usersecurity.impl.UserSecurityGroupsCache;
    import oracle.stellent.ridc.model.DataBinder;
    import oracle.stellent.ridc.model.DataObject;
    import oracle.stellent.ridc.model.DataResultSet;
    import oracle.stellent.ridc.protocol.ServiceResponse;
    import utils.system;
        public class getFile extends HttpServlet {
            private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
            private static final long serialVersionUID = 1L;
            public void init(ServletConfig config) throws ServletException {
                super.init(config);
            String cid ;
        public  void doGet( HttpServletRequest request,
                            HttpServletResponse response) throws  ServletException ,IOException {
                       try {
                           cid = request.getParameter("cid");
                       } catch (Exception e) {
                           e.printStackTrace();
            try{
                IdcClientManager manager = new IdcClientManager();
                IdcClient idcClient = manager.createClient("idc://oa8054.us.oracle.com:7444");
                IdcContext userContext = new IdcContext("SADMIN", "SADMIN1");
                        System.out.println("got idc client");
                    // populate the binder with the parameters
                        DataBinder dataBinder = idcClient.createBinder();
                        dataBinder.putLocal("IdcService", "GET_FILE");
                        dataBinder.putLocal("dDocName",cid);
                        dataBinder.putLocal("RevisionSelectionMethod","Latest");
                        dataBinder.putLocal("Rendition","Web");  
                     dataBinder.putLocal("allowInterrupt","1");
                        ServiceResponse response1 = idcClient.sendRequest (userContext, dataBinder);
                    response1 = idcClient.sendRequest (userContext, dataBinder);
                         InputStream content = response1.getResponseStream() ;  
                        BufferedOutputStream  output = new BufferedOutputStream(response.getOutputStream(), 1024);             
                        byte[] buffer = new byte[1024]; 
                        int length;
                        while ((length = content.read(buffer)) > 0){ 
                        output.write(buffer, 0, length); 
                content.close(); 
                output.flush();
                        output.close();
                    catch (IdcClientException e) {
                                 e.printStackTrace();
    And the call to the servlet is  made on click of a link.
    Why doesn't the documents() open in some browsers while it does in some.Similarly i want to open docx and rtf files from UCM also using the same code without downloading.
    Please help.
    Thanks

    Hi.
    Try following sample code:
    Include cmfn tag library in your page
    xmlns:cmfn="http://xmlns.oracle.com/webcenter/content/functions"
    Use next EL Expression to get a Node url's (are the same methods as a Node in CP):
    #{cmfn:getNodeById(yourdDocName).url.downloadUrl
    #{cmfn:getNodeById(yourdDocName).url.renderUrl
    Sample:
    <af:goLink targetFrame="_blank" destination="#{cmfn:getNodeById('UCM676546').url.downloadUrl}"/>
    You'll need connection to UCM configured in your WebCenter Portal Application because it will ask for the current IDC connection configured.
    Regards.

  • How do I retrieve documents from iCloud

    I have activated iCloud and I think saved my documents to iCloud. How do I retrieve a document from iCloud?

    mahoganyfil wrote:
    I know that is the way it is supposed to work but these documents where put in icloud from my imac and they do not seem to be able to be opened until I open them on my ipad...
    that is how it is designed..
    iwork on iOS uses different file extensions and formats (*.tef )  then iwork for Mac (*.number,*.key*.page) . It needs to be converted all the times so that the different apps can deal with the content of the documents.

  • How do I retrieve documents from iCloud on my iPad?

    I have just gotten an iPad and want to use it to retrieve documents already created on my MacBook Pro and stored in iCloud. I have set up the iCloud account on my iPad and turned on Documents & Data in Settings. How do I login to iCloud from my iPad and retrieve a stored document?

    You would need to use an app to do so, such as one of the ones mentioned here: http://meetingpool.net/blog/2013/06/17/six-apps-to-view-and-edit-office-document s-on-iphone-and-ipad/, but I'm not sure which, if any, can access documents stored in iCloud.
    I personally just use a free Dropbox account to access Office documents.  You can upload them to your Dropbox account, then view them from within the free Dropbox app on your iPad.

  • Store and retrieve document from specific SRM interface

    Hello,
    In our SRM -  Bid invitation process we had specifics process, mailing and forum which are developed in WebDynpro   ABAP . i used fileUpload ui element for upload documents, i succeeded to send as email's attachment. But persistence is required.   
    so i need to store document (front end server or ECC), generate an url for link this document, and display this url in my WebDynpro  view (users can retrieve document)
    SCMS_* function module are maybe a clue, other solution could be better etc...
    please provide me any idea, sample code, anything else.
    thx.

    Hello,
    In our SRM -  Bid invitation process we had specifics process, mailing and forum which are developed in WebDynpro   ABAP . i used fileUpload ui element for upload documents, i succeeded to send as email's attachment. But persistence is required.   
    so i need to store document (front end server or ECC), generate an url for link this document, and display this url in my WebDynpro  view (users can retrieve document)
    SCMS_* function module are maybe a clue, other solution could be better etc...
    please provide me any idea, sample code, anything else.
    thx.

  • Can you retrieve document from the output folder?

    OK, this was a stupid thing to do, I know.  But I'm hoping there is a solution.
    I spent the past two days editing a 600+ page document that I produced using the Printed Documentation SSL.  Unfortunately, I didn't copy it out of the output folder.  This morning, I inadvertently started to run the same SSL, but cancelled before it had a chance to generate.  Too late.  The "Clearing Output Folder" line already appeared in the log.
    Is there a way to retrieve the file once RoboHelp "clears" it?  At the moment, there is no file with that name in the output folder.
    Any help you could provide would be much appreciated.

    Hi there
    I'm a simpleton at heart.
    Before attempting to resort to installing another application, have you looked inside the Recycle Bin?
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Can someone please help me find out how to retrieve documents from icloud?

    Is there any way to retrieve my documents after erasing someone else's iCloud from my iPad?

    Sign back into your own iCloud account. Any documents that were in your iCloud account when you setup someone else's account on your device will still be there when you sign back in to your account.

  • Retriving documents from Sharepoint online by BTS2013 R2

    We are trying to retrieve documents from Sharepoint online by BTS2013 R2  but we are receiving the below error:
    Error:
    The adapter "Windows SharePoint Services" raised an error message. Details "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for
    communication because it is in the Faulted state.".
    I have crossed checked and user credential is correct. Also the account host instances are running is having access.
    We are facing couple of issues and not sure if we missed an steps to configure.
    If anyone could help us or point through right documentation it would be of great help.

    Hi Rama,
    "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.".”
     This is quite unhelpful because it does not give a clue of what is going wrong. You get this error because a .NET exception happens on the server side (SharePoint), and nothing catches and handles it. The solution is to check your settings.
    The problem could be with the password of the SharePoint Online Username that is set wrong in the BizTalk adapter.
    Refer:
    BizTalk integration with SharePoint 2013 Online – Troubleshooting
    Also refer:
    SharePoint 2013 and Biztalk 2013 (On-Premise)
    Alternatively, try re-registering the WCF using the below command:
    On x86 environment:
    %Windir%Microsoft.NetFrameworkv3.0Windows Communication FoundationServiceModelReg.exe -r
    On x64 you can re-register WCF using the command:
    %Windir%Microsoft.NetFramework64v3.0Windows Communication FoundationServiceModelReg.exe -r
    Refer:
    VSeWSS 1.3 Deploy fails with "Faulted state"
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Retrieving document stored in a variable

    <xsl:variable name="result" select="document('response-new.xml')" />
    will the above code store the content of the document in the variable result?
    If it stores how can we retrieve document from it?
    If it ll not how can we call a document stored in a drive into an xsl?
    Message was edited by:
    Aswathy_tvm

    Hi tvm..
    <xsl:variable name="result" select="document('response-new.xml')" />
    Giving this i dont thnk the ur xml document wld be stroed in the variable result.
    regards
    Shanu

  • Pulling Documents from Content Server

    I'm trying to write a .NET webservice that will retrieve documents from the SAP Content Server.
    I understand that I need to build a URL to the content server to retrieve each document, and that part of this URL is a security key 'secKey'.
    I've such documents as:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/9561c8f3b111d1955b0000e82deb58/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e8c192eaf811d195580000e82deb58/content.htm
    And everything seems fine, except for how to create the 'secKey'. I can hash the URL parameters as required, but I don't know how to sign it - how do I obtain the sender's private key in order to do this?
    Any help with this would be greatly appreciated!

    Sorry, I realise that this is a Java forum, and I specified that I'm writing in .NET.
    The reason I'm posting here is that if I can't do it in .NET , I'm happy to use Java instead.

  • How can I retrieve a Pages document from iCloud onto my iPhone?

    I create Pages documents on my computer, and then store them in iCloud Drive. (I don't use Pages for iCloud beta; I create them with Pages on my Mac, and then upload them to iCloud Drive.) I would like to be able to retrieve those documents on my iPhone. Is that possible? I think I have all the settings right in Settings: iCloud Drive is on. Within that, Pages is on. When I go to the Pages app on my phone, all I seem able to do is create documents (which then appear in iCloud in my Mac, which is good.) But I cannot get to the documents that I have stored in iCloud by using my computer. Maddeningly, I cannot seem to find an answer to this anywhere. Is it not possible to do what I want to do?
    Thank you very much.

    Yes it is possible -- but I don't have much help for why it isn't working for you. I just tried saving 2 documents from Pages version 5.5.1 on my Mac and was able to open the document from Pages on my iPhone. The only things I can think of is to insure both are using the same Apple ID and that when you save on the Mac your save dialog is set to save to Pages - iCloud or to iCloud Drive.

  • How can i retrieve documents(.doc,.pdf, .txt) using forms from the database.

    How can i retrieve documents(e.g .doc,.pdf, .txt etc) using forms from the database.
    i inserted the documents using sql*loader, below is the control and data files.
    -- control file
    LOAD DATA
    infile 'load.txt'
    INTO TABLE husman
    APPEND
    FIELDS TERMINATED BY ','
    (id integer external,
    fname FILLER CHAR(50),
    docu LOBFILE(fname) TERMINATED BY EOF)
    --data file
    1,../husman/dell.doc,
    2,../husman/me.pdf,
    3,../husman/export.txt,
    in the form i have a text field to display the id and an OLE container to display the document as an icon. but when i execute query, i only get the id number and not the document.
    any help will be appreciated.
    Thanks
    Hussein Saiger

    Step by step
    1. Erase all contents and settings
    2. You'll be asked twice to confirm
    3. You'll see Apple logo and progress bar
    4. You'll see a big iPad logo on screen
    5. Configuration start
    6. Set language
    7. Set country
    8. Enable Location Service
    9. Select network, enter password and join network
    10. You'll be given 3 options (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    11. Selected Restore from iCloud Backup
    12. You'll be required to enter Apple ID and Password
    13. Agree to Terms and Conditions
    14. Select Backup file
    15. You'll see progress bar
    16. Red slider will appear; slide to unlock; step #1 to #16 is fast
    17. Pre-installed apps will be restored first
    18. Message: Purchased apps and media will now be automatically downloaded
    19. You'll see a pageful of apps with Waiting/Loading/Installing
    20. Message: Some apps cannot be downloaded, please sync with computer

Maybe you are looking for

  • Localhost java[671] Error : kCGErrorFailure:

    This problem started occurring quite recently, I suspect after a software update.  When I try to start the hadoop namenode, I get this error, Fri Aug 16 09:06:25 localhost java[671] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to

  • Can I write Design-time for JSP custom tag(not JSF components)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox. Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the

  • Display :0 cannot be opened

    I just installed .7 on my new system.  Everything went very well except when I try to get into kde by running startx.  I edited .xinitrc to uncomment exec kde.  When I type startx, I get a blank screen and my keyboard stops functioning.  So I have no

  • Need Help Installing Final Cut Studio Version 2.0.1 on Macbook Pro

    I am trying to install an old version of Final Cut Studio (Final Cut Studio Version 2.0.1) on my macbook pro (OS X Mountain Lion). When I tried to install it, it said, "power pc applications not supported on this computer". I was told to "uninstall"

  • Auditing in HRMS

    Hi Guys, Could I get few pointers from auditing point of view? What procedures we can adopt, what reports to run and how to control user access? There are some concurrent programs which maintain security, I am not sure which ones and how frequently w