Oracle Universal Content Integration
11g 11 g and Oracle ADF/WebCenter 11g
Every organization operates with different kind of documents. Oracle Forms systems usually store documents directly in database, using BFIE!BOB format. It is hard to manage such content and publish it effectively. effectively. Oracle Fusion provides Oracle "niversal #ontent $anagement %"#$& ''g product to store and manage unstructured data %documents, images, etc.&. (oday (oday I will e)plain how to define #ontent *erver connection f rom +eveloper ''g ''g and how to use -eb#enter ''g F task flow to manage content stored in "#$ repository. /ou can download Oracle "#$ ''g from O(01
*ample application 2 "#$0ewFolder.zip "#$0ewFolder.zip.. (his sample is typical F ''g application with -eb#enter ''g support. dditionally it is using Oracle "#$ ''g 3I# 4I, topic to be covered by future posts. There is no need to import RIDC API or WebCenter 11g UC! related ADF tas" lo#s.. Its 5ust my sample application is using advanced Oracle "#$ ''g functionality lo#s %programmatic folder creation, removal and information retrieval& I will e)plain it in near future. In order to compile provided sample application, you need to install 3I# library. (his library can be found inside Oracle "#$ '' ''g g installation home 2 ORAC$%&%C!/'cm/Distrib'tion/RIDC/(dev 1
Install this library as +eveloper ''g e)tension 2 from local file1
0ew e)tension will be added1
3I# library will be listed as +eveloper ''g e)tension1
0ow, when 3I# library was installed 2 we can compile sample application. et me repeat 2 there is no need to install 3I# library, if you want to implement only -eb#enter ''g F task flows related to "#$. 6owever, sample application contains custom functionality, it re7uires 3I# library %ne)t post topic&. Its time now to define #ontent 3epository connection. (his will enable us to use -eb#enter ''g ocument service %Oracle "#$ ''g& F task flows1
(here is developer guide for Oracle -eb#enter ''g, it describes how to setup connections for Oracle "#$ ''g from +eveloper ''g environment 2 Integrating, 4resenting, and 4ublishing #ontent. I will e)plain from my e)perience, what are the most popular options for #ontent 3epository connection configuration. s you can see from Oracle -eb#enter ''g developer guide, there are various 3I# *ocket (ypes. (here are two most common types 2 #eb and soc"et. /ou should keep in mind, when using #eb socket 2 it will not perform Identity 4ropagation and will not access secured #ontent 3epository content. (his means #eb socket is good for read2only public access. et8s check how it works. I will configure #eb socket connection1
For #eb socket, you need to specify "3 of the -eb *erver 4lugin, dmin "sername and 4assword for Oracle "#$. *et this connection as primary, it will become default connection1
Before running application and testing defined connection, lets open #ontent *erver admin console and check how content folders are defined there1
"nder #ontribution Folders we have our custom emplDocs folder. (his folder was created by me, -eb#enter ''g ocument service F task f lows are configured to point to this folder1
Folder is protected by )'manReso'rces security group1
0ow when I run sample application, with #eb socket configured for #ontent 3epository connection, login is failing. Its because #eb socket is not allowed to perform Identity 4ropagation from F security conte)t, Oracle "#$ ''g server re5ects anonymous access to protected folder %it would work if we would try to connect to public folder&1
et8s change to soc"et connection and see how it will work. For soc"et connection, specify its type, server host and listener port %admin username and password are not needed&. 9eep in mind* Oracle UC! 11g Content +erver needs to be conig'red to accept re,'ests rom Web$ogic +erver machine* other#ise soc"et connection #ill be re(ected1
0ow application is able to connect to protected folder and render -eb#enter ''g ocument service F task flow 2 ocument $anager1
ocument $anager -eb#enter ''g F task flow provides different document management operations out of the b o) 2 file upload, download, removal, update and versioning. -e can test it and try to upload a new file1
I will select image file1
File is successfully uploaded into protected folder and stored inside #ontent 3epository 2 Oracle "#$ ''g1
$y ne)t blog post will describe how to manage Oracle "#$ ''g folder structure programmatically from +ava code using 3I# library 2 create, remove and retrieve folder info.