Vous êtes sur la page 1sur 41

Integrate with WebCenter

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Objectives
After completing this lesson, you should be able to do the following: Adding WebCenter Services into ADF application Adding run-time customization to ADF pages Integrating ADF with Content Management systems Adding portlets into an ADF page Exposing ADF as portlets

10 - 2

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Agenda
WebCenter Component Overview Portlets Oracle Composer WebCenter and JDeveloper

10 - 3

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

What Is WebCenter?
Implements the (run-time) customization and personalization requirements Allows consumption of third party, external portlets Provides many Web 2.0/E2.0 Services and Community Workspaces

10 - 4

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Key Benefits of Oracle WebCenter


Oracle WebCenter benefits IT developers by: Supporting industry standards Enabling easy integration into an existing infrastructure Providing a single paradigm to build all UIs Extending existing Java EE and SOA applications Reducing development time

10 - 5

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Oracle WebCenter Components

Oracle JDeveloper

Composite Applications

Portals

WebCenter Spaces

Composer

WebCenter Framework

WebCenter Services

Application Development Framework Java Server Faces MDS

10 - 6

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Oracle WebCenter Components Overview


Framework Services Composer Spaces

Enhanced Next Gen Portal Framework Content Integration Application Integration

Enterprise Ready Social Computing Desktop Integration Multichannel interactions

Layered Customizations Community Spaces Resource Catalog: Social Networking Business Dictionary Personal Spaces Enterprise Markups

10 - 8

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

WebCenter Framework
Injects portal capabilities into ADF applications Content integration
Oracle JDeveloper

JCR 170 support Several content repositories

Composite Applications WebCenter Framework

Portals

WebCenter Spaces WebCenter Services

Composer

Portlets
Consumable portlets Portlet containers for JSR 168/PDK-Java JSF-Portlet Bridge Out-of-the-box portlets

Application Development Framework Java Server Faces MDS

Content Integration Portlet Run Time

Customizable Components Portlet Container

Run-time customization > see Composer

Resource Catalog Oracle JSF Portlet Bridge

10 - 9

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

WebCenter Services
A complete set of complementary services that enables you to embed Web 2.0 communication and collaboration services directly into an ADF application
Announcements Blogs
Discussions

Oracle JDeveloper

Composite Applications WebCenter Framework

Portals

WebCenter Spaces WebCenter Services

Documents

Events

Instant Messaging & Presence Mail

Composer

Links Notes

Lists

Application Development Framework Java Server Faces MDS

Oracle Oracle WebCenter WebCenter Analytics Ensemble Search Worklist

Recent Activities RSS Tags Wiki

10 - 10

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

WebCenter Services List of Services


Social Networking
Announcements Discussions Blog Instant Messaging Presence Wiki

Shared
Documents Events* Links Lists Tags

Personal Productivity
Mail Notes* Recent Activities RSS Search Worklist

10 - 11

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Oracle Composer
Run-time customization performed in the browser, in-place
Rich, intuitive user experience Drag-and-drop
Oracle JDeveloper

Page Personalization Page Customization

Typical operations:

Composite Applications WebCenter Framework

Portals

WebCenter Spaces WebCenter Services

Composer

Browse and add resources to pages Rearrange page layout Set page and component properties Wire components together

Application Development Framework Java Server Faces MDS


10 - 12

Changes stored in MDS Page creation API


Copyright 2010, Oracle and/or its affiliates. All rights reserved.

WebCenter Applications
Applications are built using functionality from:
WebCenter Framework WebCenter Services Oracle Composer

Types of applications include:


Composite applications Enterprise Portals WebCenter Spaces

Oracle JDeveloper

Composite Applications WebCenter Framework

Portals

WebCenter Spaces WebCenter Services

Composer

Application Development Framework Java Server Faces MDS

10 - 13

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

WebCenter Spaces
A prebuilt application that provides an online environment for social networking, communication, collaboration, and personal productivity Instant communities Team sites Portals

10 - 14

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

WebCenter Spaces

Personal Space
Users have secure, individual workspace or dashboard. It is highly personalizable with social feeds, email, tasks, tags, recent documents, and so on. Users create pages, add content, and customize views using Oracle Composer.

Group Spaces
Secure team sites and community collaboration Role-based views and access to information Completely customizable Easily embed ad hoc activities in a business process or application Users can share and reuse Group Spaces as templates.

Business Role Pages


Role-based communication with user communities Prebuilt templates that simplify linking pages and content to a specific enterprise role All users in a given role easily kept up-to-date with relevant information. Integrated with users Personal Space

10 - 15

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Agenda
WebCenter Component Overview Portlets Oracle Composer WebCenter and JDeveloper

10 - 16

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

What Is a Portlet?
A remote Web component that renders information in HTML format Portlets
Render dynamic content Provide their own user interface Allow customization and personalization Are reusable

10 - 17

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Anatomy of a Portlet
The portlet contributes the content, including its layout. The application controls the portlets chrome.
Minimize icon Title Header Actions icon

Border

Portlet content

Actions and modes menu

Maximize icon

10 - 18

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Portlet Modes
The portlets mode determines the content that it renders.
View mode

Edit (personalize) mode

About mode

10 - 19

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Customization and Personalization


Portlets are designed to be customized and personalized.
An administrator sets site defaults . Users personalize their own portal instances .

Edit Defaults (customize) mode

Edit (personalize) mode

10 - 20

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Consuming a Portlet: Overview


