Você está na página 1de 10

Oracle WebCenter Sites 11g for Developers

Student Guide

D78300GC10 Edition 1.0 August 2012 D78723

Author
Jenny Wongtangswad

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Disclaimer This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization of Oracle. The information contained in this document is subject to change without notice. If you find any problems in the document, please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not warranted to be error-free. Restricted Rights Notice If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS The U.S. Governments rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract. Trademark Notice Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

Technical Contributors and Reviewers


Deirdre Duffy Heike Hundt Lee Klement Michael Sullivan Patrice Palau

Editors
Malavika Jinka Vijayalakshmi Narasimhan

Graphic Designer
Rajiv Chandrabhanu

Publishers
Sumesh Koshy Jobi Varghese

Contents

Course Introduction Course Goals 1-2 Course Information 1-3 Classroom Setup 1-4 Course Overview Part I: Interface Development 1-5 Course Overview Part II: Template Development 1-6 Course Objectives 1-7 Documentation Guides 1-8 Introduction to Oracle WebCenter Sites 11g Objectives 2-2 WebCenter Sites from a Site Visitors Perspective 2 -3 Oracle WebCenter Sites 11g: n-Tiered Architecture 2-4 Oracle WebCenter Sites 11g: Product Architecture 2-5 Oracle WebCenter Sites 11g: Systems Architecture 2-6 Oracle WebCenter Sites 11g: Core Architecture 2-7 Content Management Systems 2-8 Users of a Content Management System 2-9 What Is WEM? 2-10 WebCenter Sites Terminology 2-11 Introduction to Part I: Interface Development 2-12 Quiz 2-13 Summary 2-16 Oracle WebCenter Sites 11g: User Interfaces Objectives 3-2 Oracle WebCenter Sites User Interfaces 3-3 Administration and Authorization: WEM Admin Interface 3-4 Administration and Design: Admin Interface 3-5 Content Management: Contributor Interface 3-6 Contributor Interface: Home View 3-7 Application Bar 3-8 Instructor Demonstration 3-9 Quiz 3-10 Summary: User Interfaces 3-14

iii

Course Implementation Objectives 4-2 Scenario 4-3 Types of Webpages 4-4 Site Navigation 4-5 Types of Content 4-7 Types of Users 4-9 Class Discussion: Translating Requirements into Design 4-10 Summary 4-12 Creating and Configuring a New CM Site Objectives 5-2 CM Sites and Websites 5-3 Content Management Sites 5-4 What Makes Up a CM Site? 5-5 User Authentication and Authorization 5-6 WebCenter Sites Roles 5-7 Authorize 5-8 Class Discussion 5-9 Practice 5-1 Overview: Creating a CM Site in WebCenter Sites 11g 5-10 Practice 5-2 Overview: Creating Users in the WEM Admin Interface 5-11 Practice 5-3 Overview: Creating and Assigning Roles 5-12 Quiz 5-13 Summary 5-15 Building the Content Model Objectives 6-2 What Is an Asset? 6-3 Terminology: Assets and Asset Types 6-4 Terminology: Asset Types 6-5 Terminology: Asset Definition 6-6 Terminology: Parent Assets 6-7 Terminology: Parent Definition 6-8 Asset Family Model 6-9 AviSports Store: The Product Asset Family 6-10 AviSports Store: The Product Asset 6-11 Practice 6-1 Overview: Working with Asset Families 6-12 Practice 6-2 Overview: Creating Product Assets 6-13 Practice 6-3 Overview: Sharing Assets Between Sites 6-14 Page Assets: Page Attributes and Page Definitions 6-15 iv

