Oracle Webcenter and Webcenter Content Integration


In WebCenter there are different ways to integrate UCM with your Portal or WebCenter spaces application.

Content can be displayed with our application using
  1. Taskflows and Data Control
  1. RIDC API

Here I am going to use the first part.

Prerequisites:
  1. Jdeveloper 11g with webcenter extensions installed.
  2. Content Server 11g

Preparing content 11g for a socket connection

Login to the EM console.

After login select Oracle Universal Content Management from the menu on the left.






Now go to configuration using the UCM dropdown and select Configuration

Here you need to set,
  1. Intradoc Server Port
    1. The Intradoc Server Port is used to connect to your CS using a socket type of connection.
    2.  You can set this to 4444.
  1. IP Address Filter.
    1. You can set this to *.*.*.*.
When you are done with the configuration you need to reboot the UCM server.



Webcenter comes with a set  of pre-defined taskflows for consuming and customizing. From that set of taskflows, some are used to display/upload form/to the content server.



To view the taskflows available from webcenter services, select the Resource Palette in Jdeveloper and find Webcenter Services Catalog and Task Flows.
 If you are unable to find  Webcenter Services Catalog than you haven't installed the webcenter extensions in jdeveloper.
Following is the description of the above task flows,

  1. Documents - Content Presenter
    1.  This allows you to show content and apply templates on the content to render it correctly
  1. Documents - Document Manager
    1.  An explorer like component to browse and manage files from your content server
  1. Documents - List view
    1.  Shows a list of content
  1. Documents - Recent Documents
    1.  shows a list of recent documents uploaded to the content server


Creating a connection to UCM
Created a connections  in the Application resources by right clicking the connection folder.
Select new and then Content Repository.



A popup will appear where you need to specify the parameters of the connection.



  1. Enter the name for the connection.
  2. Select the Set as primary connection for Document service checkbox.
    1.  By setting this checkbox, each document service taskflow will use the primary connection if you don't specify a connection as a parameter.
  1. Select Oracle Content Server as the Repository Type
Depending on the Repository type we need to set some parameters. For UCM we need to configure the below parameters.
  1. RIDC Socket Type: this is the type of connection. We will use socket because this is the most stable one.
  1. Server Host Name: this is the hostname of your UCM server
  1. Content Server Listener Port: this is the value we have specified in the enterprise manager.
  2. Set rest boolean parameters to true.
  3. Now test the connection.



Adding  Document Manager :
Create a webcenter portal application, and create a new jspx page.

  1. From the resource palette, open the Webcenter Service catalog and the taskflow folder.
  2. Select Documents - Document manager and drop it to the center facet of the page.
  1. JDeveloper will ask to create a region or dynamic region. Select region. You will also be prompted to add the doclib-service-view.jar to your project. This will add the needed library to your project 's classpath. The next popup you will see is the task flow input parameter window.
  2. The document manager will take 2 input parameters:
    1. connectionName: the name of the connection in case you don't want to use your primary connection
    1. startfolderPath: the path of the folder that will be used to start the document manager. To start our document manager we can leave the connectionName empty and set the startFolderPath to "/"



When you press OK the taskflow will be added to our page.

Run the page. For the below output.

Post a Comment

0 Comments