1. Register the producer, providing a URL endpoint for the portlet producer. 2. Drag the portlet to the page.
Server hosting the portlet producer

JDeveloper

10 - 21

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Registering a Portlet Producer

Select WSRP Producer Registration.

Enter endpoint URL, which you can copy from the producers test page.

Newly registered producer as a WSRP Producer connection

10 - 22

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Consuming a Portlet

Portlets in the producer

Design view of a portlet

Portlet properties

10 - 23

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Agenda
WebCenter Component Overview Portlets Oracle Composer WebCenter and JDeveloper

10 - 24

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Oracle Composer
Oracle Composer: Is a vertical component of WebCenter, that is, it provides customization for:
ADF Faces components WebCenter services WebCenter applications, including WebCenter Spaces

Uses MDS to store customization data


Oracle JDeveloper
Composite Applications WebCenter Framework Portals WebCenter Spaces WebCenter Services

Composer

Application Development Framework Java Server Faces MDS

10 - 25

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Run-Time Editing and Customization


Oracle ADF Faces: Provides the rendering engines Uses Metadata Services Oracle WebCenter: Adds customizable components Provides a run-time visual editor, Oracle Composer, that lets you:
Add and remove page components Change component properties Change the location of components Change the page layout

10 - 26

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Metadata Services (MDS)


Stores changes of ADF Faces pages
Separate XML documents Only the changes are stored Supports attribute modification and insert/remove/move/reparent of elements

Merges based on context when rendering a page


Deployed page becomes the base document. Modifications come from MDS.

Offers layered customization Provides a persistent store


File System Database Schema

10 - 27

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Layered Customization
Public User User X User 1 User2

Customization engine + + +

Base document

Site customization

User 1 personalization

User 2 personalization

Customization data in MDS

10 - 28

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Agenda
WebCenter Component Overview Portlets Oracle Composer WebCenter and JDeveloper

10 - 29

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Oracle Composer
Supports run-time customization right in a browser Is targeted at the business user
Drag-and-drop operation Rich, intuitive user experience

Enables you to:


Browse the Resource Catalog Add and remove resources on pages Rearrange page layout Set page and component properties Contextually wire components

Is extensible Provides a sandbox for testing the changes

10 - 30

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Using Customizable Components at Design Time


Oracle Composer uses the following ADF components: Content Container Hierarchy
Page Customizable Layout Customizable Panel Customizable Show Detail Frame

Mode switch
Change Mode Link Change Mode Button

Miscellaneous
Image Link Custom Action

10 - 31

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Adding Customizable Components at Run Time


Oracle Composer exposes three ADF components in the Resource Catalog:
ADF Component Component in the Resource Catalog

Panel Customizable Box Image Link Show Detail Frame Image Movable Box

10 - 32

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Adding Components
Resource Types: ADF Faces Components Task flows Portlets Definition Default catalog Custom catalog Multiple Resource Catalogs
Catalog Selector Catalog Filter

10 - 33

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Custom Resource Catalog: Overview


<catalogDefinition xmlns="http://xmlns.oracle.com/adf/rcs/catalog" id="catalogDefinition" > <contents> 1 <customFolder id="facesComponents" name="ADF Faces Components" factoryClass=".ComponentObjectFactory"/> 2 <folder id="elpijuTaskflows" 1 name="El Piju Custom Task Flows" > <contents> </contents> 2 </folder> 3 3 <customContent id="portletContent" contentProviderClass= ".WebCenterContentProvider"/> </contents> </catalogDefinition>
10 - 34 Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Custom Resource Catalog ADF Faces Components

<customFolder id="facesComponents name="ADF Faces Components" description="ADF Faces components you can add " factoryClass="oracle.adfinternal.view.page.editor. componentcatalog.adapter.ComponentObjectFactory"/>

Predefined set of ADF Faces Components

10 - 35

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Custom Resource Catalog 2 Custom Task Flows


<folder name="El Piju Custom Task Flows" id="elpijuTaskflows"> <contents> <resource id="clock" name="Analog clock" description="Display local (browser) time" repository="application.classpath" path="ElPijuTaskflows.jar/ADF_TaskFlow/ WEB-INF+Clock.xml#Clock"/> <resource /> </contents> </folder>

10 - 36

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Custom Resource Catalog Portlet Producers and Portlets

<customContent id="portletContent" contentProviderClass="oracle.adf.rc.webcenter. WebCenterContentProvider"/>

Automatically populated with all registered portlet producers

10 - 37

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Installing WebCenter Framework


An installable, Oracle Fusion Middleware product Can be installed from Help > Check for Updates Connects using an Oracle Web Account Requires restart

10 - 38

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

What Gets Installed


After the installation is complete, the following components are available: Access to External Applications and WebCenter Activities from the Resource Palette Ability to create portlet components

10 - 39

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

WebCenter Framework in JDeveloper

10 - 40

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Summary
In this lesson, you should have learned how to: Add WebCenter Services into the ADF application Add run-time customization to ADF pages Integrate ADF with Content Management systems Add portlets into an ADF page Expose ADF as portlets

10 - 41

Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Practice 10 Overview: Integrate with WebCenter


This practice covers the following topics: Installing the WebCenter extension and Schema Creating a WebCenter Application with a Customizable Page Adding Oracle Composer to the Page to Enable Customization Adding Oracle WebCenter Services to the Application

10 - 42

Copyright 2010, Oracle and/or its affiliates. All rights reserved.