Page Assets: Managing Website Navigation with the Site Tree 6-16 Practice 6-4 Overview: Creating Page Assets 6-17 Types of Asset Relationships 6-18 Practice 6-5 Overview: Creating Asset Associations 6-20 Practice 6-6 Overview: Creating a Named Association 6-21 WebCenter Sites Core Asset Types 6-22 Content Containers 6-24 Practice 6-7 Overview: Creating a Recommendation Asset 6-26 Quiz 6-27 Summary 6-30 7 Administrating and Enhancing the Usability of Your Content Management Site Objectives 7-2 Site Administration and Enhancing Interface Usability 7-3 Tree Tabs 7-4 Practice 7-1 Overview: Working with Tree Tabs 7-6 Start Menu Items 7-7 Practice 7-2 Overview: Configuring Start Menu Items Based on Roles 7-9 Attribute Editors 7-10 Practice 7-3 Overview: Working with Attribute Editors 7-12 Class Discussion 7-13 Quiz 7-14 Summary 7-16 Configuring Dynamic Publishing Objectives 8-2 Overview 8-3 Publishing Methods 8-4 RealTime Publishing: Architecture 8-5 WebCenter Sites Publishing 8-6 Approval Process 8-7 Types of Asset Dependencies 8-8 Asset Dependencies: Example Scenario 8-9 Configuring Asset Dependencies 8-10 Asset Dependencies: Approving Assets for Publish 8-12 RealTime Publishing: Creating a New Destination 8-13 RealTime Publishing: Configuring Scheduled Publishes 8-14 RealTime Publishing: Approving Assets for Publish 8-15 RealTime Publishing: The Approved Assets Queue 8-16 RealTime Publishing: Monitoring the Publish Session 8-17 RealTime Publishing: Checklist for Setting Up a New CM Site 8-18 v

Practice 8-1 Overview: Configuring a Dynamic Publish Destination 8-19 Practice 8-2 Overview: Configuring the Site for the Destination Server 8-20 Practice 8-3 Overview: Approving and Publishing Content 8-21 Site Capture 8-22 Site Capture: Capture Modes 8-23 Quiz 8-24 Summary 8-29 9 Advanced Topics: Asset Data Modeling Objectives 9-2 Asset Model Design 9-3 Asset Data Modeling 9-4 Review: Asset Family Versus Asset Type 9-5 Basic Asset Model 9-6 Basic Asset Model: Asset Descriptor File (ADF) 9-7 Steps for Creating a New Basic Asset Type 9-10 Practice 9-1 Overview: Creating a Basic Asset 9-11 Flex Asset Model 9-12 Flex Asset Model: Steps for Creating a New Flex Asset Family 9-17 Flex Tables 9-18 Attribute Inheritance 9-20 Flex Filters 9-22 Practice 9-2 Overview: Creating a Filter Asset 9-24 Basic or Flex? 9-25 Quiz 9-26 Summary 9-31

10 Working with WebCenter Sites Tools and Utilities Objectives 10-2 WebCenter Sites Tools and Utilities 10-3 SitesExplorer 10-4 CatalogMover 10-5 Property Editor 10-6 Developers Tag Reference and Javadocs 10 -7 WebCenter Sites Developer Tools 10-8 WebCenter Sites Developer Tools: Getting Started 10-10 WSDT Terminology 10-11 WSDT: Wizards 10-12 WSDT Personal Development Environment 10-13 WSDT: Integration with VCS 10-14 Using WSDT with VCS 10-15 vi

WSDT: Capabilities 10-17 WSDT: Modules 10-18 WSDT: Limitations 10-19 Additional Resources 10-20 Practice 10-1 Overview: Importing Assets Using WSDT 10-21 Quiz 10-22 Summary 10-27 11 Programming with Oracle WebCenter Sites 11g Objectives 11-2 Terminology 11-3 Rendering Models and Patterns 11-4 Look at the Big Picture to Identify Patterns 11 -5 Template Design 11-6 Course Implementation: Template Design 11-7 Site Design Asset Types 11-8 Site Design Asset Types: Templates 11-9 Site Design Asset Types: CSElement Assets 11-18 Site Design Asset Types: SiteEntry Assets 11-20 A Simple WebCenter Sites JSP 11-22 Interface to Content Server (ICS) 11-23 WebCenter Sites Variables 11-24 Passing Variables Through a URL 11-25 Practice 11-1 Overview: Creating a Simple Template 11-26 WebCenter Sites Lists 11-27 WebCenter Sites Asset API 11-30 Quiz 11-32 Summary 11-35 12 Building Templates Objectives 12-2 Overview 12-3 Course Implementation: Review 12-4 Course Implementation: Template Design Review 12-5 Principles of CMS Templating 12-6 Building Templates and Elements for Your Course Implementation 12-7 Building WebCenter Sites Templates: Rendering the Product Detail Page 12-8 Building WebCenter Sites Templates: Rendering a Product Detail Page 12-9 Rendering a Product Detail Page: Calling to Templates and CSElements 12-10 Calling to Templates and CSElements: <render:calltemplate /> 12-11 Calling to Templates and CSElements: <render:satellitepage /> 12-12 vii

