You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@portals.apache.org by ta...@apache.org on 2009/05/15 08:44:55 UTC
svn commit: r775031 [7/21] - in /portals/site/jetspeed/jetspeed-2.1: ./
jetspeed-guide-admin/ jetspeed-guide-admin/src/
jetspeed-guide-admin/src/site/ jetspeed-guide-admin/src/site/resources/
jetspeed-guide-admin/src/site/resources/css/ jetspeed-guide-...
Added: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-components.xml
URL: http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-components.xml?rev=775031&view=auto
==============================================================================
--- portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-components.xml (added)
+++ portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-components.xml Fri May 15 06:44:44 2009
@@ -0,0 +1,246 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<document>
+ <properties>
+ <title>Guide to Jetspeed-2 Component Architecture</title>
+ <subtitle>Guide to Jetspeed-2 Component Architecture</subtitle>
+ <authors>
+ <person name="David Le Strat" email="dlestrat@apache.org" />
+ </authors>
+ </properties>
+ <body>
+ <section name="Guide to Jetspeed-2 Component Architecture">
+ <p>
+ The Jetspeed-2 architecture is build on a component architecture where as defined by
+ <a href="http://www.martinfowler.com/articles/injection.html">Martin Fowler</a>:
+ <pre>
+ By the term component, I mean a glob of software that's intended to be used,
+ without change, by application that is out of the control of the writers of
+ the component. By 'without change' I mean that the using application doesn't
+ change the source code of the components, although they may alter the component's
+ behavior by extending it in ways allowed by the component writers.</pre>
+ </p>
+ <p>
+ Jetspeed-2 uses dependency injection as a programming design pattern and architectural model
+ to establish a level of abstraction via a public interface, and to remove dependency on the components' implementation.
+ The architecture unites the components rather than the components linking themselves or being linked together.
+ Dependency injection is a pattern in which responsibility for object creation and object linking is removed
+ from the objects themselves and transferred to a factory.
+ Dependency injection therefore is obviously inverting the control for object creation and linking,
+ and can be seen to be a form of Inversion of Controls(IoC).
+ </p>
+ <subsection name="Jetspeed-2 and Component Frameworks">
+ <p>
+ Jetspeed-2 leverages the <a href="http://www.springframework.org">Spring Framework</a> as its default component framework.
+ However, Jetspeed-2 provides an architecture in which the component framework can easily be replaced by alternative
+ component frameworks such as <a href="http://www.picocontainer.org/">Pico</a>.
+ </p>
+ <p>
+ Jetspeed-2 component framework assembly is configured and implemented in <i>JetspeedServlet</i>:<br/><br/>
+ <img src="devguide/images/jetspeedservlet-c.gif" border="0"/>
+ </p>
+ <p>
+ The <code>JetspeedServlet</code> is configured in the portal application <i>web.xml</i> to load at startup. The <code>initializeComponentManager</code>
+ method loads the <a href="guide-portal-assembly.html">assembly</a> for the given component framework. The default implementation
+ of <code>initializeComponentManager</code> supports the <a href="http://www.springframework.com">spring framework</a> as a component framework
+ and assembles the xml files located under <code>WEB-INF/assembly</code> to initialize the spring engine. The <i>JetspeedEngine</i> is then
+ constructed with the proper component manager.
+ <source>
+ engine = new JetspeedEngine(properties, applicationRoot, config,
+ initializeComponentManager(config, applicationRoot, properties));
+ </source>
+ </p>
+ <p>
+ In order to support another component framework, developers should override the <code>initializeComponentManager</code> implementation.
+ </p>
+ </subsection>
+ <subsection name="Jetspeed-2 Core Components">
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 Capabilities - Artifact Id: jetspeed-capability</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-capability/index.html"><code>Capabilities</code></a></td>
+ <td>The <code>Capabilities</code> components maps clients to supported mime types and media types.
+ It creates a <code>CapabilityMap</code> that is used through the portal engine to render the
+ portal content for the targetted client.</td>
+ </tr>
+ </table><br/>
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 Component Manager - Artifact Id: jetspeed-cm</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-cm/index.html"><code>ComponentManager</code></a></td>
+ <td>The <code>ComponentManager</code> provides a generic layer of abstraction on top of the component framework
+ being used. The default <code>ComponentManager</code> implementation in Jetspeed-2 is the
+ <code>SpringComponentManager</code>. More information can be found in the
+ <a href="../multiproject/jetspeed-cm/index.html"><code>ComponentManager</code> documentation</a>.</td>
+ </tr>
+ </table><br/>
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 Deploy Tools - Artifact Id: jetspeed-deploy-tools</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-deploy-tools/deploy-tools.html"><code>JetspeedDeploy</code></a></td>
+ <td><code>JetspeedDeploy</code> prepares portlet applications prior to being deployed in Jetspeed-2. More information can be found in the
+ <a href="../multiproject/jetspeed-deploy-tools/deploy-tools.html"><code>JetspeedDeploy</code> documentation</a>.</td>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-deploy-tools/index.html"><code>DeploymentManager</code></a></td>
+ <td>The <code>DeploymentManager</code> listens for new portal assets (portlets, decorators) to be deployed. An overview of how deployment
+ works in Jetspeed-2 can be found <a href="../multiproject/jetspeed-deploy-tools/index.html">here</a>.</td>
+ </tr>
+ </table><br/>
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 Portal - Artifact Id: jetspeed-portal</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-portal/pipeline.html"><code>Pipeline</code></a></td>
+ <td>The <code>Pipeline</code> orchestrates the <code>Valve</code> that are performing atomic operation on a
+ Jetspeed-2 request.</td>
+ </tr>
+ </table><br/>
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 Preferences - Artifact Id: jetspeed-prefs</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-prefs/index.html"><code>PreferencesProvider</code></a></td>
+ <td>The <code>PreferencesProvider</code> exposes Jetspeed-2 implementation of the <code>java.util.Preferences</code> API.</td>
+ </tr>
+ </table><br/>
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 RDBMS - Artifact Id: jetspeed-rdbms</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-rdbms/index.html"><code>ConnectionRepositoryEntry</code></a></td>
+ <td>The <code>ConnectionRepositoryEntry</code> exposes Jetspeed-2 implementation of the <code>java.util.Preferences</code> API.</td>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-rdbms/dao.html"><code>InitablePersistenceBrokerDaoSupport</code></a></td>
+ <td><code>InitablePersistenceBrokerDaoSupport</code> provides data access and persistence support for Jetspeed-2.</td>
+ </tr>
+ </table><br/>
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 Security - Artifact Id: jetspeed-security</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-security/arch.html"><code>DefaultLoginModule</code></a><br/>
+ <a href="../multiproject/jetspeed-security/arch.html"><code>RdbmsPolicy</code></a><br/></td>
+ <td>Jetspeed-2 default implementation for <a href="http://java.sun.com/products/jaas/">JAAS services</a>. Jetspeed-2 leverages JAAS as
+ a generic security standard framework to expose security functionality to the portal engine. The JAAS services
+ leverage Jetspeed-2 coarsed grained services for which specific implementations are provided through Jetspeed-2 security SPI.</td>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-security/arch.html"><code>UserManager</code></a><br/>
+ <a href="../multiproject/jetspeed-security/arch.html"><code>RoleManager</code></a><br/>
+ <a href="../multiproject/jetspeed-security/arch.html"><code>GroupManager</code></a><br/>
+ <a href="../multiproject/jetspeed-security/arch.html"><code>PermissionManager</code></a></td>
+ <td>Coarsed grained security components exposing Jetspeed-2 security management APIs.</td>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-security/arch.html"><code>UserSecurityHandler</code></a><br/>
+ <a href="../multiproject/jetspeed-security/arch.html"><code>CredentialHandler</code></a><br/>
+ <a href="../multiproject/jetspeed-security/arch.html"><code>GroupSecurityHandler</code></a><br/>
+ <a href="../multiproject/jetspeed-security/arch.html"><code>RoleSecurityHandler</code></a><br/>
+ <a href="../multiproject/jetspeed-security/arch.html"><code>SecurityMappingHandler</code></a></td>
+ <td>Fined grained Jetspeed-2 security SPI components exposing a specific implementation to the Jetspeed-2
+ security engine. This mechanism provides a flexible framework for supporting multiple security implementation
+ without having to impact the higher level security services.</td>
+ </tr>
+ </table><br/>
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 Search - Artifact Id: jetspeed-search</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-search/index.html"><code>SearchEngine</code></a></td>
+ <td><code>SearchEngine</code> provides the integration with the <a href="http://lucene.apache.org/">Apache Lucene</a> search
+ engine.</td>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-search/index.html"><code>HandlerFactory</code></a></td>
+ <td>The <code>HandlerFactory</code> exposes the documents handlers to the <code>SearchEngine</code>.</td>
+ </tr>
+ </table><br/>
+ <table>
+ <tr>
+ <th colspan="2">Jetspeed-2 Statistics - Artifact Id: jetspeed-statistics</th>
+ </tr>
+ <tr>
+ <th>Component Name</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-statistics/index.html"><code>PortalStatistics</code></a></td>
+ <td><code>PortalStatistics</code> exposes the Jetspeed-2 data collection API for data collection and data
+ retrieval.</td>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-statistics/index.html"><code>BatchedStatistics</code></a></td>
+ <td><code>BatchedStatistics</code> is responsible for the batch collection of statistics data given
+ a time to flush period.</td>
+ </tr>
+ <tr>
+ <td><a href="../multiproject/jetspeed-statistics/aggregation.html"><code>AggregateStatistics</code></a><br/>
+ <a href="../multiproject/jetspeed-statistics/aggregation.html"><code>StatisticsQueryCriteria</code></a></td>
+ <td><code>AggregateStatistics</code> interacts with the <code>PortalStatistics</code> component to provide
+ aggregate portal data for a specific event and search criteria provided by <code>StatisticsQueryCriteria</code>.</td>
+ </tr>
+ </table>
+ </subsection>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-components.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-components.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-device-capabilities.xml
URL: http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-device-capabilities.xml?rev=775031&view=auto
==============================================================================
--- portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-device-capabilities.xml (added)
+++ portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-device-capabilities.xml Fri May 15 06:44:44 2009
@@ -0,0 +1,113 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<document>
+ <properties>
+ <title>Jetspeed 2 Device Capabilities</title>
+ <subtitle>Guide to Jetspeed Device Capabilities</subtitle>
+ <authors>
+ <person name="David Sean Taylor" email="taylor@apache.org" />
+ </authors>
+ </properties>
+ <body>
+ <section name="Device Capabilities">
+ <p>
+ Jetspeed capabilities provides a mechanism for mapping the client
+ (browser) used to access the portal to media types for page rendering.
+ </p>
+ <p>
+ A device is associated with a list of capabilities, allowing the portal
+ to know what kind of content the device can handle (such as
+ Javascript, DHTML..)
+ </p>
+ <p>
+ The rules for mapping devices to media types and capabilities are
+ stored in the database. The original values for these are first populated with
+ XML data.
+ </p>
+ <p>
+ Your custom build should be setup with the default XML data for
+ devices and media types. Currently there is no administrative portlets for editing device information.
+ </p>
+ <p>
+ A full set of capabilities, devices, media types and mime types are
+ supplied with the XML test data.
+ </p>
+ <p>
+ The Jetspeed-2 capability engine maps clients to media types to
+ mime types. Here are some more detailed definitions:
+ <ul>
+ <li>Clients: The application that initiates a request to the Jetspeed-2
+ portal engine. Jetspeed-2 uses the User-Agent to determine the
+ client that initiates a request.</li>
+ <li>Media Type: The type of media requesting the content (HTML,
+ WML, etc.). Content in Jetspeed-2 can be requested by different
+ type of devices through different media.</li>
+ <li>Mime Type: The type of content being requested.</li>
+ <li>Supported Media Types: HTML, XHTML-BASIC, XML, WML, VXML</li>
+ </ul>
+ </p>
+
+ <p>
+Define the default mime types
+<source><![CDATA[
+<MimeTypes>
+ <MimeType>application/xhtml+xml</MimeType>
+ <MimeType>text/html</MimeType>
+ <MimeType>text/vnd.wap.wml</MimeType>
+ <MimeType>text/vxml</MimeType>
+ <MimeType>text/xhtml</MimeType>
+ <MimeType>text/xml</MimeType>
+</MimeTypes>
+]]></source>
+ </p>
+
+ <p>
+Define media types (used in special _control folder processing) and preferred mime type:
+<source><![CDATA[
+<MediaType name="html">
+ <charcterSet value="UTF-8"/>
+ <title value="HTML"/>
+ <description value="Rich HTML for HTML 4.0 compliants browsers"/>
+ <capabilities></capabilities>
+ <mimeTypes>text/html</mimeTypes>
+</MediaType>
+]]></source>
+ </p>
+
+
+ <p>
+Defines supported Clients (browsers) by the portal and their device
+capabilities. Clients are mapped to media types via the preferred
+mime type
+<source><![CDATA[
+<Client name="ie5mac" evalOrder="1" preferredMimeTypeID="text/html">
+ <userAgentPattern value=".*MSIE 5.*Mac.*"/>
+ <version value="5.*"/>
+ <model value="None"/>
+ <manufacturer value="Microsoft"/>
+ <capabilities>
+ HTML_3_2,HTML_JAVA,HTML_JAVASCRIPT, HTML_TABLE,HTML_FORM,HTML_FRAME,HTML_IMAGE,HTML_PLUGIN,HTML_CSS1,HTML_DOM_NS4, HTTP_COOKIE
+ </capabilities>
+ <mimeTypes>text/html</mimeTypes>
+</Client>
+]]></source>
+ </p>
+
+ </section>
+ </body>
+</document>
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-device-capabilities.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-device-capabilities.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-federated-security.xml
URL: http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-federated-security.xml?rev=775031&view=auto
==============================================================================
--- portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-federated-security.xml (added)
+++ portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-federated-security.xml Fri May 15 06:44:44 2009
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<document>
+<properties>
+ <title>Guide to Federated Security</title>
+ <subtitle>Federated Security Configuration Overview</subtitle>
+ <authors>
+ <person name="David Sean Taylor" email="taylor@apache.org" />
+ </authors>
+</properties>
+<body>
+<section name="Configuring Jetspeed-2 Federated Security">
+<p>
+1. override web.xml in custom build
+2. edit web.xml
+ * remove security-constraints "Login"
+ * remove LoginProxy, LoginServlet, LoginError, LoginRedirector, ...
+ * remove servlet-mapping for above servlets
+</p>
+</section>
+</body>
+</document>
\ No newline at end of file
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-federated-security.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-federated-security.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-menus-declarative-psml.xml
URL: http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-menus-declarative-psml.xml?rev=775031&view=auto
==============================================================================
--- portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-menus-declarative-psml.xml (added)
+++ portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-menus-declarative-psml.xml Fri May 15 06:44:44 2009
@@ -0,0 +1,528 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<document>
+ <properties>
+ <title>Guide to Declarative Menus in PSML</title>
+ <subtitle>Guide to Declarative Menus in PSML</subtitle>
+ <authors>
+ <person name="Randy Watler" email="rwatler@apache.org"/>
+ </authors>
+ </properties>
+ <body>
+<section name="Declarative Menus">
+<p>
+Declarative menus are used to add new or customize default navigation elements in displayed portal pages.
+These PSML declarations are part of the <a href="../devguide/guide-psml.html#Page">page</a> and <a href="../devguide/guide-psml.html#Folder">folder</a> elements.
+As with other PSML elements, effective menu declarations available for a given page are those that are explicity
+defined in the page along with all defined in parent folders. For this reason, global site menus are defined in
+the PSML associated with the site root folder. Menu definitions in a specific page or folder override
+menus with the same name found in parent folders.
+</p>
+<p>
+Portal layout decorators access page menu declarations by name while rendering portal content. Menus are
+used to create dynamic navigation panes, portal page tabs, bread crumb links, and pull downs.
+The Portal Site Component is responsible for fleshing out the dynamic menu definition options with page specific PSML
+elements from the site. For instance, a global menu declaration would typically be involved in the following
+sequence of events while a portal page is being composed:
+<ol>
+ <li>The portal layout decorator would request a menu definition by name,</li>
+ <li>the definition would be inherited by the current page and located in the root folder PSML,</li>
+ <li>the Portal Site Component would interpret the menu definition in the context of the current page and populate <a href="../devguide/guide-psml.html#Page">page</a>, <a href="../devguide/guide-psml.html#Folder">folder</a>, and <a href="../devguide/guide-psml.html#Link">link</a> menu options,</li>
+ <li>the decorator would display the menu rendering titles and text from the menu definition itself and the computed menu options into portal navigation content.</li>
+</ol>
+</p>
+<p>
+There are default global menu declarations supported internally by the Portal Site Component that do not need to
+be explicitly defined in any page or folder PSML elements of the site:
+<ul>
+ <li><b>pages</b>: relative pages menu used to define the page tabs above the portal.</li>
+ <li><b>breadcrumbs</b>: paths to page used to provide history links below the page tabs.</li>
+ <li><b>navigations</b>: relative subfolders and root level links menu used to define the navigation pane beside the portal.</li>
+ <li><b>back</b>: parent folder menu used to define the single "back" link above the portal page tabs.</li>
+</ul>
+As one would expect, these built in menu definitions can be overridden by declaring menus in the site PSML with the same name.
+</p>
+<p>
+The remainder of this guide provides more information on specifying and using declarative menu definitions within Jetspeed2:
+<ul>
+ <li><a href="#Menu_Definition">Menu Definition</a></li>
+ <ul>
+ <li><a href="#Menu_Options_Definition">Options</a></li>
+ <li><a href="#Menu_Separator_Definition">Separator</a></li>
+ <li><a href="#Menu_Include_Definition">Include</a></li>
+ <li><a href="#Menu_Exclude_Definition">Exclude</a></li>
+ </ul>
+ <li><a href="#Page_Layout_Decorators">Page Layout Decorators</a></li>
+ <li><a href="#Portal_Site_Component">Portal Site Component</a></li>
+ <li><a href="../devguide/guide-psml-dtd.html#PSML_DTDs">PSML Document DTDs</a></li>
+</ul>
+</p>
+</section>
+
+<section name='Menu Definition'>
+<p>
+The <menu> element defines a menu to be used by the layout decorators or a nested menu within another menu.
+There are many valid attributes for the menu element:
+</p>
+<table>
+ <tr>
+ <th>Attribute</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>name</td>
+ <td>Identifies menu name for retrieval from template code and/or menu reference. This attribute is required for top level nodes and ignored for nested menus.</td>
+ </tr>
+ <tr>
+ <td>options</td>
+ <td>Specifies root document path for this menu if deep inclusion of documents and folders is specified by this menu. This attribute may also define document paths that specify page, folder, or link menu options. Paths specified in this attribute are <a href="#Portal_Site_Component">Page URIs</a>; these URIs may or may not directly reflect the folder and page hierarchy. The <a href="#Portal_Site_Component">Portal Site Component</a> maps these options paths to PSML folder and page elements. Multiple option paths can be specified as a comma separated list of paths and/or regular expression patterns. Relative paths are interpreted as relative to the current page. Special patterns, '~' or '@', can be used to reference the current page.</td>
+ </tr>
+ <tr>
+ <td>depth</td>
+ <td>Specifies deep inclusion of documents from option folders, (depth < 0 specifies infinite depth). Menu options are created to represent each visible page or link in the site; folders are converted into nested menus constrained by this setting.</td>
+ </tr>
+ <tr>
+ <td>paths</td>
+ <td>Boolean attribute to enable the "path" expansion of options: specified options are expanded to include paths from the root to the specified options. For example, if options is specified to be "/folder/page.psml", setting this attribute would result in the menu containing options for "/", "/folder", and "/folder/page.psml". This setting is typically used to generate "history" or "bread crumb" menus.</td>
+ </tr>
+ <tr>
+ <td>regexp</td>
+ <td>A boolean attribute the specifies whether wild card/regular expression processing be performed on options values. File system command line regular expression syntax is supported.</td>
+ </tr>
+ <tr>
+ <td>profile</td>
+ <td>Specified name of Profile Locator to be used when evaluating option values. This attribute also sets the default profile value for options and nested menus. Specifying '*' forces the acceptance of all Profile Locator names; this can be used to override parent menu selects a profile name.</td>
+ </tr>
+ <tr>
+ <td>order</td>
+ <td>Comma separated list of regexp patterns matched against list or regular expression document path values to determine order of matched options. This attribute will be applied as a default options value for any options elements, but is not used to reorder multiple options children matches. If not specified, multiple options are included in the order returned by the underlying folder document orderings. Option paths not matched by this attribute are appended after ordered matches.</td>
+ </tr>
+ <tr>
+ <td>skin</td>
+ <td>Optional decorator defined layout hint for the menu. This attribute is also used as the default skin value for options and nested menus. This hint is not currently used by Jetspeed2 decorators.</td>
+ </tr>
+</table>
+<p>
+The <menu> element contains a number of other menu definition PSML elements. With the exception of the title and metadata elements, the relative order of these elements determines the order that the layout decorators present them:
+</p>
+<table>
+ <tr>
+ <th>Element</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>title?</td>
+ <td>Simple element text specifies default locale-independent title for the menu. The title of the menu is considered its long description and is used as rollover text in some decorators if the short title is available for the menu text. If not specified, the name of the menu will be used.</td>
+ </tr>
+ <tr>
+ <td>short-title?</td>
+ <td>Simple element text specifies default locale-independent short title for the menu. The short title, if available, is used as menu text in some decorators. If not specified, the title text is used.</td>
+ </tr>
+ <tr>
+ <td><a href="../devguide/guide-psml.html#PSML_Titles_and_Metadata">metadata</a>*</td>
+ <td>Optionally specifies additional locale-specific titles and short titles.</td>
+ </tr>
+ <tr>
+ <td><a href="#Menu_Options_Definition">options</a>*</td>
+ <td>This ordered menu element specifies content elements for this menu definition.</td>
+ </tr>
+ <tr>
+ <td><a href="#Menu_Separator_Definition">separator</a>*</td>
+ <td>An ordered menu element used to specify text lines to be included inline in this menu definition.</td>
+ </tr>
+ <tr>
+ <td>menu*</td>
+ <td>Another ordered menu element used to define a nested menu contained in this menu definition.</td>
+ </tr>
+ <tr>
+ <td><a href="#Menu_Include_Definition">include</a>*</td>
+ <td>Specifies a menu to nest within or options from a another menu to be included in this menu definition. The name of the menu to include is the text of this ordered menu element.</td>
+ </tr>
+ <tr>
+ <td><a href="#Menu_Exclude_Definition">exclude</a>*</td>
+ <td>Specifies options and nested menus from another menu to be excluded from this menu definition. The name of the menu with elements to exclude is the text of this ordered menu element.</td>
+ </tr>
+</table>
+<p>Examples:</p>
+<source><![CDATA[
+<!-- simple menu composed of 2 pages -->
+<menu name="simple">
+ <options>/some-top-page.psml,/custom/some-other-page.psml</options>
+</menu>
+]]></source>
+<source><![CDATA[
+<!-- site menu for the top 2 levels: folders result in nested menus -->
+<menu name="top-2-levels" options="/" depth="2" skin="dhtml-pull-down"/>
+]]></source>
+<source><![CDATA[
+<!-- menu containing top level elements profiled by roles -->
+<menu name="top-role-pages" regexp="true" options="/*" profile="roles"/>
+]]></source>
+<source><![CDATA[
+<!-- contrived example demonstrating element syntax -->
+<menu name="top-custom">
+ <title>Top Menu</title>
+ <metadata name="title" xml:lang="fr">Haut</metadata>
+ <options regexp="true" profile="groups">/group-pages/*</options>
+ <menu options="/" profile="page">
+ <separator>
+ <text>-- Top Pages --</text>
+ <title>Top Pages</title>
+ </separator>
+ <options regexp="true">/*</options>
+ <separator>
+ <title>Custom Pages</title>
+ </separator>
+ <options depth="2">/custom-folder/</options>
+ </menu>
+ <exclude>top-role-pages</exclude>
+ <separator>More Top Pages</separator>
+ <include nest="true">top-role-pages</include>
+</menu>
+]]></source>
+<p>The definitions for the default global menu declarations supported internally by the Portal Site Component:</p>
+<source><![CDATA[
+<!-- standard pages tabs menu -->
+<menu name="pages" regexp="true" options="*.psml"/>
+]]></source>
+<source><![CDATA[
+<!-- standard history breadcrumbs menu -->
+<menu name="breadcrumbs" options="~" paths="true"/>
+]]></source>
+<source><![CDATA[
+<!-- standard navigations panel menu -->
+<menu name="navigations">
+ <separator>Folders</separator>
+ <options regexp="true">./*/</options>
+ <include>page-navigations</include>
+ <separator>Additional Links</separator>
+ <options regexp="true">/*.link</options>
+</menu>
+]]></source>
+<source><![CDATA[
+<!-- standard parent folder link menu -->
+<menu name="back" options="../"/>
+]]></source>
+<p>Note that the separator text of these definitions is localized internally.</p>
+</section>
+
+<section name='Menu Options Definition'>
+<p>
+The <options> element defines a single or multiple options within a <a href="#Menu_Definition">menu</a>. The text of this simple element specifies document paths that yield page, folder, or link menu options. Paths specified in this element are <a href="#Portal_Site_Component">Page URIs</a>; these URIs may or may not directly reflect the folder and page hierarchy. The <a href="#Portal_Site_Component">Portal Site Component</a> maps these options paths to PSML folder and page elements. Multiple option paths can be specified as a comma separated list of paths and/or regular expression patterns. Relative paths are interpreted as relative to the current page. Special patterns, '~' or '@', can be used to reference the current page. This element shares many attributes in common with the menu element:
+</p>
+<table>
+ <tr>
+ <th>Attribute</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>depth</td>
+ <td>Specifies deep inclusion of documents from option folders, (depth < 0 specifies infinite depth). Menu options are created to represent each visible page or link in the site; folders are converted into nested menus constrained by this setting.</td>
+ </tr>
+ <tr>
+ <td>paths</td>
+ <td>Boolean attribute to enable the "path" expansion of options: specified options are expanded to include paths from the root to the specified options. For example, if options is specified to be "/folder/page.psml", setting this attribute would result in the menu containing options for "/", "/folder", and "/folder/page.psml". This setting is typically used to generate "history" or "bread crumb" menus.</td>
+ </tr>
+ <tr>
+ <td>regexp</td>
+ <td>A boolean attribute the specifies whether wild card/regular expression processing be performed on options values. File system command line regular expression syntax is supported.</td>
+ </tr>
+ <tr>
+ <td>profile</td>
+ <td>Specified name of Profile Locator to be used when evaluating option values. This attribute also sets the default profile value for options and nested menus. Specifying '*' forces the acceptance of all Profile Locator names; this can be used to override parent menu selects a profile name.</td>
+ </tr>
+ <tr>
+ <td>order</td>
+ <td>Comma separated list of regexp patterns matched against list or regular expression document path values to determine order of matched options. This attribute will be applied as a default options value for any options elements, but is not used to reorder multiple options children matches. If not specified, multiple options are included in the order returned by the underlying folder document orderings. Option paths not matched by this attribute are appended after ordered matches.</td>
+ </tr>
+ <tr>
+ <td>skin</td>
+ <td>Optional decorator defined layout hint for the menu options. Skin attribute values from each page, folder, or link will be used to populate menu options if this hint is not specified here. Otherwise, the skin hint from the containing menu will be used. This hint is not currently used by Jetspeed2 decorators.</td>
+ </tr>
+</table>
+<p>Example:</p>
+<source><![CDATA[
+<menu>
+ ...
+ <options regexp="true" order="*.psml,*.link">/some-top-page.psml,/custom/some-other-page.psml,/*.link</options>
+ ...
+</menu>
+]]></source>
+</section>
+
+<section name='Menu Separator Definition'>
+<p>
+The <separator> element defines a separator to be included in a <a href="#Menu_Definition">menu</a>. The separator will be included only if <a href="#Menu_Options_Definition">options</a> or nested menus appear below this element within a menu definition. The text of the separator can be specified in the contained text of this element or in the text menu definition element.
+There is only one attribute accepted by the separator element:
+</p>
+<table>
+ <tr>
+ <th>Attribute</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>skin</td>
+ <td>Optional decorator defined layout hint for the menu separator. This hint is not currently used by Jetspeed2 decorators.</td>
+ </tr>
+</table>
+<p>
+The <separator> element contains a number of other menu definition PSML elements:
+</p>
+<table>
+ <tr>
+ <th>Element</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>title?</td>
+ <td>Simple element text specifies default locale-independent title for the separator. The title of the separator is considered its long description and is used as rollover text in some decorators if the separator text is available.</td>
+ </tr>
+ <tr>
+ <td>text?</td>
+ <td>Simple element text specifies default locale-independent text for the separator. The required separator text, whether specified by this attribute or as the contained text of the separator element, is the text to be inserted in the menu by the layout decorator.</td>
+ </tr>
+ <tr>
+ <td><a href="../devguide/guide-psml.html#PSML_Titles_and_Metadata">metadata</a>*</td>
+ <td>Optionally specifies additional locale-specific titles and separator text.</td>
+ </tr>
+</table>
+<p>Examples:</p>
+<source><![CDATA[
+<menu>
+ ...
+ <separator>-------------</separator>
+ ...
+ <separator>
+ <text>-- Top 10 Pages --</text>
+ <metadata name="text" xml:lang="fr">Haut Pages</metadata>
+ <title>Top 10 pages as voted by the Jetspeed2 users!</title>
+ </separator>
+ ...
+</menu>
+]]></source>
+</section>
+
+<section name='Menu Include Definition'>
+<p>
+The <include> element includes <a href="#Menu_Options_Definition">options</a> or nested <a href="#Menu_Definition">menus</a> from another menu. The name of the menu to include is specified as the text value of this element.
+There is only one valid attribute for the include element:
+</p>
+<table>
+ <tr>
+ <th>Attribute</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>nest</td>
+ <td>Boolean flag that controls whether the specified menu is to be nested. If this attribute is set to 'true', the included menu will be nested as a submenu; otherewise, all options and nested menus from the specified menu will be inserted inline into this menu.</td>
+ </tr>
+</table>
+<p>Examples:</p>
+<source><![CDATA[
+<menu>
+ ...
+ <include nest="true">navigations</include>
+ ...
+</menu>
+]]></source>
+</section>
+
+<section name='Menu Exclude Definition'>
+<p>
+The <exclude> element excludes <a href="#Menu_Options_Definition">options</a> or nested <a href="#Menu_Definition">menus</a> from another menu. This option is used primarily to remove menu options that already appear on the portal page in another menu from this menu. Matching options or menus will be excluded only if they appear above this element within a menu definition. The name of the menu to include is specified as the text value of this simple element.
+</p>
+<p>Examples:</p>
+<source><![CDATA[
+<menu>
+ ...
+ <exclude>pages</exclude>
+ ...
+</menu>
+]]></source>
+</section>
+
+<section name='Page Layout Decorators'>
+<p>
+The page layout decorators request menus from the Portal Site Component when the page is being rendered in the Jetspeed2 pipeline.
+The decorators expect certain menus to be provided by the PSML declarations. Before custom menus can be displayed in the portal,
+the decorators need to be modified to render the custom menu. Here is an example taken from a Velocity layout decorator header.vm file:
+</p>
+<source><![CDATA[
+...
+#set($pagesStandardMenu = $site.getMenu("pages"))
+#if(!$pagesStandardMenu.empty)
+ <div class="tabs">
+#includeTabsNavigation($pagesStandardMenu $LEFT_TO_RIGHT)
+ </div>
+#end
+...
+]]></source>
+<p>
+This code block renders the standard pages tabs menu within a portal page. The Portal Site Component is exposed as the <i>$site</i>
+Velocity context variable. The test for an empty menu definition is designed to ensure that empty menus are not rendered into the page
+content. Finally, a decorator macro is executed to expand the menu content. This approach is taken in general to support the rendering
+of nested menus with recursive invocations of the macro. In this case, the decorator is expecting only page options. Here is the
+macro implementation used to render the pages tabs menu:
+</p>
+<source><![CDATA[
+#macro (includeTabsNavigation $_menu $_orientation)
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ #foreach($element in $_menu.elements.iterator())
+ #if($element.elementType == "option")
+ #set($tabTitle = $element.getTitle($preferedLocale))
+ #set($tabName = $element.getShortTitle($preferedLocale))
+ #if($_orientation == $LEFT_TO_RIGHT)
+ #if($element.isSelected($site))
+ <td class="LTabLeft" nowrap="true"> </td>
+ <td class="LTab" align="center" valign="middle" nowrap="true" title="$!tabTitle">${tabName}</td>
+ <td class="LTabRight" nowrap="true"> </td>
+ #else
+ #set($tabUrl = $jetspeed.getAbsoluteUrl($element.url))
+ <td class="LTabLeftLow" nowrap="true"> </td>
+ <td class="LTabLow" align="center" valign="middle" nowrap="true" title="$!tabTitle"><a href="$tabUrl">${tabName}</a></td>
+ <td class="LTabRightLow" nowrap="true"> </td>
+ #end
+ #end
+ #end
+ #end
+ </tr>
+ </table>
+#end
+]]></source>
+<p>
+This macro iterates over the computed page menu options supplied by the Portal Site Component, rendering a series of table
+data HTML elements that make up each displayed tab. The whole menu is rendered as a HTML table with a single row.
+</p>
+<p>
+The declarative menu Portal Site Component objects exposed to the layout decorators are documented in the
+<a href="../multiproject/jetspeed-api/apidocs/index.html">Jetspeed API</a>. Here is a list of the primary interfaces
+that make up this interface:
+<ul>
+ <li><a href="../multiproject/jetspeed-api/apidocs/org/apache/jetspeed/portalsite/Menu.html">org.apache.jetspeed.portalsite.Menu</a></li>
+ <li><a href="../multiproject/jetspeed-api/apidocs/org/apache/jetspeed/portalsite/MenuElement.html">org.apache.jetspeed.portalsite.MenuElement</a></li>
+ <li><a href="../multiproject/jetspeed-api/apidocs/org/apache/jetspeed/portalsite/MenuOption.html">org.apache.jetspeed.portalsite.MenuOption</a></li>
+ <li><a href="../multiproject/jetspeed-api/apidocs/org/apache/jetspeed/portalsite/MenuSeparator.html">org.apache.jetspeed.portalsite.MenuSeparator</a></li>
+ <li><a href="../multiproject/jetspeed-api/apidocs/org/apache/jetspeed/portalsite/PortalSiteRequestContext.html">org.apache.jetspeed.portalsite.PortalSiteRequestContext</a></li>
+</ul>
+Please refer to the <a href="../multiproject/jetspeed-api/apidocs/index.html">javadocs</a> for these interfaces and
+sample Velocity decorators for more information.
+</p>
+<p>
+Jetspeed2 provides many sample decorators including those that will render tabs, navigation panes with nested submenus,
+history breadcrumb links, and even DHTML JSCookMenu nested pulldown menus... all from the declarative menu elements
+documented here.
+</p>
+</section>
+
+<section name='Portal Site Component'>
+<p>
+In conjunction with the <a href="../devguide/guide-profiler.html">Jetspeed Profiler Component</a>, the Portal Site Component
+performs two closely related functions:
+<ol>
+ <li>Map portal request URLs from a user to PSML <a href="../devguide/guide-psml.html#Page">page</a> or <a href="../devguide/guide-psml.html#Folder">folder</a> elements in the site, and</li>
+ <li>construct site navigational menus and their options that reflect what is available to the user from the site.</li>
+</ol>
+ At first glance, these functions seem relatively simple: searching within and traversing the <a href="../devguide/guide-psml.html">PSML site definition</a>.
+However, once the complexities of Profiler composition and <a href="guide-security-declarative-psml.html">Security Constraints</a>
+filtering are taken into account, the mapping is often not trivial.
+</p>
+<p>
+Menu definition options paths are specified as Page URIs to leverage this mapping functionality. A Page URI is essentially
+the tail portion of a portal request URL that is used to address a page or folder. Using Page URIs for options allows menu
+definitions to be shared by all users of the portal: the user specific profile and effective security constraints are applied
+to generate the menu options. This implies that the physical paths used internally within the Page Manager file system
+or database cannot be specified to directly address a specific PSML element.
+</p>
+<p>
+For example, suppose the following:
+<ul>
+ <li>the default "j2" profiling rules are in effect for the 'someone' user,</li>
+ <li>the following physical PSML site structure is available in the Page Manager,</li>
+ <ul>
+ <li>.../page0.psml</li>
+ <li>.../page1.psml</li>
+ <li>.../page2.psml</li>
+ <li>.../hidden-page0.psml</li>
+ <li>.../_user/someone/page0.psml</li>
+ </ul>
+ <li>security constraints denied access to '/page2.psml' for the user, and</li>
+ <li>'/hidden-page.psml' is declared hidden in the page PSML.</li>
+</ul>
+The current <a href="../devguide/guide-profiler.html">Profile Locator</a> for the user would specify that the Portal Site Component map the
+following portal request URLs to the specific PSML elements:
+<table>
+ <tr>
+ <th>Portal Request URL</th>
+ <th>PSML Element Selected</th>
+ </tr>
+ <tr>
+ <td>http://.../jetspeed/portal/page0.psml</td>
+ <td>.../_user/someone/page0.psml</td>
+ </tr>
+ <tr>
+ <td>http://.../jetspeed/portal/page1.psml</td>
+ <td>.../page0.psml</td>
+ </tr>
+ <tr>
+ <td>http://.../jetspeed/portal/page2.psml</td>
+ <td><b>Fails security test.</b></td>
+ </tr>
+ <tr>
+ <td>http://.../jetspeed/portal/hidden-page.psml</td>
+ <td>.../hidden-page.psml</td>
+ </tr>
+</table>
+The same Profile Locator is used to evaluate menu options. Here are several valid menu options paths and how they are resolved:
+<table>
+ <tr>
+ <th>Menu Options Page URIs</th>
+ <th>PSML Elements Included in Menu</th>
+ </tr>
+ <tr>
+ <td>/page0.psml</td>
+ <td>.../_user/someone/page0.psml</td>
+ </tr>
+ <tr>
+ <td>/page0.psml,/page1.psml</td>
+ <td>.../_user/someone/page0.psml,.../page1.psml</td>
+ </tr>
+ <tr>
+ <td>/*.psml</td>
+ <td>.../_user/someone/page0.psml,.../page1.psml</td>
+ </tr>
+ <tr>
+ <td>/*</td>
+ <td>.../_user/someone/page0.psml,.../page1.psml</td>
+ </tr>
+ <tr>
+ <td>/_user/someone/page0.psml</td>
+ <td><b>Not a valid Page URI.</b></td>
+ </tr>
+</table>
+Notes:
+<ul>
+ <li>Menu options attempting to use invalid Page URIs are ignored. Invalid URIs include those containing reserved folders such as '_user', '_role', etc. or other physical paths specific to the the Page Manager implementation.</li>
+ <li>Security constrained pages or folders cannot be referenced by requests and will not appear in menus.</li>
+ <li>Hidden pages and/or folders can be requested, but are not visible in menus. There is one exception for pages: a hidden page is considered visible if it is the request page.</li>
+</ul>
+</p>
+</section>
+
+</body>
+</document>
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-menus-declarative-psml.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-menus-declarative-psml.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-ntlm.xml
URL: http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-ntlm.xml?rev=775031&view=auto
==============================================================================
--- portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-ntlm.xml (added)
+++ portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-ntlm.xml Fri May 15 06:44:44 2009
@@ -0,0 +1,107 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<document>
+ <properties>
+ <title>Guide to using NTLM Authentication</title>
+ <subtitle>How to configure NTLM authentication with an optional fallback authentication method.</subtitle>
+ <authors>
+ <person name="Dennis Dam" email="d.dam@hippo.nl" />
+ </authors>
+ </properties>
+ <body>
+ <section name="NTLM Authentication in Jetspeed">
+ <p>
+ NTLM Authentication can be used for Single Sign On (SSO) from a Windows client/browser. A nice explanation about NTLM can be found <a href="http://jcifs.samba.org/src/docs/ntlmhttpauth.html">here</a>.
+ Jetspeed-2 supports NTLM Authentication based on the <a href="http://jcifs.samba.org">jCIFS</a> Servlet filter. With the approach described below
+ you can use NTLM Authentication with an optional fallback to the default active authentication and as such this solution can be used as a drop-in replacement.
+ A typical application for a fallback login method would be when users log on to an intranet from a different domain: these users can
+ be redirected to a login screen.<br/>
+ The solution below can also be used as a replacement for the default Security Valve:
+ if you don't configure the filters, then Jetspeed's default authorization will be applied.
+ </p>
+ </section>
+ <section name="Configuring NTLM Authentication">
+ <p>
+ Jetspeed-2 security configuration is explained
+ <a href="../devguide/guide-security.html">
+ here
+ </a>
+ .
+ </p>
+ <subsection name="Configuring NTLM servlet filters">
+ <p>
+ The first step is to configure jCIFS NTLM HTTP Authentication, which is explained <a href="http://jcifs.samba.org/">here</a>.
+ You configure jCIFS as a filter in the web.xml of your webapp. Next, you must configure
+ a second Jetspeed servlet filter, which must be placed right <i>after</i> the jCIFS filter. An example configuration:
+ </p>
+ <source><![CDATA[
+<filter>
+ <filter-name>NtlmHttpFilter</filter-name>
+ <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
+ <init-param>
+ <param-name>jcifs.smb.client.domain</param-name>
+ <param-value>SOME_DOMAIN</param-value>
+ </init-param>
+</filter>
+
+<filter>
+ <filter-name>NtlmHttpServletRequestFilter</filter-name>
+ <filter-class>org.apache.jetspeed.security.impl.ntlm.NtlmHttpServletRequestFilter</filter-class>
+ <init-param>
+ <param-name>org.apache.jetspeed.security.ntlm.ignoreUrls</param-name>
+ <param-value>/login/login</param-value>
+ </init-param>
+</filter>
+
+<filter-mapping>
+ <filter-name>NtlmHttpFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+</filter-mapping>
+
+<filter-mapping>
+ <filter-name>NtlmHttpServletRequestFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+</filter-mapping>]]></source>
+ </subsection>
+ <subsection name="Configuring NTLM Security Valve">
+ <p>
+ The above filters set the correct credentials on the request. To use these credentials, you
+ have to configure the <code>org.apache.jetspeed.security.impl.ntlm.NtlmSecurityValve</code> in the
+ Jetspeed pipelines you want to secure. This Valve can be used as a <i>replacement</i> for the default <code>SecurityValveImpl</code>. For explanation about how to set up pipelines, see
+ <a href="guide-pipelines.html">here</a>. An example of how to configure the NtlmSecurityValve bean:
+ </p>
+ <source>
+ <![CDATA[
+<bean id="securityValve" class="org.apache.jetspeed.security.impl.ntlm.NtlmSecurityValve" init-method="initialize">
+ <constructor-arg>
+ <ref bean="org.apache.jetspeed.security.UserManager" />
+ </constructor-arg>
+ <!-- Network domain. This value is optionally stripped from the authenticated user name -->
+ <constructor-arg><value>SOME_DOMAIN</value></constructor-arg>
+ <!-- Omit domain in user principal -->
+ <constructor-arg><value>true</value></constructor-arg>
+ <!--
+ NTLM Authorization required.
+ If set to true, only users authenticated by NTLM authentication will be authorized.
+ -->
+ <constructor-arg><value>false</value></constructor-arg>
+</bean>]]></source>
+ </subsection>
+ </section>
+ </body>
+</document>
\ No newline at end of file
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-ntlm.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-ntlm.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-pipelines.xml
URL: http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-pipelines.xml?rev=775031&view=auto
==============================================================================
--- portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-pipelines.xml (added)
+++ portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-pipelines.xml Fri May 15 06:44:44 2009
@@ -0,0 +1,239 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<document>
+ <properties>
+ <title>Jetspeed 2 Pipelines</title>
+ <subtitle>Guide to Jetspeed Pipelines</subtitle>
+ <authors>
+ <person name="David Sean Taylor" email="taylor@apache.org" />
+ </authors>
+ </properties>
+ <body>
+ <section name="Jetspeed Pipelines">
+ <p>
+ Pipelines are based on the inversion of control pattern.
+ The request processing pipeline is assembled to run in the Spring
+ container. A portal is largely driven by a request/response processing
+ data flow, much like the servlet or HTTP request/response paradigm.
+ Requests are made by client agents such as HTML or WAP browsers,
+ and the portal processes the request on the thread provided by the
+ application server for which Jetspeed is running. Request processing is
+ achieved in a workflow like pipeline, where valves are plugged into the
+ request pipeline. The workflow of the valves is configurable just like
+ any other Spring component. Pipelines reference (via Spring
+ constructor based dependency) one or more valves. Valves are also
+ Spring components.
+ </p>
+ <p>
+ Requests to the portal always come in via a Portal URL. Jetspeed has
+ URI entry points. The servlet context (/jetspeed) is also easily
+ configurable. Additionally, the request URL can be mapped to a portlet
+ pipeline. The default pipeline aggregates portlet pages. Portlet pages
+ are usually defined with the extension .PSML. If a page is not
+ supplied, default pages can be configured.
+ </p>
+ <subsection name='Pipeline Driven Processing'>
+ <p>
+ Requests to the portal always come in via a Portal URL. Jetspeed has
+ URI entry points. The servlet context (/jetspeed) is also easily
+ configurable. Additionally, the request URL can be mapped to a portlet
+ pipeline. The default pipeline aggregates portlet pages. Portlet pages
+ are usually defined with the extension .PSML. If a page is not
+ supplied, default pages can be configured.
+ </p>
+ <p>
+ <img src="images/pipeline-driven-processing.jpg" border="0"/><br/><br/>
+ </p>
+ </subsection>
+ <subsection name='Pipeline Architecture'>
+ <p>
+ In Jetspeed-2 requests are processed through a series
+ of Valve assembled together as a pipeline.
+ </p>
+ <p>
+ <img src="images/pipelines.jpg" border="1"/><br/><br/>
+ </p>
+ </subsection>
+ <subsection name='Pipeline Mappings'>
+ <p>
+ Pipelines mappings allow for prefixed mappings of /
+ context path + servlet path to be mapped to a
+ pipeline. For example:
+ </p>
+ <p>
+<source><![CDATA[
+/jetspeed/portal --> Jetspeed Pipeline
+/jetspeed/ajax --> Ajax Pipeline
+/jetspeed/portlet --> Portlet Pipeline
+/jetspeed/fileserver/file.pdf --> File Servlet Pipeline
+/jetspeed/fileserver.file.html --> File Servlet Pipeline
+/jetspeed/desktop --> Desktop Pipeline
+]]></source>
+ </p>
+ </subsection>
+ <subsection name='Pipeline Mapping Configuration'>
+ <p>
+ The Pipeline Mapping Configuration can be found in <strong><code>/WEB-INF/assembly/pipelines.xml</code></strong>.
+ </p>
+ <p>
+<source><![CDATA[
+ <bean id='pipeline-map'
+ class='java.util.HashMap'>
+ <constructor-arg>
+ <map>
+ <entry key='/portlet'>
+ <value>portlet-pipeline</value>
+ </entry>
+ <entry key='/portal'>
+ <value>jetspeed-pipeline</value>
+ </entry>
+ <entry key='/ajaxapi'>
+ <value>ajax-pipeline</value>
+ </entry>
+ <entry key='/login'>
+ <value>jetspeed-pipeline</value>
+ </entry>
+ <entry key='/fileserver'>
+ <value>fileserver-pipeline</value>
+ </entry>
+ <entry key='/ajax'>
+ <value>ajax-direct-pipeline</value>
+ </entry>
+ <entry key='/desktop'>
+ <value>desktop-pipeline</value>
+ <!-- for jetspeed desktop, the keys /desktop, /action and /render cannot be changed -->
+ <!-- without also editing src/webapp/javascript/jetspeed/common.js and these beans: -->
+ <!-- the JetspeedDesktop bean expects argument for /desktop (3rd arg in constructor) -->
+ <!-- the DesktopPluto bean expects arguments for /desktop, /action and /render -->
+ <!-- the DesktopPortalURL bean expects arguments for /render and /action -->
+ <!-- the desktopEncoderRedirectValve bean expects arguments for /desktop and /render -->
+ </entry>
+ <entry key='/action'>
+ <value>desktop-action-pipeline</value>
+ </entry>
+ <entry key='/render'>
+ <value>desktop-render-pipeline</value>
+ </entry>
+ <entry key='/configure'>
+ <value>configure-pipeline</value>
+ </entry>
+ <entry key='/dtconfigure'>
+ <value>dtconfigure-pipeline</value>
+ </entry>
+ <entry key='/healthcheck'>
+ <value>healthcheck-pipeline</value>
+ </entry>
+ </map>
+ </constructor-arg>
+ </bean>
+]]></source>
+ </p>
+ </subsection>
+ <subsection name='Pipeline Valves'>
+ <p>
+ Valves are units of work along the pipeline workflow. Typically valves
+ represent access to a Jetspeed feature or component, such as
+ aggregation, security, action processing, or device capabilities.
+ </p>
+ <p>
+ <img src="images/pipeline-valve.jpg" border="0"/><br/><br/>
+ </p>
+ <p>
+ The Jetspeed Pipeline has a request context associated with the entire
+ request pipeline. Using the Request Context API, valves can add or
+ retrieve bits of information to the pipeline request process.
+ </p>
+ <table>
+ <tr>
+ <th>Valve</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>Capabilities Valve</td>
+ <td>Identifies the Capability Map, character encoding, media and
+ Mime types for the browser to the Request Context, sets the
+ content type in the response.
+ </td>
+ </tr>
+ <tr>
+ <td>Portal URL Valve</td>
+ <td>Creates the internal Portal URL from the request URL and
+ parameters using the Navigational State component.
+ </td>
+ </tr>
+ <tr>
+ <td>Security Valve</td>
+ <td>Builds the Java Security subject for the request, and runs all
+ remaining valves for this request under a privileged action,
+ enabling Java Security checks against the default Jetspeed
+ (JAAS) security policy, or, if configured, another standard
+ JAAS policy.
+ </td>
+ </tr>
+ <tr>
+ <td>Localization Valve</td>
+ <td>Sets the Locale (java.util.Locale) into the request context for
+ Java standard internationalization support.
+ </td>
+ </tr>
+ <tr>
+ <td>Profiler Valve</td>
+ <td>Uses the Profiler, Site Manager, and Page Manager components
+ to locate the requested page and menu "site" navigations.
+ </td>
+ </tr>
+ <tr>
+ <td>Action Valve</td>
+ <td>Determines the targeted action window in the request, if
+ found, executes the action via the portlet container. This is
+ the standard âaction phaseâ, blocking all rendering. At
+ completion of the action phase, the action valve redirects
+ back to the portal to process the render phase.
+ </td>
+ </tr>
+ <tr>
+ <td>Decorator Valve</td>
+ <td>Builds the actions available on the page and all portlet windows.</td>
+ </tr>
+ <tr>
+ <td>Aggregator Valve</td>
+ <td>Executes the standard ârender phaseâ, where the actual
+ rendering of all portlets and page decorations occurs.
+ </td>
+ </tr>
+ <tr>
+ <td>Desktop Valve</td>
+ <td>Renders the skeleton of the Jetspeed Desktop. All desktop
+ portlet rendering is controlled on the client side, with
+ javascript and the portlet pipeline.
+ </td>
+ </tr>
+ <tr>
+ <td>Desktop Action Valve</td>
+ <td>Executes Jetspeed Desktop actions over the span of one
+ request. The client-side desktop controls the execution of
+ the action phase, and then the subsequent render phases,
+ achieving parallel processing from the client-side.
+ </td>
+ </tr>
+ </table><br/>
+ </subsection>
+
+ </section>
+ </body>
+</document>
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-pipelines.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-pipelines.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-profile.xml
URL: http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-profile.xml?rev=775031&view=auto
==============================================================================
--- portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-profile.xml (added)
+++ portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-profile.xml Fri May 15 06:44:44 2009
@@ -0,0 +1,226 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<document>
+ <properties>
+ <title>Profiler Configuration</title>
+ <subtitle>Profiler Configuration</subtitle>
+ <authors>
+ <person name="David Sean Taylor" email="taylor@apache.org"/>
+ </authors>
+ </properties>
+ <body>
+
+<section name="Profiler">
+
+ <p>
+ The Jetspeed Profiler is a portal resource location rule-based
+ engine. The profiler locates the following kinds of portal
+ resources:
+ <ul>
+ <li>PSML pages</li>
+ <li>Folders</li>
+ <li>Menus</li>
+ </ul>
+ </p>
+
+ <p>
+ When a request is received by the portal, the profiler will map the
+ request to a resource based on a normalized set of runtime
+ parameters and state such as request parameters, HTTP headers,
+ and session attributes. The Profiler is invoked during the Jetspeed
+ request processing pipeline in the profiler valve. This valve
+ requires that the request context is already populated with the
+ portal request and response, capabilities, language and user
+ information. The runtime parameters make up the profile criterion
+ which the profiler uses to locate portal resources. The profiler
+ works hand in hand with the Site and Page Manager components.
+ </p>
+
+ <subsection name="Profiler Rules and Rule Criteria">
+ <p>
+ A Profiling Rule defines a list of criteria used when evaluating a
+ request to determine the location of a specific resource. Profiling
+ rules are used by the profiler to generically locate portal resources
+ based on the decoupled criteria for known portlet request data. A
+ rule consists of an ordered list of criteria which should be applied in
+ a given order. Following this rule's order, the profiling engine applies
+ each criteria of the rules using a less-specific algorithm until the
+ least specific resource criterion is considered. When all criteria are
+ exhausted, the rule will fail and a fallback resource will be required.
+ </p>
+ <p>
+ Rule Criteria are templates for locating profile properties. Jetspeed has
+ a profiling policy based on resource-specific URLs, Mime-Types and
+ language preferences. More complex implementations will need to
+ use other inputs in mapping to resources such as Cookies, IP
+ Address Ranges, Statistical Resource Usage Analysis, Business
+ Rules inside of servlets or EJBs,...
+ </p>
+ </subsection>
+
+ <subsection name="Resolvers">
+ <p>
+ Resolvers are Java classes that try to match criteria to find resources. Jetspeed provides several resolvers 'out of the box'.
+ </p>
+ <p>
+ <table>
+ <tr>
+ <td>request</td>
+ <td>match request parameter</td>
+ </tr>
+ <tr>
+ <td>session</td>
+ <td>match session parameter</td>
+ </tr>
+ <tr>
+ <td>path</td>
+ <td>match the path portion of the URL to the PSML page</td>
+ </tr>
+ <tr>
+ <td>hard.coded</td>
+ <td>a hard-coded value, such as âdefault-page.psmlâ </td>
+ </tr>
+ <tr>
+ <td>user</td>
+ <td>match the name of the current authenticated user</td>
+ </tr>
+ <tr>
+ <td>mediatype</td>
+ <td>match the mediatype (HTML,XHTML..) </td>
+ </tr>
+ <tr>
+ <td>language</td>
+ <td>the browserâs preferred language</td>
+ </tr>
+ <tr>
+ <td>country</td>
+ <td>the browsers preferred country code</td>
+ </tr>
+ <tr>
+ <td>user.attribute</td>
+ <td>match a named user attribute (Portlet API) </td>
+ </tr>
+ <tr>
+ <td>user.agent</td>
+ <td>the name of the agent (browser) </td>
+ </tr>
+ <tr>
+ <td>hostname</td>
+ <td>match the hostname in the URL</td>
+ </tr>
+ <tr>
+ <td>navigation</td>
+ <td>directive: move algorithm to start search in new location</td>
+ </tr>
+ <tr>
+ <td>group.role.user</td>
+ <td>use fallback algorithm</td>
+ </tr>
+
+ </table>
+ </p>
+ </subsection>
+
+ <subsection name="PSML Pages">
+ <p>
+ The Profiler searches over a directory tree of
+ PSML pages trying to locate a PSML page to
+ be displayed. By default, this directory
+ structure is found under <strong><code>/WEB-INF/pages</code></strong>. The
+ âdirectoryâ can also be stored in the database.
+ There are several system directories known by
+ the profiler:
+ </p>
+ <p>
+ <table>
+ <tr>
+ <td>_user</td>
+ <td>Holds all user-specific pages.</td>
+ </tr>
+ <tr>
+ <td>_role</td>
+ <td>Holds all role-specific pages.</td>
+ </tr>
+ <tr>
+ <td>_group</td>
+ <td>Holds all group-specific pages.</td>>
+ </tr>
+ <tr>
+ <td>_subsite-root</td>
+ <td>Contains complete subsite trees, exactly like root tree.</td>
+ </tr>
+ </table>
+ </p>
+ <p>
+ <img src="images/psml-pages.jpg" border="0"/><br/><br/>
+ </p>
+ </subsection>
+
+ <subsection name="Common Profiler Rules Provided">
+ <p>
+ <table>
+ <tr>
+ <td>J1</td>
+ <td>Uses a most-specific to least-specific algorithm from Jetspeed-1 (Page-Path + User + Media Type + Language + Country)</td>
+ </tr>
+ <tr>
+ <td>J2</td>
+ <td>Default. Looks at the URL path combined with User + Media. (Page-Path + User + Media Type)</td>
+ </tr>
+ <tr>
+ <td>Role Fallback</td>
+ <td>Look for page in each role dir for the given user.</td>>
+ </tr>
+ <tr>
+ <td>User-Role Fallback</td>
+ <td>Look for page in userâs home dir, if not found, look in each role dir for the given user.</td>
+ </tr>
+ <tr>
+ <td>Variants</td>
+ <td>Path, Group Fallback, User-Role-Combo Fallback, Subsite-Roll Fallback.</td>
+ </tr>
+ </table>
+ </p>
+ </subsection>
+
+ <subsection name="Profiler Component Configuration">
+ <p>
+ The profiler.xml Spring configuration file configures the profiler component.
+ <table>
+ <tr>
+ <th>Constructor Argument</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>(0) JETSPEED-INF/ojb/profiler_repository.xml</td>
+ <td>Holds the OJB database to POJO mapper for marshalling profile information to and from the persistent store.</td>
+ </tr>
+ <tr>
+ <td>(1) j1</td>
+ <td>The default profiling rule. If a user does not have a profiling rule defined in the association table, this profiling rule is used.</td>
+ </tr>
+ <tr>
+ <td>(2) ProfileResolvers (ref bean)</td>
+ <td>The map of profiler resolver names to implementing resolver classes. New resolvers should be added to the ProfileResolver table.</td>
+ </tr>
+ </table>
+ </p>
+ </subsection>
+</section>
+</body>
+</document>
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-profile.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-profile.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-registry.xml
URL: http://svn.apache.org/viewvc/portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-registry.xml?rev=775031&view=auto
==============================================================================
--- portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-registry.xml (added)
+++ portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-registry.xml Fri May 15 06:44:44 2009
@@ -0,0 +1,189 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<document>
+ <properties>
+ <title>Jetspeed 2 Registry</title>
+ <subtitle>Guide to Jetspeed Registry</subtitle>
+ <authors>
+ <person name="David Sean Taylor" email="taylor@apache.org" />
+ </authors>
+ </properties>
+ <body>
+ <section name="Registry">
+ <p>
+ The Portlet Registry persists the entire contents of the portlet
+ deployment descriptors in the Jetspeed database:
+ <ul>
+ <li>portlet.xml</li>
+ <li>jetspeed-portlet.xml (Jetspeed-specific extensions)</li>
+ </ul>
+ When a portlet application is deployed, Jetspeed updates the
+ registry with the definitions defined in these portlet
+ descriptors including:
+ <ul>
+ <li>One Portlet Application definition</li>
+ <li>One or more portlet definitions</li>
+ <li>Supported User Attributes</li>
+ <li>Supported custom portlet modes and window states</li>
+ </ul>
+ </p>
+
+ <subsection name='portlet.xml'>
+ <p>The portlet.xml is the Portlet API descriptor for portlets. The entire contents of the file is indexed and stored
+ in the Jetspeed registry database. Typical content includes:</p>
+ <ul>
+ <li>Portlet Name, description, display name</li>
+ <li>Implementing class</li>
+ <li>Init Parameters</li>
+ <li>Supported Mime Types / Modes</li>
+ <li>Supported Locales</li>
+ <li>Resource Bundle Information / Localization (titles, keywords)</li>
+ <li>Default Portlet Preferences</li>
+ </ul>
+ <p>Refer to the Portlet Specification for more information on the portlet.xml.
+ </p>
+ </subsection>
+ <subsection name='jetspeed-portlet.xml'>
+ <p>
+ The jetspeed-portlet.xml is used for configuration of specific Jetspeed features not found in other
+ portals such as parallel rendering. The jetpeed-portlet.xml is made up of a set of elements extending the portlet application definition,
+ and then repeatable sections for each portlet (very much like the portlet.xml). Here is a look at an example portlet application
+ elements:
+ </p>
+
+<source><![CDATA[
+ <js:security-constraint-ref>admin</js:security-constraint-ref>
+
+ <dc:title>Jetspeed-2 Administration Portlets</dc:title>
+ <dc:title xml:lang="en">Jetspeed-2 Administration Portlets</dc:title>
+ <dc:creator>J2 Team</dc:creator>
+ <js:metadata name="pa-version">2.2</js:metadata>
+]]></source>
+ <p>Notice the <code>dc:</code> prefixed settings refer to a Dublin Core XML schema. The <code>js:metadata</code> tag provides the version number
+ of the portlet application. This is used by Jetspeed's <a href='config-cluster.html'>Versioned deployment</a> for clusters in
+ order to determine when a new version of the application WAR is ready for deployment.</p>
+ <p>Addtionally, a portlet application can be secured with the js:security-constraint-ref tag, referencing a security constraint.
+ <a href='../adminguide/constraints.html'>Security constraints</a> allow you to protect an entire portlet application securely.
+ For instance you may want to require the 'admin' role restricting edit mode on all portlets in this application. Or you may require the 'developer'
+ role to restrict users from viewing portlets in this application. Constraints secure access to portlets or applications.
+ </p>
+ <p>Portlets can also be further defined in the <code>jetspeed-security.xml</code> file. The <code>portlet-name</code> tag allows us to map back
+ to the main <code>portlet.xml</code> file, matching the portlet by name. Again, we have a js:security-constraint-ref tag. This time,
+ we are assigning a security constraint to just one portlet. This constraint overrides the portlet application wide security
+ constraint tag. We also have similar Dublin Core tags for extended metadata.
+ </p>
+<source><![CDATA[
+ <portlet>
+ <portlet-name>LoginPortlet</portlet-name>
+ <js:security-constraint-ref>public-view</js:security-constraint-ref>
+ <dc:title>Login Portlet</dc:title>
+ <dc:creator>J2 Team</dc:creator>
+ </portlet>
+]]></source>
+ <p>Another setting is a hint to the Jetspeed Customizer's Portlet Selector feature:</p>
+<source><![CDATA[
+ <js:metadata name="selector.conditional.role">admin</js:metadata>
+]]></source>
+<p>The js:metadata tag with the name attribute set to <code>selector.conditional.role</code> means that only users with the role named
+<code>admin</code> will be able to see this portlet in the portlet selector. All other users will not see this portlet in the selector.
+By setting the conditional role to <code>*</code>, you are telling Jetspeed that this portlet should never appear in the
+portlet selector.</p>
+<p>There is a global setting in the <a href='jetspeed-properties.html'>jetspeed.properties</a> file allowing you to merge servlet
+request parameters with portlet parameters. This is useful in Portlet 1.0 applications that need shared render parameters, or if you
+need to communicate with your portlet via the URL in some rare cases. This global feature is also available on a per portlet basis
+ with the <code>merge.portal.parameters.with.portlet.parameters</code> setting. The second line below, <code>merge.portal.parameters.before.portlet.parameters</code>
+ simply determines whether servlet parameters should be merged before or after portlet parameters</p>
+<source><![CDATA[
+ <js:metadata name="merge.portal.parameters.with.portlet.parameters">true</js:metadata>
+ <js:metadata name="merge.portal.parameters.before.portlet.parameters">true</js:metadata>
+]]></source>
+<p>
+When you have portlets in certain frameworks, they may submit actions when they should be submitting render navigations.
+If this is the case, we consider this non-standard action behavior. In this case, we do not want cached portlets to be required
+to refresh while navigating around the portlet. To handle this, we have the <code>nonStandardAction</code> setting.
+</p>
+<source><![CDATA[
+ <js:metadata name="nonStandardAction">true</js:metadata>
+]]></source>
+
+<p>Jetspeed allows you to define mapping window states in the jetspeed-portlet.xml. In the example below,
+we are mapping the window state named <code>popup</code> to an existing window state named <code>solo</code>.
+Note this setting is portlet application wide.</p>
+<source><![CDATA[
+ <custom-window-state>
+ <name>popup</name>
+ <mapped-name>solo</mapped-name>
+ </custom-window-state>
+]]></source>
+
+<p>Finally, for enabling <a href='guide-aggregation.html'>parallel rendering</a>, you can set the metadata attribute <code>timeout</code>.
+This value is in milliseconds. It serves two purposes: (1) the presence of it enables parallel rendering, and (2) the value determines how long Jetspeed will
+give this portlet to complete rendering before it times out and abandons rendering the portlet.</p>
+<source><![CDATA[
+ <js:metadata name="timeout">3000</js:metadata>
+]]></source>
+<p>Extended metadata can also be added to the portlets using Dublin Core.
+This metadata conforms to the <a href='http://dublincore.org/'>Dublin Core DCMI format</a>
+DCMI allows for extended metadata, including localized data for example:
+</p>
+<source><![CDATA[
+ <dc:title>Title 1</dc:title>
+ <dc:title xml:lang="en">Eng Title</dc:title>
+ <dc:title xml:lang="fr">Fr Title</dc:title>
+ <dc:subject xml:lang="sp">Spanish Subject</dc:subject>
+ <dc:creator>Default Jeremy Ford</dc:creator>
+ <dc:coverage>Default Coverage</dc:coverage>
+ <dc:contributor>Default Contributor</dc:contributor>
+ <dc:description>Default Description</dc:description>
+ <dc:format>Default Format</dc:format>
+ <dc:identifer>Default Identifier</dc:identifer>
+ <dc:language>Default Language</dc:language>
+ <dc:publisher>Default Publisher</dc:publisher>
+ <dc:relation>Default Relation</dc:relation>
+ <dc:right>Default Right</dc:right>
+ <dc:source>Default Source</dc:source>
+ <dc:type>Default Type</dc:type>
+]]></source>
+</subsection>
+<subsection name='Services'>
+<p>The jetspeed-portlet.xml is also used to define required Jetspeed services.
+If your portlet requires a <a href='guide-services.html'>Jetspeed service</a> it must reference the service by name in the descriptor, for example:
+</p>
+<source><![CDATA[
+ <js:services>
+ <js:service name='ApplicationServerManager'/>
+ <js:service name='DeploymentManager'/>
+ <js:service name='EntityAccessor'/>
+ <js:service name='GroupManager'/>
+ <js:service name='PageManager'/>
+ </js:services>
+]]></source>
+
+</subsection>
+ <subsection name="Registry Administration">
+ <p>
+ Jetspeed provides several Registry Administrative portlets:
+ <ul>
+ <li><a href='../adminguide/pam.html'>Portlet Application Manager</a></li>
+ <li><a href='../adminguide/palm.html'>Portlet Application Life Cycle Manager</a></li>
+ </ul>
+ </p>
+</subsection>
+</section>
+</body>
+</document>
\ No newline at end of file
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-registry.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/site/jetspeed/jetspeed-2.1/jetspeed-guide-deploy/src/site/xdoc/guide-registry.xml
------------------------------------------------------------------------------
svn:keywords = Id