You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2005/09/01 11:10:38 UTC
svn commit: r265679 [6/12] - in /cocoon/blocks/portal-sample/trunk: ./
WEB-INF/ WEB-INF/xconf/ conf/ java/ java/org/ java/org/apache/
java/org/apache/cocoon/ java/org/apache/cocoon/portal/
java/org/apache/cocoon/portal/coplets/ java/org/apache/cocoon/p...
Added: cocoon/blocks/portal-sample/trunk/samples/profiles/copletdata/portal.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/profiles/copletdata/portal.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/profiles/copletdata/portal.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/profiles/copletdata/portal.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,555 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 1999-2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<coplets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <!--
+ + Different news coplets
+ + Read content from a file - for offline presentation
+ -->
+ <coplet-data id="Newsweek" name="standard">
+ <title>Newsweek</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/newsweek.rss</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="NYTBusiness" name="standard">
+ <title>NYT Business</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/nyt_business.rss</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="BBCNews" name="standard">
+ <title>BBC News</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/bbc_news.rss</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="CNET News" name="standard">
+ <title>CNET News</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/cnet_news.rss</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="CNET Business" name="standard">
+ <title>CNET Business News</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/cnet_business.rss</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="CSTNews" name="standard">
+ <title>Chicago Sunday Times</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/cst_news.rss</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="CNNEurope" name="standard">
+ <title>CNN Europe</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/cnn_europe.rss</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="ML Weblog" name="standard">
+ <title>ML's Weblog</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/ml_weblog.weblog-rss</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="Weblog" name="standard">
+ <title>Another Weblog</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/nn_weblog.weblog-rss</value>
+ </attribute>
+ </coplet-data>
+
+ <!--
+ + Different news coplets
+ + Try to read content from the internet.
+ + If the net is not available, use static file (for offline presentation)
+ -->
+ <coplet-data id="CZ Weblog" name="standard">
+ <title>CZ's Weblog</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/live.weblog-rss?feed=http://www.osoco.net/weblogs/rael/index.xml</value>
+ </attribute>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>error-uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/news/cz_weblog.weblog-rss</value>
+ </attribute>
+ </coplet-data>
+
+ <!--
+ + The portal introduction coplet
+ -->
+ <coplet-data id="Portal-Intro" name="standard">
+ <title>Introduction</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/docs/portal-intro.html</value>
+ </attribute>
+ <aspect>
+ <name>mandatory</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </aspect>
+ </coplet-data>
+ <coplet-data id="Portal-Demo" name="standard">
+ <title>Introduction</title>
+ <coplet-base-data>CachingURICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/docs/portal-demo.html</value>
+ </attribute>
+ <attribute>
+ <name>cache-global</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <aspect>
+ <name>mandatory</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </aspect>
+ </coplet-data>
+ <coplet-data id="Portal-Right" name="standard">
+ <title>Right</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/docs/portal-right.html</value>
+ </attribute>
+ <aspect>
+ <name>mandatory</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </aspect>
+ </coplet-data>
+ <coplet-data id="Portal-Left" name="standard">
+ <title>Left</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/docs/portal-left.html</value>
+ </attribute>
+ <aspect>
+ <name>mandatory</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </aspect>
+ </coplet-data>
+ <coplet-data id="Portal-Bottom" name="standard">
+ <title>Bottom</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/docs/portal-bottom.html</value>
+ </attribute>
+ <aspect>
+ <name>mandatory</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </aspect>
+ </coplet-data>
+
+ <!--
+ + The Gallery coplets
+ -->
+ <coplet-data id="Gallery" name="standard">
+ <title>Picture Gallery</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/gallery/browser</value>
+ </attribute>
+ <attribute>
+ <name>image-dir</name>
+ <value xsi:type="java:java.lang.String">samplepics</value>
+ </attribute>
+ <attribute>
+ <name>image-include</name>
+ <value xsi:type="java:java.lang.String">.jpg</value>
+ </attribute>
+ <attribute>
+ <name>image-uri-prefix</name>
+ <value xsi:type="java:java.lang.String">coplets/gallery/images</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="GalleryViewer" name="standard">
+ <title>Gallery Viewer</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/gallery/viewer</value>
+ </attribute>
+ </coplet-data>
+
+ <!--
+ + The login coplet
+ -->
+ <coplet-data id="Login" name="standard">
+ <title>Login</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/login/coplet</value>
+ </attribute>
+ <aspect>
+ <name>mandatory</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </aspect>
+ </coplet-data>
+
+ <!--
+ + The basket coplets
+ + The uri's for these coplets have to be absolut, so you have to use cocoon://!
+ -->
+ <coplet-data id="BasketContent" name="standard">
+ <title>Basket Item</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/content</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketAdmin" name="standard">
+ <title>Basket Administration</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/basket-admin</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="Basket" name="standard">
+ <title>Basket</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/basket</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="Basket.admin" name="standard">
+ <title>Basket</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/basket.admin</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketSampleStaticCoplet" name="standard">
+ <title>Static Coplet</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>group</name>
+ <value xsi:type="java:java.lang.String">document</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/staticcoplet.add.preflow</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketSampleCopletWithAttribute" name="standard">
+ <title>Coplet with Attribute</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>group</name>
+ <value xsi:type="java:java.lang.String">document</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/copletwithattr.add.preflow</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketSampleCopletWithInlineProcess" name="standard">
+ <title>Coplet with Inline Process</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>group</name>
+ <value xsi:type="java:java.lang.String">document</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/copletwithinline.add.preflow</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketSampleCopletWithInputProcess" name="standard">
+ <title>Coplet with Input Processing</title>
+ <coplet-base-data>CachingURICoplet</coplet-base-data>
+ <attribute>
+ <name>group</name>
+ <value xsi:type="java:java.lang.String">notepad</value>
+ </attribute>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>handleParameters</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/application</value>
+ </attribute>
+ <attribute>
+ <name>temporary:application-uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/copletwithinput.add.flow</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketSampleCopletWithInputProcessShow" name="standard">
+ <title>Show Input</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>group</name>
+ <value xsi:type="java:java.lang.String">notepad</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/copletwithinputshow.changeTitle.preflow</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketSampleCopletWithApp" name="standard">
+ <title>Coplet with Application</title>
+ <coplet-base-data>CachingURICoplet</coplet-base-data>
+ <attribute>
+ <name>group</name>
+ <value xsi:type="java:java.lang.String">request</value>
+ </attribute>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>handleParameters</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/application</value>
+ </attribute>
+ <attribute>
+ <name>temporary:application-uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/copletwithapp.add.flow</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketSampleCopletList" name="standard">
+ <title>Coplet List</title>
+ <coplet-base-data>CachingURICoplet</coplet-base-data>
+ <attribute>
+ <name>group</name>
+ <value xsi:type="java:java.lang.String">request</value>
+ </attribute>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>handleParameters</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/application</value>
+ </attribute>
+ <attribute>
+ <name>temporary:application-uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/copletlist</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="BasketSampleCopletWithUpload" name="standard">
+ <title>Coplet with Input Process</title>
+ <coplet-base-data>URICoplet</coplet-base-data>
+ <attribute>
+ <name>group</name>
+ <value xsi:type="java:java.lang.String">folder</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/basket/copletwithupload.add.preflow</value>
+ </attribute>
+ </coplet-data>
+
+
+ <!--
+ + JSR-168 portlets from the Pluto testsuite
+ -->
+ <coplet-data id="Portlet1" name="standard">
+ <title>Portlet-Test 1</title>
+ <coplet-base-data>Portlet</coplet-base-data>
+ <attribute>
+ <name>portlet</name>
+ <value xsi:type="java:java.lang.String">testsuite.TestPortlet1</value>
+ </attribute>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="Portlet2" name="standard">
+ <title>Portlet-Test 2</title>
+ <coplet-base-data>Portlet</coplet-base-data>
+ <attribute>
+ <name>portlet</name>
+ <value xsi:type="java:java.lang.String">testsuite.TestPortlet2</value>
+ </attribute>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="TestPortlet1" name="standard">
+ <title>Portlet-Test</title>
+ <coplet-base-data>Portlet</coplet-base-data>
+ <attribute>
+ <name>portlet</name>
+ <value xsi:type="java:java.lang.String">webapp.TestPortlet1</value>
+ </attribute>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="CocoonPortlet" name="standard">
+ <title>CocoonPortlet</title>
+ <coplet-base-data>Portlet</coplet-base-data>
+ <attribute>
+ <name>portlet</name>
+ <value xsi:type="java:java.lang.String">webapp.CocoonPortlet</value>
+ </attribute>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ </coplet-data>
+
+ <!--
+ + This is an application integration sample:
+ + - the flow based calculator
+ + - and a forms sample
+ -->
+ <coplet-data id="app-test-one" name="standard">
+ <title>Application Test</title>
+ <coplet-base-data>CachingURICoplet</coplet-base-data>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>handleParameters</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/html/application</value>
+ </attribute>
+ <attribute>
+ <name>temporary:application-uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/blocks/portal/coplets/samples/form</value>
+ </attribute>
+ </coplet-data>
+ <coplet-data id="app-test-two" name="standard">
+ <title>Application Test</title>
+ <coplet-base-data>CachingURICoplet</coplet-base-data>
+ <attribute>
+ <name>buffer</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>handleParameters</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/html/application</value>
+ </attribute>
+ <attribute>
+ <name>temporary:application-uri</name>
+ <value xsi:type="java:java.lang.String">cocoon://samples/flow/jxcalc/</value>
+ </attribute>
+ </coplet-data>
+
+ <!-- Example for the application coplet -->
+ <coplet-data id="Google" name="standard">
+ <title>Application</title>
+ <coplet-base-data>Application</coplet-base-data>
+ <attribute>
+ <name>uri</name>
+ <value xsi:type="java:java.lang.String">cocoon:/coplets/html/app-coplet</value>
+ </attribute>
+ <attribute>
+ <name>start-uri</name>
+ <value xsi:type="java:java.lang.String">http://www.google.com/index.html</value>
+ </attribute>
+ </coplet-data>
+
+ <!-- Example for the wsrp portlet -->
+ <coplet-data id="wsrp-calc-portlet" name="standard">
+ <title>WSRP-Calc-Portlet</title>
+ <coplet-base-data>WSRP</coplet-base-data>
+ <attribute>
+ <name>producer-id</name>
+ <value xsi:type="java:java.lang.String">prod_localhost_8081</value>
+ </attribute>
+ <attribute>
+ <name>portlet-handle</name>
+ <value xsi:type="java:java.lang.String">calc_1.1</value>
+ </attribute>
+ </coplet-data>
+
+ <coplet-data id="wsrp-test-portlet" name="standard">
+ <title>WSRP-Test-Portlet</title>
+ <coplet-base-data>WSRP</coplet-base-data>
+ <attribute>
+ <name>producer-id</name>
+ <value xsi:type="java:java.lang.String">prod_localhost_8081</value>
+ </attribute>
+ <attribute>
+ <name>portlet-handle</name>
+ <value xsi:type="java:java.lang.String">0.1</value>
+ </attribute>
+ <attribute>
+ <name>use-pipeline</name>
+ <value xsi:type="java:java.lang.Boolean">true</value>
+ </attribute>
+ </coplet-data>
+
+</coplets>
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/copletdata/portal.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/copletdata/portal.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal-user-anonymous.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal-user-anonymous.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal-user-anonymous.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal-user-anonymous.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 1999-2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<coplets>
+ <coplet-instance-data id="Portal-Intro-1" name="standard">
+ <coplet-data>Portal-Intro</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Portal-Right-1" name="standard">
+ <coplet-data>Portal-Right</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Portal-Left-1" name="standard">
+ <coplet-data>Portal-Left</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Portal-Bottom-1" name="standard">
+ <coplet-data>Portal-Bottom</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Login-1" name="standard">
+ <coplet-data>Login</coplet-data>
+ </coplet-instance-data>
+</coplets>
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal-user-anonymous.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal-user-anonymous.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 1999-2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<coplets>
+ <coplet-instance-data id="Newsweek-1" name="standard">
+ <coplet-data>Newsweek</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="NYTBusiness-1" name="standard">
+ <coplet-data>NYTBusiness</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="BBCNews-1" name="standard">
+ <coplet-data>BBCNews</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="CNET News-1" name="standard">
+ <coplet-data>CNET News</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="CNET Business-1" name="standard">
+ <coplet-data>CNET Business</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="CSTNews-1" name="standard">
+ <coplet-data>CSTNews</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="CNNEurope-1" name="standard">
+ <coplet-data>CNNEurope</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="ML Weblog-1" name="standard">
+ <coplet-data>ML Weblog</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="CZ Weblog-1" name="standard">
+ <coplet-data>CZ Weblog</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="Weblog-1" name="standard">
+ <coplet-data>Weblog</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="Portal-Intro-1" name="standard">
+ <coplet-data>Portal-Intro</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Portal-Right-1" name="standard">
+ <coplet-data>Portal-Right</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Portal-Left-1" name="standard">
+ <coplet-data>Portal-Left</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Portal-Bottom-1" name="standard">
+ <coplet-data>Portal-Bottom</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Portal-Demo-1" name="standard">
+ <coplet-data>Portal-Demo</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="Gallery-Petstore" name="standard">
+ <coplet-data>Gallery</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="GalleryViewer-1" name="standard">
+ <coplet-data>GalleryViewer</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="Login-1" name="standard">
+ <coplet-data>Login</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="Portlet-1" name="standard">
+ <coplet-data>Portlet1</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="Portlet-2" name="standard">
+ <coplet-data>Portlet2</coplet-data>
+ </coplet-instance-data>
+
+ <!-- This is the basket sample
+ -->
+ <coplet-instance-data id="basket" name="standard">
+ <coplet-data>Basket</coplet-data>
+ <attribute> <!-- which kinds are enabled for this user: briefcase, basker, folder? -->
+ <name>basket:enabled-storages</name>
+ <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">briefcase,basket,folder</value>
+ </attribute>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="basket-document" name="standard">
+ <coplet-data>Basket</coplet-data>
+ <attribute>
+ <name>type</name>
+ <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">document</value>
+ </attribute>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-request" name="standard">
+ <coplet-data>Basket</coplet-data>
+ <attribute>
+ <name>type</name>
+ <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">request</value>
+ </attribute>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-result" name="standard">
+ <coplet-data>Basket</coplet-data>
+ <attribute>
+ <name>type</name>
+ <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">result</value>
+ </attribute>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-notepad" name="standard">
+ <coplet-data>Basket</coplet-data>
+ <attribute>
+ <name>type</name>
+ <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">notepad</value>
+ </attribute>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-folder" name="standard">
+ <coplet-data>Basket</coplet-data>
+ <attribute>
+ <name>type</name>
+ <value xsi:type="java:java.lang.String" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">folder</value>
+ </attribute>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="Basket.admin" name="standard">
+ <coplet-data>Basket.admin</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-content" name="standard">
+ <coplet-data>BasketContent</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="BasketAdmin" name="standard">
+ <coplet-data>BasketAdmin</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-sample-1" name="standard">
+ <coplet-data>BasketSampleStaticCoplet</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-sample-2" name="standard">
+ <coplet-data>BasketSampleCopletWithAttribute</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-sample-3" name="standard">
+ <coplet-data>BasketSampleCopletWithInlineProcess</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-sample-4" name="standard">
+ <coplet-data>BasketSampleCopletWithInputProcess</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-sample-5" name="standard">
+ <coplet-data>BasketSampleCopletWithApp</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-sample-6" name="standard">
+ <coplet-data>BasketSampleCopletWithUpload</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-sample-7" name="standard">
+ <coplet-data>BasketSampleCopletWithInputProcessShow</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="basket-sample-8" name="standard">
+ <coplet-data>BasketSampleCopletList</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="TestPortlet-1" name="standard">
+ <coplet-data>TestPortlet1</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="CocoonPortlet" name="standard">
+ <coplet-data>CocoonPortlet</coplet-data>
+ </coplet-instance-data>
+
+ <coplet-instance-data id="app-test-1" name="standard">
+ <coplet-data>app-test-one</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="app-test-2" name="standard">
+ <coplet-data>app-test-one</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="app-test-3" name="standard">
+ <coplet-data>app-test-two</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="app-test-4" name="standard">
+ <coplet-data>app-test-two</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="Google-1" name="standard">
+ <coplet-data>Google</coplet-data>
+ </coplet-instance-data>
+
+ <!-- wsrp example -->
+ <coplet-instance-data id="WSRP-Calc-1" name="standard">
+ <coplet-data>wsrp-calc-portlet</coplet-data>
+ </coplet-instance-data>
+ <coplet-instance-data id="WSRP-Test-1" name="standard">
+ <coplet-data>wsrp-test-portlet</coplet-data>
+ </coplet-instance-data>
+
+</coplets>
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal-user-anonymous.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal-user-anonymous.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal-user-anonymous.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal-user-anonymous.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 1999-2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<composite-layout name="row">
+ <item>
+ <composite-layout name="column">
+ <item>
+ <parameter name="width" value="60%"/>
+ <coplet-layout name="coplet" layout-renderer-name="borderless-window">
+ <coplet-instance-data>Portal-Intro-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <parameter name="width" value="40%"/>
+ <coplet-layout name="coplet" layout-renderer-name="nowindow">
+ <coplet-instance-data>Login-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ <item>
+ <parameter name="height" value="500"/>
+ <composite-layout name="column">
+ <item>
+ <parameter name="width" value="25%"/>
+ <coplet-layout name="coplet" layout-renderer-name="borderless-window">
+ <coplet-instance-data>Portal-Left-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <parameter name="width" value="75%"/>
+ <coplet-layout name="coplet" layout-renderer-name="borderless-window">
+ <coplet-instance-data>Portal-Right-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ <item>
+ <parameter name="height" value="500"/>
+ <coplet-layout name="coplet" layout-renderer-name="borderless-window">
+ <coplet-instance-data>Portal-Bottom-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+</composite-layout>
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal-user-anonymous.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal-user-anonymous.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,414 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<composite-layout name="tab" id="maintab">
+
+ <named-item name="Main">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>Portal-Demo-1</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+
+ <named-item name="News">
+ <composite-layout name="column">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#225599" />
+ <item>
+ <parameter name="width" value="50%" />
+ <composite-layout name="row">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#AACCFF" />
+ <item>
+ <coplet-layout name="coplet">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#AA0000" />
+ <coplet-instance-data>Newsweek-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet">
+ <parameter name="border" value="0"/>
+ <parameter name="border-color" value="#AA0000" />
+ <coplet-instance-data>NYTBusiness-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ <item>
+ <parameter name="width" value="25%" />
+ <composite-layout name="row">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#AACCFF" />
+ <item>
+ <coplet-layout name="coplet">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#AA0000" />
+ <coplet-instance-data>BBCNews-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <composite-layout name="column">
+ <item>
+ <frame-layout name="frame" id="a">
+ <source>cocoon:/coplets/news/nyt_sport.rss</source>
+ </frame-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#AA0000" />
+ <coplet-instance-data>CNET News-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ </composite-layout>
+ </item>
+ <item>
+ <parameter name="width" value="25%" />
+ <composite-layout name="row">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#AACCFF" />
+ <item>
+ <parameter name="bgcolor" value="#CCCCCC" />
+ <coplet-layout name="coplet">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#AA0000" />
+ <coplet-instance-data>CSTNews-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet">
+ <parameter name="border" value="0" />
+ <parameter name="border-color" value="#AA0000" />
+ <coplet-instance-data>CNNEurope-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+
+ <named-item name="Weblogs">
+ <composite-layout name="column">
+ <item>
+ <composite-layout name="row">
+ <item>
+ <parameter name="width" value="20%" />
+ <coplet-layout name="coplet">
+ <coplet-instance-data>CZ Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <parameter name="width" value="80%" />
+ <coplet-layout name="coplet">
+ <coplet-instance-data>ML Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ <item>
+ <composite-layout name="row">
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+
+ <named-item name="TabDemo1">
+ <composite-layout name="tab">
+ <named-item name="One">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>CZ Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Two">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>ML Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Three">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ </composite-layout>
+ </named-item>
+
+ <named-item name="TabDemo2">
+ <composite-layout name="linktab">
+ <named-item name="One">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>CZ Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Two">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>ML Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Three">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>Weblog-1</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ </composite-layout>
+ </named-item>
+
+ <named-item name="Gallery">
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>Gallery-Petstore</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>GalleryViewer-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+
+ <named-item name="JSR-168">
+ <composite-layout name="row">
+ <item>
+ <coplet-layout name="coplet" layout-renderer-name="portlet-window">
+ <coplet-instance-data>TestPortlet-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet" layout-renderer-name="portlet-window">
+ <coplet-instance-data>CocoonPortlet</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet" layout-renderer-name="portlet-window">
+ <coplet-instance-data>Portlet-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet" layout-renderer-name="portlet-window">
+ <coplet-instance-data>Portlet-2</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+
+ <named-item name="WSRP">
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet" layout-renderer-name="wsrp-window">
+ <coplet-instance-data>WSRP-Calc-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet" layout-renderer-name="wsrp-window">
+ <coplet-instance-data>WSRP-Test-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+
+ <named-item name="Basket">
+ <!-- This is the basket demo. Usually you would only have the user
+ tab for users and the admin tab for the admin and not both at
+ the same time (But this is a demo...) -->
+ <composite-layout name="tab" id="baskettab">
+ <named-item name="List">
+ <composite-layout name="row">
+ <item>
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-sample-8</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+ <named-item name="Input">
+ <composite-layout name="row">
+ <item>
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-sample-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet" >
+ <coplet-instance-data>basket-sample-2</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ <item>
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-sample-3</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet" >
+ <coplet-instance-data>basket-sample-4</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ <item>
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-sample-5</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-sample-6</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+ <named-item name="Content">
+ <composite-layout name="row">
+ <item>
+ <composite-layout name="tab">
+ <named-item name="All">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Document">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-document</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Request">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-request</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Result">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-result</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Notepad">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-notepad</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ <named-item name="Folder">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-folder</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+ </composite-layout>
+ </item>
+ <item>
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet" id="basket-content">
+ <coplet-instance-data>basket-content</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>basket-sample-7</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+ <named-item name="Admin">
+ <composite-layout name="column">
+ <item>
+ <coplet-layout name="coplet" >
+ <coplet-instance-data>BasketAdmin</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet">
+ <coplet-instance-data>Basket.admin</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <coplet-layout name="coplet" id="basket-content-admin">
+ <coplet-instance-data>basket-content</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+ </composite-layout>
+ </named-item>
+
+ <named-item name="Apps">
+ <composite-layout name="row">
+ <item>
+ <composite-layout name="column">
+ <item>
+ <parameter name="width" value="50%" />
+ <coplet-layout name="coplet" >
+ <coplet-instance-data>app-test-1</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <parameter name="width" value="50%" />
+ <coplet-layout name="coplet" >
+ <coplet-instance-data>app-test-2</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ <item>
+ <composite-layout name="column">
+ <item>
+ <parameter name="width" value="50%" />
+ <coplet-layout name="coplet" >
+ <coplet-instance-data>app-test-3</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ <item>
+ <parameter name="width" value="50%" />
+ <coplet-layout name="coplet" >
+ <coplet-instance-data>app-test-4</coplet-instance-data>
+ </coplet-layout>
+ </item>
+ </composite-layout>
+ </item>
+ </composite-layout>
+ </named-item>
+ <named-item name="AppCoplet">
+ <coplet-layout name="coplet">
+ <coplet-instance-data>Google-1</coplet-instance-data>
+ </coplet-layout>
+ </named-item>
+</composite-layout>
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/profiles/wsrp-config.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/profiles/wsrp-config.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/profiles/wsrp-config.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/profiles/wsrp-config.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- @version $Id$ -->
+<wsrp-config>
+ <producers>
+ <producer id="prod_localhost_8081">
+ <markup-interface-url>http://localhost:8081/wsrp/wsrp4j/WSRPBaseService</markup-interface-url>
+ <service-description-interface-url>http://localhost:8081/wsrp/wsrp4j/WSRPServiceDescriptionService</service-description-interface-url>
+ <registration-interface-url>http://localhost:8081/wsrp/wsrp4j/WSRPRegistrationService</registration-interface-url>
+ <portlet-management-interface-url>http://localhost:8081/wsrp/wsrp4j/WSRPPortletManagementService</portlet-management-interface-url>
+ <name>WSRP4j</name>
+ <description>This is the test producer from the WSRP4J project.</description>
+ </producer>
+ </producers>
+</wsrp-config>
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/wsrp-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/profiles/wsrp-config.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/resources/bookmarks.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/resources/bookmarks.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/resources/bookmarks.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/resources/bookmarks.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<bookmarks>
+<events>
+ <event type="jxpath" id="showtab">
+ <targettype>layout</targettype>
+ <targetid>maintab</targetid>
+ <path>aspectDatas/tab</path>
+ </event>
+</events>
+</bookmarks>
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/bookmarks.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/bookmarks.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/resources/logged-in.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/resources/logged-in.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/resources/logged-in.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/resources/logged-in.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed 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.
+-->
+
+<!-- $Id$
+
+-->
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
+ <tr align="center">
+ <td>
+ <font face="Arial, Helvetica, sans-serif" size="2"><b>
+ <p>
+ <center>You are already logged in.</center>
+ </p>
+ <p>
+ <center>
+ Please <a target="_top" href="logout">log out first</a>
+ </center>
+ </p>
+ <p><center> or </center></p>
+ <p>
+ <center>
+ <a target="_top" href="portal">use your current login.</a>
+ </center>
+ </p>
+ </b></font>
+ </td>
+ </tr>
+</tbody></table>
+
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/logged-in.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/logged-in.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/resources/login-error.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/resources/login-error.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/resources/login-error.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/resources/login-error.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed 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.
+-->
+
+<!-- $Id$
+
+-->
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
+ <tr align="center">
+ <td>
+ <br/>
+ <font face="Arial, Helvetica, sans-serif" size="2">
+ <b>The Login was not successful.</b>
+ </font>
+ <br/><br/>
+ <font face="Arial, Helvetica, sans-serif" size="2">
+ <a href="login" target="_top"><b>Please try it again.</b></a>
+ </font>
+ </td>
+ </tr>
+</tbody></table>
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/login-error.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/login-error.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/resources/login.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/resources/login.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/resources/login.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/resources/login.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+
+<!-- $Id$
+ Description: The login form for the portal
+
+-->
+
+<content>
+ <form>
+ <url>auth</url>
+ <field name="name" type="text" length="24" description="User"/>
+ <field name="password" type="password" length="24" description="Password"/>
+ </form>
+</content>
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/login.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/login.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/resources/save-user-profile.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/resources/save-user-profile.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/resources/save-user-profile.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/resources/save-user-profile.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+
+<!-- $Id$
+ Description: This resource save the user profile to a file.
+
+-->
+
+<user xmlns:source="http://apache.org/cocoon/source/1.0" xmlns:session="http://apache.org/cocoon/session/1.0">
+ <source:insert>
+ <source:source><session:getxml context="request" path="/parameter/profile"/>/<session:getxml context="request" path="/parameter/portal"/>-user-<session:getxml context="request" path="/parameter/user"/>.xml</source:source>
+ <source:path>/</source:path>
+ <source:fragment><session:getxml context="request" path="/parameter/content"/></source:fragment>
+ <source:replace>*</source:replace>
+ </source:insert>
+</user>
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/save-user-profile.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/save-user-profile.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/resources/sunrise-user.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/resources/sunrise-user.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/resources/sunrise-user.xml (added)
+++ cocoon/blocks/portal-sample/trunk/samples/resources/sunrise-user.xml Thu Sep 1 02:08:10 2005
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed 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.
+-->
+
+<!-- $Id$
+ Description: All portal users
+
+-->
+
+<authentication>
+ <users>
+ <user>
+ <name>cocoon</name>
+ <password>cocoon</password>
+ <role>admin</role>
+ </user>
+ <user>
+ <name>guest</name>
+ <password>guest</password>
+ <role>guest</role>
+ </user>
+ <user>
+ <name>anonymous</name>
+ <password>anonymous</password>
+ <role>guest</role>
+ </user>
+ </users>
+</authentication>
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/sunrise-user.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/resources/sunrise-user.xml
------------------------------------------------------------------------------
svn:keywords = Id
Added: cocoon/blocks/portal-sample/trunk/samples/sitemap-auth.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/samples/sitemap-auth.xmap?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/samples/sitemap-auth.xmap (added)
+++ cocoon/blocks/portal-sample/trunk/samples/sitemap-auth.xmap Thu Sep 1 02:08:10 2005
@@ -0,0 +1,381 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2005 The Apache Software Foundation
+
+ Licensed 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.
+-->
+<!-- SVN $Id$ -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <!-- ========================= Components ================================ -->
+
+ <map:components>
+ <map:generators default="file">
+ <map:generator name="portal" src="org.apache.cocoon.portal.generation.PortalGenerator"/>
+ </map:generators>
+ <map:transformers default="xslt">
+ <map:transformer name="portal-coplet"
+ src="org.apache.cocoon.portal.transformation.CopletTransformer"
+ logger="sitemap.transformer.portal" />
+ <map:transformer name="htmlroot" src="org.apache.cocoon.portal.transformation.HTMLRootTransformer"
+ logger="sitemap.transformer.htmlroot" />
+ <map:transformer name="rss" src="org.apache.cocoon.portal.transformation.RSSTransformer"
+ logger="sitemap.transformer.rss" />
+ <map:transformer name="portal-proxy" src="org.apache.cocoon.portal.transformation.ProxyTransformer"
+ logger="sitemap.transformer.portal.proxy">
+ <parameter name="envelope-tag" value="div"/>
+ </map:transformer>
+ <map:transformer name="portal-new-eventlink" src="org.apache.cocoon.portal.transformation.NewEventLinkTransformer"
+ logger="sitemap.transformer.portal.eventlink" />
+ <map:transformer name="portal-html-eventlink" src="org.apache.cocoon.portal.transformation.HTMLEventLinkTransformer"
+ logger="sitemap.transformer.portal.eventlink.html"/>
+ <map:transformer name="portal-html-linktoeventlink" src="org.apache.cocoon.portal.transformation.LinkTransformer"
+ logger="sitemap.transformer.portal.eventlink" />
+ </map:transformers>
+ <map:readers default="resource">
+ <map:reader name="portal-proxy" src="org.apache.cocoon.portal.reading.ProxyReader"
+ logger="sitemap.reader.portal.proxy" />
+ </map:readers>
+ <map:serializers default="html">
+ <map:serializer name="html-include"
+ logger="sitemap.serializer.html"
+ mime-type="text/html"
+ pool-max="32"
+ src="org.apache.cocoon.portal.serialization.IncludingHTMLSerializer">
+ <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
+ <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
+ </map:serializer>
+ </map:serializers>
+ <map:matchers default="wildcard"/>
+ <map:selectors default="browser"/>
+ <map:actions>
+ <map:action name="portal-login"
+ src="org.apache.cocoon.portal.acting.LoginAction"/>
+ <map:action name="portal-logout"
+ src="org.apache.cocoon.portal.acting.LogoutAction"/>
+ <map:action name="portal-set-object-model"
+ src="org.apache.cocoon.acting.SetterAction"/>
+ <map:action name="portal-set-data"
+ src="org.apache.cocoon.portal.acting.CopletSetDataAction"/>
+ <map:action name="portal-save-profile"
+ src="org.apache.cocoon.portal.acting.SaveAction"/>
+ <map:action src="org.apache.cocoon.portal.acting.BookmarkAction" name="portal-bookmark">
+ <parameter name="src" value="resources/bookmarks.xml"/>
+ </map:action>
+ <map:action name="portal-prepare"
+ src="org.apache.cocoon.portal.acting.PreparePortalAction"/>
+ <map:action name="portal-urlhelper"
+ src="org.apache.cocoon.portal.acting.URLAction"/>
+ </map:actions>
+ </map:components>
+
+ <!-- =========================== Views =================================== -->
+
+ <map:views>
+ <map:view name="content" from-label="content">
+ <map:serialize type="xml"/>
+ </map:view>
+ </map:views>
+
+
+ <!-- =========================== Pipelines ================================= -->
+
+ <map:pipelines>
+
+ <map:component-configurations>
+ <authentication-manager>
+ <handlers>
+ <handler name="portal-handler">
+ <redirect-to uri="cocoon:/login"/>
+ <authentication uri="cocoon:raw:/sunrise-authuser"/>
+ <applications>
+ <application loadondemand="true" name="portal">
+ <configuration name="portal">
+ <profiles>
+ <copletbasedata-load uri="cocoon:raw:/load-global-profile?profile=copletbasedata"/>
+ <copletdata-global-load uri="cocoon:raw:/load-global-profile?profile=copletdata"/>
+ <copletdata-role-load uri="cocoon:raw:/load-role-profile?profile=copletdata"/>
+ <copletdata-user-load uri="cocoon:raw:/load-user-profile?profile=copletdata"/>
+ <copletinstancedata-global-load uri="cocoon:raw:/load-global-profile?profile=copletinstancedata"/>
+ <copletinstancedata-role-load uri="cocoon:raw:/load-role-profile?profile=copletinstancedata"/>
+ <copletinstancedata-user-load uri="cocoon:raw:/load-user-profile?profile=copletinstancedata"/>
+ <copletinstancedata-user-save uri="cocoon:raw:/save-user-profile?profile=copletinstancedata"/>
+ <layout-global-load uri="cocoon:raw:/load-global-profile?profile=layout"/>
+ <layout-role-load uri="cocoon:raw:/load-role-profile?profile=layout"/>
+ <layout-user-load uri="cocoon:raw:/load-user-profile?profile=layout"/>
+ <layout-user-save uri="cocoon:raw:/save-user-profile?profile=layout"/>
+ </profiles>
+ </configuration>
+ </application>
+ </applications>
+ </handler>
+ </handlers>
+ </authentication-manager>
+
+ <!-- select skin to use -->
+ <map:global-variables>
+ <skin>common</skin>
+ <mainTitle>Cocoon Portal</mainTitle>
+ <toolsTitle>Cocoon Portal Tools</toolsTitle>
+ </map:global-variables>
+
+ </map:component-configurations>
+
+ <map:pipeline>
+ <!-- This action sets the portal name for the current request and
+ initializes the portal service. So this should be the first
+ task for every request!
+ -->
+ <map:act type="portal-prepare">
+ <map:parameter name="portal-name" value="portal"/>
+ </map:act>
+ </map:pipeline>
+
+ <!-- The internal pipelines for loading and saving -->
+ <map:pipeline internal-only="true">
+ <map:match pattern="sunrise-authuser">
+ <map:generate src="resources/sunrise-user.xml"/>
+ <map:transform src="styles/authenticate.xsl">
+ <map:parameter name="use-request-parameters" value="true"/>
+ </map:transform>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="load-global-profile">
+ <map:generate src="profiles/{request-param:profile}/{request-param:portal}.xml"/>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="load-role-profile">
+ <map:generate src="profiles/{request-param:profile}/{request-param:portal}-role-{request-param:role}.xml"/>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="load-user-profile">
+ <map:generate src="profiles/{request-param:profile}/{request-param:portal}-user-{request-param:user}.xml"/>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="save-user-profile">
+ <map:generate src="resources/save-user-profile.xml"/>
+ <map:transform src="styles/save-user-profile.xsl">
+ <map:parameter name="profiles" value="context://samples/blocks/portal/profiles/"/>
+ </map:transform>
+ <map:transform type="session"/>
+ <map:transform type="write-source"/>
+ <map:serialize type="xml"/>
+ </map:match>
+ </map:pipeline>
+
+ <!-- Now the accessible pipelines -->
+ <map:pipeline>
+
+ <!-- images -->
+ <map:match pattern="proxy-**">
+ <map:read type="portal-proxy"/>
+ </map:match>
+ <!-- WSRP Resources -->
+ <map:match pattern="wsrprsc">
+ <map:read src="{request-param:wsrp-url}"/>
+ </map:match>
+ <map:match pattern="images/*.gif">
+ <map:read mime-type="image/gif" src="{portal-skin:skin.basepath}/images/{1}.gif"/>
+ </map:match>
+ <map:match pattern="images/*.jpg">
+ <map:read mime-type="image/jpg" src="{portal-skin:skin.basepath}/images/{1}.jpg"/>
+ </map:match>
+
+ <!-- Cascading Stylesheets -->
+ <map:match pattern="css/*.css">
+ <map:read mime-type="text/css" src="{portal-skin:skin.basepath}/css/{1}.css"/>
+ </map:match>
+
+ <map:match pattern="">
+ <map:redirect-to uri="portal"/>
+ </map:match>
+
+ <map:match pattern="coplets/**">
+ <map:mount check-reload="yes" src="coplets/" uri-prefix="coplets"/>
+ </map:match>
+
+ <map:match pattern="portlets/**">
+ <map:mount check-reload="yes" src="portlets/" uri-prefix="portlets"/>
+ </map:match>
+
+ <!-- Do an auto login as anonymous -->
+ <map:act type="auth-loggedIn">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+ <map:parameter name="negate-result" value="true"/>
+
+ <map:act type="auth-login">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+
+ <map:parameter name="parameter_name" value="anonymous"/>
+ <map:parameter name="parameter_password" value="anonymous"/>
+ </map:act>
+ </map:act>
+
+ <!-- Test pipeline for portal engine -->
+ <map:match pattern="portal">
+ <map:act type="auth-protect">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+
+ <map:generate type="portal" label="content"/>
+ <map:transform src="{portal-skin:skin.basepath}/styles/portal-page.xsl">
+ <map:parameter name="user" value="{ID}"/>
+ <map:parameter name="title" value="{global:mainTitle}"/>
+ <map:parameter name="base" value="{portalpath:relative}"/>
+ </map:transform>
+ <map:transform type="cinclude"/>
+ <map:transform type="portal-coplet"/>
+ <map:transform type="portal-new-eventlink"/>
+ <map:transform type="encodeURL"/>
+ <!--
+ <map:transform type="htmlroot" />
+ -->
+ <!-- If you don't need JSR-168 support, you can use the html serializer instead -->
+ <map:serialize type="html-include"/>
+ </map:act>
+ </map:match>
+
+ <!-- Test pipeline for bookmark -->
+ <map:match pattern="bookmark">
+ <map:act type="auth-protect">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+
+ <map:act type="portal-bookmark">
+ <map:redirect-to uri="portal?{uri}"/>
+ </map:act>
+ </map:act>
+ </map:match>
+
+ <map:match pattern="portalxml">
+ <map:act type="auth-protect">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+
+ <map:generate type="portal" label="content"/>
+ <map:serialize type="xml"/>
+ </map:act>
+ </map:match>
+
+ <!-- Authenticate a user -->
+ <map:match pattern="auth">
+ <!-- Check if we are logged in:
+ - if we are anonymous, then logout
+ - if we are any other use, redirect to loggedin
+ -->
+ <map:act type="auth-loggedIn">
+ <map:parameter name="handler" value="portal-handler"/>
+
+ <map:act type="auth-protect">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+
+ <map:select type="parameter" >
+ <map:parameter name="parameter-selector-test" value="{ID}"/>
+ <map:when test="anonymous">
+ <map:act type="auth-logout">
+ <map:parameter name="handler" value="portal-handler"/>
+ </map:act>
+ </map:when>
+ <map:otherwise>
+ <map:redirect-to uri="loggedin"/>
+ </map:otherwise>
+ </map:select>
+ </map:act>
+ </map:act>
+
+ <!-- Start the authentication process -->
+ <map:act type="auth-login">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+ <map:parameter name="parameter_name" value="{request-param:name}"/>
+ <map:parameter name="parameter_password" value="{request-param:password}"/>
+
+ <!-- Authentication succeeded -->
+ <map:act type="portal-login"/>
+
+ <map:redirect-to uri="{request-param:resource}"/>
+
+ </map:act>
+ <!-- Authentication failed -->
+ <map:generate src="resources/login-error.xml"/>
+ <map:transform src="{portal-skin:skin.basepath}/styles/portal-page.xsl">
+ <map:parameter name="user" value="anonymous"/>
+ </map:transform>
+ <map:transform type="encodeURL"/>
+ <map:serialize/>
+ </map:match>
+
+ <map:match pattern="loggedin">
+ <map:act type="auth-protect">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+
+ <map:generate src="resources/logged-in.xml"/>
+ <map:transform src="{portal-skin:skin.basepath}/styles/portal-page.xsl"/>
+ <map:transform type="encodeURL"/>
+ <map:serialize/>
+ </map:act>
+ <map:redirect-to uri="login"/>
+ </map:match>
+
+ <map:match pattern="logout">
+ <map:act type="auth-protect">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+<!--
+ <map:act type="portal-save-profile"/>
+-->
+ <map:act type="portal-logout"/>
+ <map:act type="auth-logout"/>
+ </map:act>
+ <!-- TODO logout page -->
+ <map:redirect-to uri="login"/>
+ </map:match>
+
+ <!-- ==== P O R T A L T O O L S ==== -->
+
+ <!-- mount sitemap of the portal tools -->
+ <map:match pattern="tools/**">
+ <map:act type="auth-protect">
+ <map:parameter name="handler" value="portal-handler"/>
+ <map:parameter name="application" value="portal"/>
+
+ <map:mount uri-prefix="tools" check-reload="no" src="tools/sitemap.xmap"/>
+ </map:act>
+ </map:match>
+
+ <!-- portal tools image reader -->
+ <map:match pattern="toolImages/*/*.jpg">
+ <map:read mime-type="image/jpg" src="tools/skins/{1}/images/{2}.jpg"/>
+ </map:match>
+ <map:match pattern="userImages/*.jpg">
+ <map:read mime-type="image/jpg" src="tools/plugins/userManagement/userImages/{1}.jpg"/>
+ </map:match>
+
+ <!-- Everything else redirect to the portal -->
+ <map:match pattern="**">
+ <map:redirect-to uri="portal"/>
+ </map:match>
+ </map:pipeline>
+
+ </map:pipelines>
+</map:sitemap>
+
+<!-- end of file -->
Propchange: cocoon/blocks/portal-sample/trunk/samples/sitemap-auth.xmap
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cocoon/blocks/portal-sample/trunk/samples/sitemap-auth.xmap
------------------------------------------------------------------------------
svn:keywords = Id