This content has been marked as final. Show 4 replies
you are right. It is quite difficult to find any info. What I could find is this:
- how to create a connection is described here: http://docs.oracle.com/cd/E21764_01/webcenter.1111/e10148/jpsdg_content.htm#BABCCFJH
- as soon as you create a connection, you can add it to your project (I believe it should resolve deployment)
- for spaces, there are few settings in Enterprise Manager (doing the same?)
- what I could not find anywhere is how to use the created connection in your code. I understand you don't want to have it hardcoded.
Thank you for reply!
- how to create a connection is described here: http://docs.oracle.com/cd/E21764_01/webcenter.1111/e10148/jpsdg_content.htm#BABCCFJHAs I wrote before
Details how to do it is written in your link. But we already created it use for standard taskflows developed by Oracle.
I figured out , that we can create Application resource in JDeveloper with RIDC connection details to UCM.
But I have no ideas how to use it in our own taskflows that we developed by our own. We have to get connection details in our java code to pass it to RIDC function _manager.createClient and IdcContext constructor.
- what I could not find anywhere is how to use the created connection in your code.That is our problem.
I understand you don't want to have it hardcoded.Yes.
Ok, if we can’t access connector details, may be there is any other secure place to store connection details?
This is the best practice:
String connectionName = DocLibADFConfigUtils.getPrimaryConnectionName();
IdcClient idcClient = StellentUtils.getIdcClient(connectionName);
IdcContext idcContext = StellentUtils.getDefaultIdcContext(connectionName);
I use a similar solution, but still.. DocLibADFConfigUtils is an internal class - There should be a way to achieve this without using internal classes, shouldn't it?