![]() | |
Sun Java System Portal Server 6 2005Q1 Technical Reference Guide |
Chapter 41
Understanding the Sample PortalThis chapter contains the following sections:
OverviewConceptually, the Desktop is split into the following three well-defined components (see Figure 41-1 also):
This includes Provider Java classes (based on the Provider API), provider display profile definitions and resource bundles (also referred to as properties files), display profile definitions of channels referenced by base Desktop XML or base Desktop JSPs and templates, default templates and JSPs (installed in /etc/opt/SUNWps/desktop/default directory), and help files.
This includes organization level display profile definitions (such as themes and channel display profile definitions), templates and JSPs for the example Desktops in the sample portal (installed in /etc/opt/SUNWps/desktop/sampleportal directory), and user definition, Desktop display profile definitions, and templates and JSPs for the Authless user.
This includes the Provider Java classes for their component specific providers, provider display profile definitions for their component specific providers and provider resource bundles (properties files), display profile definition for channels referenced by component display profile XML or component templates and JSPs, default templates and JSPs, and help files.
The sample portal has a dependency on the base Desktop and other components and cannot be installed if the base Desktop and other components are not installed. The base Desktop and other components are installed as part of the Portal Server software.
Figure 41-1 Desktop Components
When you install the Portal Server software, you can choose to install the sample portal. The sample portal is an authentication-less (authless) desktop that consists of containers, channels, portlets, services, and templates which can be used to demonstrate what the Portal Server software is capable of. It includes five example Desktops that show the possibilities of the Portal Server software. In this way you can quickly get a feel for the kinds of containers that are possible to design.
Sample Portal Installation Directories
If you choose to install the sample portal, the installer locates the appropriate files in the following directories:
PortalServer-base/samples/desktop
This directory contains the following display profile documents:
/etc/opt/SUNWps/desktop/sampleportal
Contains the JSP, template, and other support files for the Portal Server software sample portal.
/etc/opt/SUNWps/desktop/anonymous
Contains the JSP, template, and other support files for the Portal Server software Desktop anonymous user.
Sample DesktopsTable 41-1 shows the five Desktops, which make up the sample portal. This two column table lists the containers (Desktops) in the first column and a brief description in the second column.
The sample portal can also serve as a place to start when building your own site’s portal. You can customize the containers and use the building-block providers, such as XMLProvider and JSPProvider, to add customized content. The sample portal also includes content providers, such as BookmarkProvider, that cannot be extended but that can be used to provide content.
If the existing building-block and content providers do not meet your needs, you can either extend an existing building-block provider (content providers are not public and hence not extendible), or develop custom building-block providers. If either of these methods do not suit your needs, you can develop a custom provider.