In this part of the tutorial we are back in my territory: integration with UCM or as Oracle calls it these days: WebCenter Content.
This part of the tutorial will teach you how to create a connection to UCM from within JDeveloper. We will be using the Document Manager taskflow to manage our documents in our portal and use the content presenter to show and create documents that will be stored in UCM.
This is just the introduction part of the integration. I estimate that we will have 3 or 4 parts dedicated to integrating content. This tells you how important UCM is for WebCenter. Especially now, in the new landscape of WebCenter. I will also try to add some multilingual sections to the tutorial so that you know how to implement a multilingual portal by using UCM and WebCenter.
The only additional requirement for this tutorial is a working version of UCM 11g. This tutorial does not cover the installation process of UCM. If you have issues for getting UCM up and running, please leave a comment and if there are enough people asking for help, I will write a step by step guide on how to install and configure UCM. Just like I did for the WebCenter installation guide.
As a starter you should also download the start project. You can also use your own project if you have done each part until now.
From WebCenter we connect to UCM by using a socket connection. By default UCM 11g does not allow a socket connection so we need to enable this first. If you have installed UCM 10g or earlier versions, this will be done automatically during install but since 11g, you need to do this after the installation.
We can enable the socket connection by using the Enterprise Manager. Browse to your Enterprise Manager. On a default domain this is on http://localhost:7001/em
Open the Content Management node and select Configuration from the UCM menu as shown in following image:

On the configuration page, you will need to provide an Intradoc ServerPort. This is the port that will be used for a socket connection. By default this is left empty so we need to provide the port. In previous versions of UCM this was set by the installation to 4444 so we are going to use the same value.
The IP Address Filter is also a very important parameter. With this filter, you can grant specific IP addresses to connect to UCM. If an IP is not listed, it will not be able to create a socket connection to the server. You can also use wildcards as shown in the image below:
After saving these setting, you are required to reboot the UCM server before the changes will be applied.
That's it. We can now create a connection to the server in JDeveloper.
In JDeveloper right click on the connection folder and select New Connection and then Content Repository:

Specify a name for the connection.
Check the Set as primary connection for Document service checkbox. This is important because if you don't have a connection that has been set as primary, you will have issues when dropping taskflows to your pages. You will always have to specify the connection manually. By setting this checkbox, each document service taskflow will use the primary connection if you don't specify a connection as a parameter.
Select Oracle Content Server as the Repository Type
By select Content Server as the repository type, you will see some configuration parameter that need to filled in for the connection:
There are more parameters but for the socket connection that's enough. Press Test Connection to see if everything is ok:

Press OK to save the connection.
Now let's create some content!
In most cases, we as developers will not provide content. We will only provide our users with a way to easily add the content they want on the pages they want.
Here's some good news. We already have done that! You only need a working UCM connection and that's it. All the rest is out of the box. I'll show you how.
In this part we will add a basic document that will be displayed in the About Us page.
Let's run the portal and login with the Weblogic user.
Go to the administration section and open the Services tab. In this tab we will have some basic features to manage the configured services.
The first service is the Content service. This service is enabled by default and requires a connection to a content repository which we just created.

You will see the Document Manager taskflow. What do you think this taskflows does? Yes... Managing documents.
It provides a folder view of your content server. You can browse it, create documents, download, edit, and so on.
In my screenshot you see two folders. The "Bijdragemappen" is the default folder created by UCM. I have installed my UCM in Dutch so that's why the folder name has such a strange name (unless you are Belgian or Dutch). In most cases this folder will be called "Contribution folders". This just as a side note.
It is common practice to save all your document in these folders. WebCenter however, has created another root folder (PersonalSpaces) which is used in WebCenter Spaces. For this portal we will store all the documents in the Contribution folders.
Click on the Contribution folder to open it. You now will see all its content. If you already have used UCM and you have stored content in folders than you will see these document in this taskflow.
From the File menu select New Folder

Specify ViePortal as the folder name and press Create