Calling to Templates and CSElements: <render:callelement /> 12-13 Practice 12-1 Overview: Creating Product Layout Template 12-14 Building WebCenter Sites Templates: Rendering a Product Detail Page 12-15 Rendering a Product Detail Page: Rendering Asset Data 12-16 Rendering Asset Data: Loading the Asset with <assetset:setasset /> 12-17 Rendering Asset Data: Retrieving Asset Data 12-18 Retrieving Asset Data: <assetset:getattributevalues /> 12-19 Retrieving Asset Data: <assetset:getmultiplevalues /> 12-20 Retrieving Asset Data: Manipulating WebCenter Sites Lists 12-22 Rendering the Asset Data 12-25 Practice 12-2 Overview: The Product Detail Template 12-26 Building WebCenter Sites Templates: Rendering a Product in Summary Format 12-27 Reading Attributes Using the Asset API 12-28 Practice 12-3 Overview: The Product Summary Template 12-29 Building Links 12-30 Practice 12-4 Overview: The Link Element 12-31 Building WebCenter Sites Templates: Rendering a Landing Page 12-32 Practice 12-5 Overview: The Page Layout Template 12-34 Building WebCenter Sites Templates: Rendering a Landing Page 12-35 Rendering the Home Page: The Page Detail Template 12-36 The Page Detail Template: Rendering the Banner Image 12-37 The Page Detail Template: Rendering an Associated Article 12-39 Rendering an Associated Article: <asset:children /> 12-40 Practice 12-6 Overview: The Page Detail Template 12-41 Practice 12-7 Overview: Rendering a Simple Article in Detail 12-42 Building WebCenter Sites Templates: Rendering a Landing Page 12-43 Rendering the Home Page: The Navigation Bar 12-44 Code Sample: Site Plan Tags 12-46 Practice 12-8 Overview: Building the Navigation Bar 12-47 Wrapper Elements 12-48 Search Examples 12-50 Conducting Searches: Searchstates 12-51 Rendering the Product Side Navigation 12-52 Conducting Searches: Searchstate Tags 12-53 Practice 12-9 Overview: Creating a Dynamic Search with Searchstates 12-54 Quiz 12-55 Summary 12-58

viii

13 Coding Templates for Web Mode Objectives 13-2 Overview 13-3 Requirements for In-Context Editing 13-4 Coding for In-Context Editing 13-5 Coding for In-Context Editing: String Values 13-6 Coding for In-Context Editing: Text Values 13-7 Coding for In-Context Editing: Date Fields 13-8 Practice 13.1 Overview: Coding for Editing in Web Mode 13-9 Presentation Editing in Web Mode 13-10 Presentation Editing in Web Mode: Template Selection 13-11 Presentation Editing in Web Mode: Webpage Layouts 13-12 Presentation Editing in Web Mode: Webpage Fragments 13-13 Instructor Demonstration: Changing Layouts in Web Mode 13-14 Pagelet Options 13-15 Coding for Presentation Editing: Changing Layouts for Pagelets 13-16 Combining Content and Presentation Editing 13-17 Context System Variable 13-18 Practice 13-2 Overview: Coding for Presentation Editing 13-19 Creating Content in Web Mode 13-20 Start Menu Items: New Insite 13-21 Practice 13-3 Overview: Creating Content in Web Mode 13-22 Quiz 13-23 Summary 13-26 14 Caching Objectives 14-2 Overview 14-3 WebCenter Sites 11g Resultset Caching 14-4 Page Caching: Architectural Overview 14-6 Page Caching: Under the Hood 14-9 Page Caching: Satellite Server 14-15 Page Caching: Remote Satellite Server 14-16 Cache Criteria 14-17 Compositional Dependencies 14-18 Embedded Pagelets 14-21 inCache: Overview 14-26 inCache: How it Works 14-27 inCache: Asset Caching 14-28 Quiz 14-29 Summary 14-34 ix

Você também pode gostar