然后下面就是本书的目录了。
Table of Contents
Preface 1
Chapter 1: Overview 7
The Site Design 8
Required Developer Skills 12
Basic Site Development 12
Sites Requiring Custom Content Types 13
Sites Requiring Custom Features 14
Bespoke Site Development 14
OpenCms Application Overview 14
The OpenCms Directory Structure 15
The Real File System Layout 15
The Virtual File System Layout 18
OpenCms Architecture 19
Extensibility through Modules 20
The OpenCms Web Request Process 20
OpenCms Web Application Packaging 21
Building a Complete Site with OpenCms 21
Summary 22
Chapter 2: Developing in OpenCms 23
Developing Basic Site Content 23
Setting Up an Environment for Creating JSP Code 24
Editing Files Using File Synchronization 26
Using WebDAV for Editing 28
Debugging JSP Code in OpenCms 30
Setting Up an Eclipse Environment to Build OpenCms 33
Tools Needed to Build OpenCms in Eclipse 33
Step 1: Checkout the Project Source from CVS 34
Step 2: Setting the Classpath for Compilation 40
Step 3: Using Ant to Build a Distribution Package 41
Building OpenCms outside of Eclipse Using Ant 44
Debugging OpenCms in Eclipse 45
Setting Up an Eclipse Environment without Building OpenCms 46
Summary 47
Chapter 3: Our First Module 49
Understanding OpenCms Modules 50
Common Module Types 50
Module Events 51
Exporting and Importing Modules 51
Creating a Module 52
Creating a BlogEntry Content Type 55
Registering the Content Type 59
Additional Schema Features 66
Field Mappings 66
Field Validations 67
Default Field Values 67
Localization 68
Content Relationships 68
Content Previewing 69
Creating Content Using a Model 70
User Interface Widgets 70
Nested Content Definitions 80
Editing Configuration Files with Validating Editors 84
Organizing the Content 87
Summary 87
Chapter 4: Developing Templates 89
Review of the Page Layout 89
Templates in OpenCms 94
Creating the Templates 94
The Homepage Template 95
The Blog Content Loop 97
The Sidebar and Footer 99
Common Code Elements 100
Header Code 101
Search Form 102
Advertisements 102
Blog Archives 103
RSS Client and RSS Feeds 105
Footer Section 106
The Supporting Java Bean Class 106
The Blog Template 112
The Content and Template Loading Process 113
Expressions in JSP Templates 115
Using the Tag Library from JSP 115
Combining Expressions with JSTL 116
Accelerating Template Development Using WebDAV 117
Install the Eclipse WebDAV Plug-in 118
Create a Site Within Eclipse for the Server 120
Import Content into the Project 122
Summary 124
Chapter 5: Adding Site Search 125
A Quick Overview of Lucene 125
Search Indexes 125
Search Queries 127
Configuring OpenCms Search 127
Field Configurations 128
Creating a Field Configuration 130
Creating an Index Source 133
Additional Search Settings 136
Introducing Luke – a Visual Index Tool 137
Writing the Search Code 140
A Simple Search Example 140
Subclassing the CmsSearch Bean 143
The Search.jsp Template 145
Summary 151
Chapter 6: Adding User Registration and Comment Support 153
Understanding OpenCms Security 153
User, Groups, Roles, and Permissions 154
Organizational Units 157
Setting up Security for Our Site 158
Organization Unit and Group Setup 159
Adding the Users 163
Resource Permissions 166
User Login and Registration Code 169
Adding Comment Support 178
Adding the Comments to the XML Content 181
Publishing the Comments 183
Summary 184
Chapter 7: Providing Site Customization Features 185
What is RSS? 185
Creating the Module 186
The RSS Client Code 187
Displaying the RSS Feed in the Template 189
Adding User Preferences to Accounts 190
Updating the Java Code 191
Updating the JSP Templates 193
Hooking up the Account Management Page 196
Summary 198
Chapter 8: Extending OpenCms: Developing a Custom Widget 199
Designing a Custom Widget 199
Designing the Widget 201
The Widget Code 202
Custom Source Interface and Implementations 207
Using OpenCms Message Strings for Localization 212
Registering the Widget with OpenCms 213
Summary 214
Chapter 9: Extending OpenCms: Adding RSS Feed Support 215
RSS Feed Design 215
The RSS Feed Content Type 218
Creating a Supporting Widget 223
The RSS Feed Template and Java Classes 226
Content Wrapper Java Classes 231
Wrapping It Up 236
Summary 238
Chapter 10: Extending OpenCms: Adding an Administration Point 239
Administrative Points 239
The Administration View 243
Hooking the Administration Point Up to the Module 245
The RSS Administration Module 246
Leveraging the OpenCms Dialog Classes 250
The Feed Manager Class 259
The New Channel Action 265
Summary 270
Index 271
Table of Contents
Preface 1
Chapter 1: Overview 7
The Site Design 8
Required Developer Skills 12
Basic Site Development 12
Sites Requiring Custom Content Types 13
Sites Requiring Custom Features 14
Bespoke Site Development 14
OpenCms Application Overview 14
The OpenCms Directory Structure 15
The Real File System Layout 15
The Virtual File System Layout 18
OpenCms Architecture 19
Extensibility through Modules 20
The OpenCms Web Request Process 20
OpenCms Web Application Packaging 21
Building a Complete Site with OpenCms 21
Summary 22
Chapter 2: Developing in OpenCms 23
Developing Basic Site Content 23
Setting Up an Environment for Creating JSP Code 24
Editing Files Using File Synchronization 26
Using WebDAV for Editing 28
Debugging JSP Code in OpenCms 30
Setting Up an Eclipse Environment to Build OpenCms 33
Tools Needed to Build OpenCms in Eclipse 33
Step 1: Checkout the Project Source from CVS 34
Step 2: Setting the Classpath for Compilation 40
Step 3: Using Ant to Build a Distribution Package 41
Building OpenCms outside of Eclipse Using Ant 44
Debugging OpenCms in Eclipse 45
Setting Up an Eclipse Environment without Building OpenCms 46
Summary 47
Chapter 3: Our First Module 49
Understanding OpenCms Modules 50
Common Module Types 50
Module Events 51
Exporting and Importing Modules 51
Creating a Module 52
Creating a BlogEntry Content Type 55
Registering the Content Type 59
Additional Schema Features 66
Field Mappings 66
Field Validations 67
Default Field Values 67
Localization 68
Content Relationships 68
Content Previewing 69
Creating Content Using a Model 70
User Interface Widgets 70
Nested Content Definitions 80
Editing Configuration Files with Validating Editors 84
Organizing the Content 87
Summary 87
Chapter 4: Developing Templates 89
Review of the Page Layout 89
Templates in OpenCms 94
Creating the Templates 94
The Homepage Template 95
The Blog Content Loop 97
The Sidebar and Footer 99
Common Code Elements 100
Header Code 101
Search Form 102
Advertisements 102
Blog Archives 103
RSS Client and RSS Feeds 105
Footer Section 106
The Supporting Java Bean Class 106
The Blog Template 112
The Content and Template Loading Process 113
Expressions in JSP Templates 115
Using the Tag Library from JSP 115
Combining Expressions with JSTL 116
Accelerating Template Development Using WebDAV 117
Install the Eclipse WebDAV Plug-in 118
Create a Site Within Eclipse for the Server 120
Import Content into the Project 122
Summary 124
Chapter 5: Adding Site Search 125
A Quick Overview of Lucene 125
Search Indexes 125
Search Queries 127
Configuring OpenCms Search 127
Field Configurations 128
Creating a Field Configuration 130
Creating an Index Source 133
Additional Search Settings 136
Introducing Luke – a Visual Index Tool 137
Writing the Search Code 140
A Simple Search Example 140
Subclassing the CmsSearch Bean 143
The Search.jsp Template 145
Summary 151
Chapter 6: Adding User Registration and Comment Support 153
Understanding OpenCms Security 153
User, Groups, Roles, and Permissions 154
Organizational Units 157
Setting up Security for Our Site 158
Organization Unit and Group Setup 159
Adding the Users 163
Resource Permissions 166
User Login and Registration Code 169
Adding Comment Support 178
Adding the Comments to the XML Content 181
Publishing the Comments 183
Summary 184
Chapter 7: Providing Site Customization Features 185
What is RSS? 185
Creating the Module 186
The RSS Client Code 187
Displaying the RSS Feed in the Template 189
Adding User Preferences to Accounts 190
Updating the Java Code 191
Updating the JSP Templates 193
Hooking up the Account Management Page 196
Summary 198
Chapter 8: Extending OpenCms: Developing a Custom Widget 199
Designing a Custom Widget 199
Designing the Widget 201
The Widget Code 202
Custom Source Interface and Implementations 207
Using OpenCms Message Strings for Localization 212
Registering the Widget with OpenCms 213
Summary 214
Chapter 9: Extending OpenCms: Adding RSS Feed Support 215
RSS Feed Design 215
The RSS Feed Content Type 218
Creating a Supporting Widget 223
The RSS Feed Template and Java Classes 226
Content Wrapper Java Classes 231
Wrapping It Up 236
Summary 238
Chapter 10: Extending OpenCms: Adding an Administration Point 239
Administrative Points 239
The Administration View 243
Hooking the Administration Point Up to the Module 245
The RSS Administration Module 246
Leveraging the OpenCms Dialog Classes 250
The Feed Manager Class 259
The New Channel Action 265
Summary 270
Index 271