By rajesh | October 7, 2013 | 0 Comment
Here again to take you forward in webcenter services using jdeveloper.
So, ensure you have followed the earlier post to get a successful configuration of content server in jdeveloper :
Now, we will try to explore these following options in details in forth coming related posts :
1) Exploring Contribution Folder in jdeveloper : With the Help of various ADF Components
2) Digging Webcenter Services Part I : Content Presenter
3) Digging Webcenter Services Part II : Document Services
Let’s start these one by one and then we will take other services as well, considering the fact that others would require some additional configuration in your weblogic server and in jdeveloper.
So, for now, hold your breath for now and Take Contribution Folder on the top.
We have a successful connection to our repository and have configured the folder_g component in Oracle Webcenter Content server[Do not forget the difference between folder_g and frameowork folders components].
What you will have now in jdeveloper, will look something like this :
Now, Let’s take few scenarios like :
1) Exposing document of Content Server as a blog in Webcenter Portal in Jdeveloper.
2) Fetching All Content from one of the contribution folders of Content Server on JSF page in an ADF component.
3) How to convert a static Document Link in Image Link.
4) How to open document on click on this image in Pop Up.
Let’s take all these two scenarios in a sequence, one by one and 3rd and 4th in next meet.
Create an application based on the Webcenter Portal Framework available in your jdeveloper, just to add, your jdeveloper version should be 220.127.116.11.0 or above.
Choose your framework and go ahead.
You will get two projects for your Model[business logic] and your views and controller part.
Only one major point to remember here is to check the option for grant permission to all the objects you will create from now onwards as in this framework, you will get default security enabled.
If you want to only view your further objects, you need to check this option here only. Follow this screen shot :
Finish with the application now and let’s see all these data controls which you will get as default :
Now, let’s focus on our main area, Contribution Folders.
Go to your Application Resource tab in the application and unplus all the links of folders present there :
So, To start with create a JSF page where we will drag and drop all these documents and folders in different ADF components.
To start for a basic page, choose default page layouts present in the framework, follow the screen shot :
One catch here, in context of default ADF security enabled in your application.
If at all you want to play something different other than just viewing the future objects on JSF page, modify the security level on the page.
Right Click on the page and go to authorization of the page like this :
Choose your object in your Jazn-data.xml file, this file is responsible for your ADF security model, we will explore the ADF security in another Detailed post with some other security models.
For now, just choose your object, in this case your JSF page, select the user and then check all the permissions which you want your user will be able to do on this page.
Follow this screen shot :
Now, the main deal, explore the contribution folder in application resource and unfold the exact folder.
Take the document which you want to expose as a blog on your portal.
Follow this screen shot which will tell you that, Drag your document, and drop it on the page, it will show you a pop up menu with all different webcenter service.
One of the service is Blog service, which we will exploring in this post.
See the screen shot :
Click on the blog option to drop your document as a blog on the page.
It will shows you a pop up with all the possible parameters for this blog services.
Like this :
ResourceID is something unique ID for this would be component or service.
It needs to be in this pattern only, else it would not fetch the document on the PAGE.
Your connection name + Service name[of content server] + Document ID[unique id f this document in content server].
You need to follow this format.
As author or contributor for this document, can put comments for this in content server, if now in your portal, you do not want to show the comments , make second parameter as false in this dialog.
Say ok, and you will get a region on your JSF page. Just to remember, this would be a static region as we are or would not pass any parameter in this region.
Now, you are good to run your this JSF page.
You will get you blog like this :
Which contains, your document, opened.
File name as title for this blog.
Archive section which will show you all other blogs in chronological order.
An option, by using which you can upload newer version for this same blog.
With few menu options, see the screen shots :
Try and explore these option to ease of use.
Now, IF you want to open this document on some pop up after click of any button or go link, you can manipulate this further with your ADF expertise.
Our next post will lead you to this functionality.
Find this sample application to take this further.