Once the folder has been created, open it. We will store all our portal documents in this folder.
Click on the New Wiki Document. To be honest, I find the name "Wiki document" a bit of a bad choice from Oracle. We will not create just a Wiki document. This button will just create an HTML document in the content server that we can edit by using a rich text editor. These documents are more than just Wiki documents. You will use this feature to create document that can be managed at runtime.
Specify a title for the document: About Us
Provide the content by using the rich text editor. Use your imagination for the About Us page. I'll show what I have:

Press the Create button in order to create the document. That's it. Our first document has been created.
Let's add it to the About Us page.
This section is a bit "out of section" which means that it's more a general topic and not bound to this part of the tutorial.
Before we can edit a page at runtime, we first need to add the Oracle Composer to our page. This is done by adding the pageCustomizable component to the page. We'll do this now for the About Us page.
Open up the aboutUs.jspx page in JDeveloper. From the component palette, drag an drop the pageCustomizable component on the content facet:

The Content facet should contain following code:
Save and run the portal again. That's it. We now have enabled runtime editing of the page.
In the world of WebCenter, the Content Presenter is king. Especially if we are talking about Content Integration and now since UCM is called WebCenter Content, the Content Presenter has gained even more power! So don't let me see you write Content Presenter without capitals. That blasphemy!
Alright, bad joke, I know but nevertheless, the Content Presenter is very important and powerful. Therefore I will dedicate a complete part of the tutorial to it. In this section I just give a brief introduction. The next part of the tutorial will be dedicated to the CP.
Return to your portal and open the About Us page.
In order to edit the page, we can use a shortcut. Just press CTRL+SHIFT+E. This will bring up the Composer:

Press the Add Content button to open the Resource Catalog. In the default resource catalog, we can browse the Content Server and select a document that we want to display.
Open the Content Management folder and the All Content folder.
You will now see a list of all the connections to a content server. In our case, we only have a single connection so open its folder and browse to the document we just created.
If you have followed the previous steps, you should browse thru:
Contribution Folders => ViePortal and then you see the About Us.htm:

Press the Add button and select Content Presenter from the context menu:

As you can see, there are plenty of options to display a document in the portal. Just play around with them to see the difference.
Close the catalog and close the composer so we return to view mode. This should be the result:

One more cool feature of the CP is that we can edit this document inline without needing to go to the Document Manager.
If you want to make changes to the document we can do them on the About Us page without needing to go to the Document Manager. There is also a shortcut available for this: CTRL+SHIFT+C. Press the shortcut and you should see a blue dashed line around the content. On the right you have a View and Managethis document icon. Press it. This will open the Contribution popup. In this popup we can see the and modify the properties of the document:

Press the Edit button so we can make some changes to the text. This will show up the same rich text editor as when we created the document:

Press Save while editing to store the changes and press Save and Close to return to the page. On the page we can exit the contribution mode by pressing the shortcut CTRL+SHIFT+C again.
Important notice: remember from the first part of the tutorial that we lose runtime customizations when we rerun the portal so don't be surprised if you rerun the portal and the AboutUs page is suddenly empty. In the next part of the tutorial, we will add the content presenter from within JDeveloper instead.
That's it for now. This part of the tutorial is an introduction to content integration. In the following 2 or 3 section, we will take a closer look at the features of content integration. Meanwhile i recommend that you play a bit with what you have learned. Explore the possibilities of the rich text editor. Take a look at all the features. See if you can find create links to other pages by selecting them, add images and so on. If you have any problems or question, please leave a comment.
The next part will take a closer look at the Content Presenter. I will show you how templates work and how to create them. We will also take a look at how to integrate regions from SiteStudio in our portal.
In my WebCenter 11g PS3 Administration Cookbook you can also find more information about the Content Presenter. The book covers more the runtime capabilities of the Content Presneter while this tutorial will cover the design time capabilities.
The part after that will take a closer look at the navigation model features for content integration and additional taskflows. I will also try to see if I can manage to write a part about multilingual content because that seems to be an issue with a lot of people.
Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer
Comments
UCM Conection
How do i access the UCM connection created in the application ("UCM" in this case) through Java. I am using RIDC api, but currently providing another set of server information to connect. I would like to use the existing connection information on the server.
I have also looked for this
I have also looked for this problem but i'm afraid there isn't an API available to retreive that information. I'm hoping Oracle will release such an API. You can get the RIDC connection but it is not supported by Oracle so therefore you shouldn't try to use it...
Setting document permissions...
I Yannick, first of all: thanks for your great work!
When I go through Administration section -> Services tab -> Content service -> new wiki Document...how can i set the new wiki Document's Security Group (document permissions)?
Tnx in advance,
S.
Intigartion of SDL Tridion
I would like to know how to integrate SDL Tridion with WebCenter/Jdeveloper.
Uploading error
HI Yannick,
I'm trying to upload one file using my application but i'm getting below error
. I have login in both Portal app and UCm with same user... created a folder with public security group.
can you suggest me something
Unable to perform the operation. The document or folder may have been deleted or you do not have permission.
oracle.webcenter.doclib.internal.view.DoclibIdcException: Oracle Content Server error: Content item '001016' was not successfully checked in. The required field 'Type' is missing. Cannot find the parameter 'dDocType'.
UCM Integration with Webcenter Spaces
Hi Yannick,
I am having trouble following the tutorial about webcenter spaces that involves UCM integration.
I dont know anything about UCM frankly so if you have time, can you create a HowTo document that discusses how to setup UCM and connect it with Webcenter Spaces specifically?
This is so that it would be easy to study and follow along the tutorial made by Oracle docs.
Thanks
Content not getting reflected when checked out and checked in
Hi Yannick,
I have added a html document using content from ucm presenter task flow. when i checked out and checked in a new document and refresh the page the new document is not getting reflected and it still shows the old revision document. When i refresh the page for 15 to 20 times then it gets reflected. This problem is only when i use content presenter.
But when i drag and drop images from ucm into the page and check out and check in new image, this new image gets reflected immediately on page refresh.
so i want to know how to get the change reflected immediately when i use content presenter.
Thanks in advance.
The exact same question has
The exact same question has been asked on the WebCenter forum. I answer there so please keep the discussion over there.
Content not getting reflected when checked in
Hi Yannick,
We are having the same issues with the content getting refreshed and we trying to find that article that you are referring to in Webcenter forum and we are not able to find it.
Can you please point us to that article on your forum.
Here it is: https://forums
Here it is: https://forums.oracle.com/forums/thread.jspa?threadID=2321458
UCM 11g installation guide
I am new to webcenter portal technology. After reading your tutorials now i got the little bit confident. i Am following each any every instrucution posted by you.Thank s lot lot lot for this kind of help.but i am stoped at Introduction to Content Integration due to how to install UCM without it i am not proceed further .can you please help me to install UCM Please .or give the dircetion what document may i use to instll UCM 11g?
Item Level Security Issue for WebCenter Spaces
I was trying to register on your blog and it gave me an access denied for the registration page. With that being said, I'm writing this email hoping that you'd provide some guidance on my below issues; I strongly believe they're inter-related and have the same root cause. I also posted these questions on the Oracle WebCenter forum hoping that you or someone else
would respond to my issues.....any pointers would be greatly appreciated:ILS (Item Level Security) for Webcenter Spaces - We're trying to implement Item Level Security for WebCenter spaces. We're following the instructions from the Oracle® Fusion Middleware Administrator's Guide for Oracle WebCenter 11g Release 1 (11.1.1.5.0) http://docs.oracle.com/cd/E15586_01/webcenter.1111/e12405.pdf
After making the configuration changes, we're unable to see the "Security" option from the
"File" menu in the Document explorer.
Security Groups and Accounts info not showing up in the properties - I'm looking at the document properties in webcenter spaces via document explorer and do not see the "security group" or "accounts" metadata fields. I can see the "Content ID" and whole bunch of fields and do not see "security groups" and "accounts". However, when I log into the content server and look at the folder or file "info" I can clearly see the security group and account...not sure what is required to make these two fields show up in webcenter spaces.Content Service missing under WebCenter services via WebCenter Portal Admin - In our webcenter spaces administration under "configuration" -> "services", the content service described in the below documentation, section 34.6.1 Managing Content is missing. I'm wondering if we need to make any setting changes to enable the content service. I'm wondering if I'm not able to see the "security" option under "file" menu in "document explorer task flow" because of this http://docs.oracle.com/cd/E15586_01/webcenter.1111/e12405/wcadm_admin_ap...
WebCenter 11g PS3 Tutorial: Introduction to Content Integration
great post i'm a big formula one fan from Sweden
Connecting to UCM 11.1.1.6 and later
Hi Yannick
Firstly, thanks for the great Tutorial. Very well put together.
I have been doing the Tutorial with Jdev 11.1.1.6.0 and UCM 11.1.1.6.0, and noticed that a vanilla install does not install a folders component. The Contribution Folders did not there fore appear. When I went to add a folders component, only FrameworkFolders was available. I installed this, but JDev threw an error when I went to create a connection.
It looks like it will only work with Folders_g at this stage. Note that, at first glance, Folders_g is not available for install in Admin Server. You have to go into "Advanced Component Manager" to see it.
Hope this is helpful. I just thought I would pass it along in case anyone else struggles with this.
Regards,
Alec
Alec,
Alec,
Thanks. I already had the question from severall people who had that issue so I am aware of this.
I am currently writing a blog post about this to make it more clear because currently there are lots of people who have this issue.
Thanks anyway.
Permissions issue when trying to add wiki document
Hi Yannick,
I was able to add the ViePortal folder to the Contribution Folders.
When I try to create a "New Wiki Document" I always get a popup error window with these messages:
Unable to create new HTML document.
You do not have permission.
Please refresh to see the latest content (View > Refresh Content).
Do you have any ideas?
The UCM that I am connecting to has a different password than the default "weblogic1" -- could that have anything to do with it?
Thanks for any ideas,
-Paul
Identity propagation works
Identity propagation works without using password. UCM and WebCenter trust each other so in the background WebCenter passes just the username to UCM. Password is not important in that case.
Have you enabled the WebCenter component in UCM? Do you see any other error message in the log files from UCM?
Permissions issue when trying to add wiki document
Wow Yannick -- that is really fast feedback -- thank you very much!
(especially since it is quite late at night in Belgium!)
Sorry to have to ask such basic stuff, but how do I check that WebCenter component in UCM is enabled?
I am using a webcenter environment (not production) set up by a very experienced coworker who is on vacation at the moment, so I don't want to go mucking around in a way which might cause him grief when he returns.
This environment also includes OID -- do you think that might have something to do with the permissions?
Below is the tail of the UCM log file -- starting with the line "... <Server started in RUNNING mode>"
<Jun 12, 2012 6:52:47 PM EDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<Jun 12, 2012 7:02:28 PM EDT> <Error> <oracle.ucm.idccs> <UCM-CS-060003> <Event generated by user 'weblogic' at host 'CIS'.>
<Jun 12, 2012 7:02:28 PM EDT> <Error> <oracle.ucm.idccs> <UCM-CS-000001> <general exception
intradoc.common.ServiceException: !csUnableToCheckIn,(null)!csSecurityGroupNotDefined
I'm living in the UK now so I
I'm living in the UK now so I replied an hour earlier than you thing :)
The error says that you haven't specified the security group: csSecurityGroupNotDefined
This is a mandatory field in UCM. This might be caused because you haven't enabled the WebCenter component in UCM.
You can enable this in the component manager in UCM. In case you don't know where to find it, read this post: http://yonaweb.be/configuring_webcenter_content_webcenter_spaces_ps5
It shows how to get to the component manager. There you can enable the WebCenter component.
After enabling it you have to restart UCM.
Option "Content Presenter" is not available in the list
Hi Yannick,
I try to add a wiki document('test.html') to "AboutUs.jspx", & I don't see option "Content Presenter" in the drop down list. I can see the rest of the options('document viewer', 'link',...)
Please help me out..!!!
Thanks,
RK
Add new comment