cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r265679 [1/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...
Date Thu, 01 Sep 2005 09:10:38 GMT
Author: cziegeler
Date: Thu Sep  1 02:08:10 2005
New Revision: 265679

URL: http://svn.apache.org/viewcvs?rev=265679&view=rev
Log:
Create own block for portal sample

Added:
    cocoon/blocks/portal-sample/trunk/
    cocoon/blocks/portal-sample/trunk/WEB-INF/
    cocoon/blocks/portal-sample/trunk/WEB-INF/portlet.xml   (with props)
    cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/
    cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-cowarp.xconf   (with props)
    cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-tools.samplesxconf
    cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal.samplesxconf
    cocoon/blocks/portal-sample/trunk/conf/
    cocoon/blocks/portal-sample/trunk/conf/portal.xsamples
    cocoon/blocks/portal-sample/trunk/java/
    cocoon/blocks/portal-sample/trunk/java/org/
    cocoon/blocks/portal-sample/trunk/java/org/apache/
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractBasketTransformer.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractItem.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AddToBasketAspect.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Basket.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketContentGenerator.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketGenerator.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketManager.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketManagerImpl.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketTransformer.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Briefcase.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/ContentItem.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/ContentStore.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/ContentStoreDescription.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Folder.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/FolderTransformer.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/UserConfiguration.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/AddItemEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/CleanBriefcaseEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/ContentStoreEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/MoveItemEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/RefreshBasketEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/RemoveItemEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/ShowBasketEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/ShowItemEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/events/UploadItemEvent.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/security/
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/security/DBSecurityHandler.java   (with props)
    cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/security/PortalUser.java   (with props)
    cocoon/blocks/portal-sample/trunk/samples/
    cocoon/blocks/portal-sample/trunk/samples/coplets/
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/basket.admin.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/basket.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/content-error.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/sample.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletlist.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletwithapp.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletwithappdialog.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletwithappresult.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletwithattr.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletwithinline.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletwithinput.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletwithinputshow.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/copletwithupload.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xml/staticcoplet.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-post.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/basket-pre.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithappresult.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithattr.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/copletwithinline.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/basket/xsl/quota2result.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-bottom.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-demo.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-intro.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-left.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/portal-right.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/styles/
    cocoon/blocks/portal-sample/trunk/samples/coplets/docs/styles/document2html.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/dir2pic.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/gallery.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/picture.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/bird1.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/bird2.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/cat1.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/cat2.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/dog1.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/samplepics/dog2.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/gallery/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/history/
    cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/history/path.xsp   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/history/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/html/
    cocoon/blocks/portal-sample/trunk/samples/coplets/html/envelope.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/html/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/login/
    cocoon/blocks/portal-sample/trunk/samples/coplets/login/login.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/login/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/bbc_news.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_business.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnet_news2.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cnn_europe.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cst_news.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/cz_weblog.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/ml_weblog.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/newsweek.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/nn_weblog.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/nyt_business.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/offline/nyt_sport.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/styles/
    cocoon/blocks/portal-sample/trunk/samples/coplets/news/styles/rss2html.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/samples/
    cocoon/blocks/portal-sample/trunk/samples/coplets/samples/form-sample.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/samples/page2html.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/samples/screens/
    cocoon/blocks/portal-sample/trunk/samples/coplets/samples/screens/content.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/samples/screens/form.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/samples/screens/received.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/samples/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/coplets/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/portlets/
    cocoon/blocks/portal-sample/trunk/samples/portlets/hello.html   (with props)
    cocoon/blocks/portal-sample/trunk/samples/portlets/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/
    cocoon/blocks/portal-sample/trunk/samples/profiles/basket/
    cocoon/blocks/portal-sample/trunk/samples/profiles/basket/quotas-user-cocoon.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/basket/quotas-user-guest.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/copletbasedata/
    cocoon/blocks/portal-sample/trunk/samples/profiles/copletbasedata/portal.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/copletdata/
    cocoon/blocks/portal-sample/trunk/samples/profiles/copletdata/portal.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/
    cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal-user-anonymous.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/copletinstancedata/portal.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/layout/
    cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal-user-anonymous.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/layout/portal.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/profiles/wsrp-config.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/resources/
    cocoon/blocks/portal-sample/trunk/samples/resources/bookmarks.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/resources/logged-in.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/resources/login-error.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/resources/login.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/resources/save-user-profile.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/resources/sunrise-user.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/sitemap-auth.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/css/
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/css/forms-calendar.css   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/css/forms.css   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/css/page.css   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/css/wsrp.css   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/basket.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/cal.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/customize.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/delete.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/edit.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/help.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/maximize.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/minimize.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/show.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/space.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/thumb.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/images/view.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/js/
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/js/forms-lib.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/js/mattkruse-lib.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/borderless-window.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/column.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/forms-styling.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/linktab.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/login-html.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/portal-page.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/row.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/tab.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/basic/styles/window.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/
    cocoon/blocks/portal-sample/trunk/samples/skins/common/css/
    cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms-calendar.css   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/css/forms.css   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/css/page.css   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/css/wsrp.css   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/basket.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/cal.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/customize.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/delete.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/edit.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/help.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/logout-door.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/maximize.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/minimize.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/portal-logo.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/show.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/space.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tab-left.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tab-right.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tabSel-left.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/tabSel-right.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/thumb.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/view.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-bottom.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-left.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-border-right.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-bottom-left.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-bottom-right.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-top-left.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/images/window-top-right.gif   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/js/
    cocoon/blocks/portal-sample/trunk/samples/skins/common/js/forms-lib.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/js/mattkruse-lib.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/borderless-window.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/column.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/forms-styling.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/linktab.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/login-html.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/portal-page.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/row.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/tab.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/skins/common/styles/window.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/styles/
    cocoon/blocks/portal-sample/trunk/samples/styles/authenticate.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/styles/save-user-profile.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/
    cocoon/blocks/portal-sample/trunk/samples/tools/auth.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/auth2.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/conf.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/flow.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/main/
    cocoon/blocks/portal-sample/trunk/samples/tools/main/functions.jx   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/main/menu.jx   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/main/noTools.jx   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/main/tools.jx   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/flow.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/addCoplet/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/addCoplet/binding.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/addCoplet/form.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/addCoplet/template.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/addTab/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/addTab/form.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/addTab/template.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/all/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/all/binding.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/all/form.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/all/template.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/uriCoplet/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/uriCoplet/binding.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/uriCoplet/form.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/form/editCoplet/uriCoplet/template.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/i18n/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/i18n/copletManagement.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/i18n/copletManagement_de.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/i18n/copletManagement_en.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/jx/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/jx/selectSkin.jx   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/styles/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/styles/createIndex.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/copletManagement/tool.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/i18n/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/i18n/FormsMessages.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/i18n/FormsMessages_de.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/i18n/FormsMessages_en.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/i18n/default.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/i18n/default_de.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/i18n/default_en.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/default/tool.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/flow.js   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/form/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/form/userData_binding.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/form/userData_form_add.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/form/userData_form_edit.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/form/userData_form_readonly.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/form/userData_style.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/form/userData_template.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/i18n/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/i18n/userManagement.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/i18n/userManagement_de.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/i18n/userManagement_en.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/stylesheets/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/stylesheets/convertAbstractForm.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/tool.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/userImages/
    cocoon/blocks/portal-sample/trunk/samples/tools/plugins/userManagement/userImages/1.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/portal-bottom.xml   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/sitemap.xmap   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/addCol.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/addCoplet.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/addRow.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/addTab.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/del.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/down.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/drillDown.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/edit.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/goUp.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/left.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/right.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/tabs.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/tools.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/images/up.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/styles/
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/styles/function.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/basic/styles/showTab.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/Thumbs.db   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/addCol.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/addCoplet.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/addRow.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/addTab.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/del.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/down.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/drillDown.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/edit.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/goUp.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/left.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/right.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/tabs.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/tools.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/images/up.jpg   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/styles/
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/styles/function.xsl   (with props)
    cocoon/blocks/portal-sample/trunk/samples/tools/skins/common/styles/showTab.xsl   (with props)

Added: cocoon/blocks/portal-sample/trunk/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/WEB-INF/portlet.xml?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/WEB-INF/portlet.xml (added)
+++ cocoon/blocks/portal-sample/trunk/WEB-INF/portlet.xml Thu Sep  1 02:08:10 2005
@@ -0,0 +1,194 @@
+<?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$
+-->
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             version="1.0"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
+
+  <!--
+    - Simple test portlet for testing
+    -->
+  <portlet>
+    <description>This is a Test Portlet</description>
+    <portlet-name>TestPortlet1</portlet-name>
+    <display-name>Test Portlet #1</display-name>
+    <portlet-class>org.apache.cocoon.portal.pluto.test.TestPortlet</portlet-class>
+
+    <init-param>
+      <name>dummyName</name>
+      <value>dummyValue</value>
+    </init-param>
+
+    <expiration-cache>-1</expiration-cache>
+
+    <supports>
+      <mime-type>text/html</mime-type>
+      <portlet-mode>VIEW</portlet-mode>
+      <portlet-mode>EDIT</portlet-mode>
+      <portlet-mode>HELP</portlet-mode>
+    </supports>
+
+    <supported-locale>en</supported-locale>
+    <supported-locale>de</supported-locale>
+
+    <portlet-info>
+      <title>Test Portlet #1</title>
+      <short-title>Test1</short-title>
+      <keywords>Test, Testen</keywords>
+    </portlet-info>
+    <portlet-preferences>
+      <preference>
+        <name>dumnmyName</name>
+        <value>dummyValue</value>
+        <read-only>false</read-only>
+      </preference>
+      <preference>
+        <name>dummyName2</name>
+        <value>dummyValue2</value>
+      </preference>
+      <preferences-validator>org.apache.pluto.core.impl.PreferencesValidatorImpl</preferences-validator>
+    </portlet-preferences>
+  </portlet>
+
+
+  <!--
+    - Cocoon JSR168 Portlet.
+    - You can deploy this portlet in any 3rd party portal implementing JSR168
+    - and make your Cocoon application available as a portlet.
+    -
+    - Cocoon portlet will create an instance of the Cocoon with parameters
+    - specified below.
+    -->
+  <portlet>
+    <portlet-name>CocoonPortlet</portlet-name>
+    <display-name>JSR-168 Cocoon Portlet</display-name>
+    <portlet-class>org.apache.cocoon.portlet.ManagedCocoonPortlet</portlet-class>
+
+    <!--
+      This parameter indicates the category id of the logger from the LogKit
+      configuration used by the CocoonServlet.
+    -->
+    <init-param>
+      <name>portlet-logger</name>
+      <value>access</value>
+    </init-param>
+
+    <!--
+      Causes all files in multipart requests to be processed.
+      Default is false for security reasons.
+      Unsupported values will be interpreted as false.
+    -->
+    <init-param>
+      <name>enable-uploads</name>
+      <value>true</value>
+    </init-param>
+
+    <!--
+      Causes all files in multipart requests to be saved to upload-dir.
+      Default is true for security reasons.
+      Unsupported values will be interpreted as false.
+    -->
+    <init-param>
+      <name>autosave-uploads</name>
+      <value>true</value>
+    </init-param>
+
+    <!--
+      Specify handling of name conflicts when saving uploaded files
+      to disk.  Acceptable values are deny, allow, rename (default).
+      Files are renamed x_filename where x is an integer value incremented
+      to make the new filename unique.
+    -->
+    <init-param>
+      <name>overwrite-uploads</name>
+      <value>rename</value>
+    </init-param>
+
+    <!--
+      Specify maximum allowed size of the upload. Defaults to 10 Mb.
+
+    <init-param>
+      <name>upload-max-size</name>
+      <value>10000000</value>
+    </init-param>
+    -->
+
+    <!--
+      If you set this parameter to 'true' or 'yes', Cocoon will add processing
+      time to the end of each response. Value 'hide' adds processing time as an HTML
+      comment. By default, processing time is not added (corresponds to value 'no').
+
+    <init-param>
+      <name>show-time</name>
+      <value>hide</value>
+    </init-param>
+    -->
+
+    <!--
+      If true or not set, this class will try to catch and handle all Cocoon exceptions.
+      If false, it will rethrow them to the servlet container.
+    -->
+    <init-param>
+      <name>manage-exceptions</name>
+      <value>true</value>
+    </init-param>
+
+    <!--
+      Set encoding used by the container. If not set the ISO-8859-1 encoding will be assumed.
+
+    <init-param>
+      <name>container-encoding</name>
+      <value>utf-8</value>
+    </init-param>
+    -->
+
+    <!--
+      Set form encoding. This will be the character set used to decode request parameters.
+      If not set the ISO-8859-1 encoding will be assumed.
+
+    <init-param>
+      <name>form-encoding</name>
+      <value>utf-8</value>
+    </init-param>
+    -->
+
+    <init-param>
+      <name>servlet-path</name>
+      <value>samples/blocks/portal/portlets/hello</value>
+    </init-param>
+
+    <expiration-cache>-1</expiration-cache>
+
+    <supports>
+      <mime-type>text/html</mime-type>
+      <portlet-mode>VIEW</portlet-mode>
+      <portlet-mode>EDIT</portlet-mode>
+      <portlet-mode>HELP</portlet-mode>
+    </supports>
+
+    <supported-locale>en</supported-locale>
+
+    <portlet-info>
+      <title>JSR-168 Cocoon Portlet</title>
+      <short-title>Cocoon Portlet</short-title>
+      <keywords>Apache, Cocoon, XML, Jakarta, Pluto, Portlet, WSRP, WSRP4J, JSR-168</keywords>
+    </portlet-info>
+  </portlet>
+
+</portlet-app>

Propchange: cocoon/blocks/portal-sample/trunk/WEB-INF/portlet.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/WEB-INF/portlet.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-cowarp.xconf
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-cowarp.xconf?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-cowarp.xconf (added)
+++ cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-cowarp.xconf Thu Sep  1 02:08:10 2005
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+<!--
+  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.
+-->
+<!--+
+    |
+    | SVN $Id$
+    +-->
+<components>
+  <component role="org.osoco.cowarp.ApplicationManager"
+             class="org.osoco.cowarp.impl.StandardApplicationManager"/>
+  <!-- This security handler uses OJB and the hsqldb for the authentication: -->
+  <component role="org.osoco.cowarp.SecurityHandler/portal" 
+             class="org.apache.cocoon.portal.security.DBSecurityHandler"/>
+  <!-- If you want to use a pipeline for the authentication use this configuration:
+    <component role="org.osoco.cowarp.SecurityHandler/portal" 
+               class="org.osoco.cowarp.impl.PipelineSecurityHandler">
+      <authentication-resource>cocoon:raw:/sunrise-authuser</authentication-resource>
+    </component>
+  -->
+  <component role="org.osoco.cowarp.Application/portal" 
+             class="org.osoco.cowarp.portal.StandardPortalApplication" 
+             security-handler="portal">
+                  <profiles>
+                    <copletbasedata-global-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>
+  </component>
+  <component class="org.apache.cocoon.portal.profile.impl.GroupBasedProfileManager" logger="portal" role="org.apache.cocoon.portal.profile.ProfileManager/Cowarp">
+    <parameter name="userinfo-provider" value="org.osoco.cowarp.portal.UserInfoProviderImpl"/>
+  </component>
+
+</components>

Propchange: cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-cowarp.xconf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-cowarp.xconf
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-tools.samplesxconf
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-tools.samplesxconf?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-tools.samplesxconf (added)
+++ cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal-tools.samplesxconf Thu Sep  1 02:08:10 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!--
+  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.
+-->
+<!--+
+    |
+    | SVN $Id: cocoon-portal-tools.samplesxconf 157929 2005-03-17 09:47:18Z cziegeler $
+    +-->
+<components>
+
+  <!-- Include dependencies -->
+  <include src="context://WEB-INF/xconf/cocoon-portal.xconf"/>
+  <include src="context://WEB-INF/xconf/cocoon-portal.samplesxconf"/>
+
+  <component class="org.apache.cocoon.portal.tools.PortalToolManager" 
+             role="org.apache.cocoon.portal.tools.PortalToolManager">
+	<parameter name="root" value="context://samples/blocks/portal/tools/"/>
+	<parameter name="conf" value="conf.xml"/>
+	<parameter name="auth" value="auth.xml"/>
+  </component>
+
+</components>
\ No newline at end of file

Added: cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal.samplesxconf
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal.samplesxconf?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal.samplesxconf (added)
+++ cocoon/blocks/portal-sample/trunk/WEB-INF/xconf/cocoon-portal.samplesxconf Thu Sep  1 02:08:10 2005
@@ -0,0 +1,356 @@
+<?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: cocoon-portal-samples.xconf 125443 2005-01-17 20:39:52Z cziegeler $
+    +-->
+<components>
+  <!-- Include dependencies -->
+  <include src="context://WEB-INF/xconf/cocoon-portal.xconf"/>
+  <!-- If you're not using cowarp, you can remove this include: -->
+  <include src="context://WEB-INF/xconf/cocoon-portal-cowarp.xconf"/>
+
+ <!-- THIS IS A SAMPLE PORTAL
+      It demonstrates several features of the portal engine,
+      so it's not optimized for production. Make sure that
+      if you use the portal for your own projects that you
+      remove all unused stuff from the configuration! 
+ -->
+  <component class="org.apache.cocoon.portal.impl.PortalServiceImpl" logger="portal" role="org.apache.cocoon.portal.PortalService">
+   <portals>
+     <portal name="portal">
+       <!-- This is the sample portal: 
+            - we use the cowarp profile manager
+       -->
+       <profile-manager>org.apache.cocoon.portal.profile.ProfileManager/Cowarp</profile-manager>
+       <!-- If you want to use the authentication framework, comment out the above line
+            and uncomment the following line:
+         <profile-manager>org.apache.cocoon.portal.profile.ProfileManager/Auth</profile-manager>
+       -->
+       <!-- These are the skins the user can choose from: -->
+       <skins>
+         <skin name="basic" base-path="context://samples/blocks/portal/skins/basic">
+           <thumbnail-path>images/thumb.jpg</thumbnail-path>
+         </skin>
+         <skin name="common" base-path="context://samples/blocks/portal/skins/common">
+           <thumbnail-path>images/thumb.jpg</thumbnail-path>
+         </skin>
+       </skins>
+     </portal>
+   </portals>
+  </component>
+
+ <component class="org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager" logger="portal" role="org.apache.cocoon.portal.profile.ProfileManager/Auth">
+ </component>
+
+ <!-- Renderer configuration -->
+ <component class="org.apache.cocoon.core.container.DefaultServiceSelector" role="org.apache.cocoon.portal.layout.renderer.RendererSelector">
+     <renderer name="column" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal" >
+         <aspects>
+             <aspect type="xslt">
+                 <parameter name="style" value="{portal-skin:skin.basepath}/styles/column.xsl"/>
+             </aspect>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="column-layout"/>
+             </aspect>
+             <aspect type="composite-content">
+                 <parameter name="root-tag" value="false"/>
+             </aspect>
+         </aspects>
+     </renderer>
+     <renderer name="row" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal" >
+         <aspects>
+             <aspect type="xslt">
+                 <parameter name="style" value="{portal-skin:skin.basepath}/styles/row.xsl"/>
+             </aspect>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="row-layout"/>
+             </aspect>
+             <aspect type="composite-content">
+                 <parameter name="root-tag" value="false"/>
+             </aspect>
+         </aspects>
+     </renderer>
+     <renderer name="tab" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal" >
+         <aspects>
+             <aspect type="xslt">
+                 <parameter name="style" value="{portal-skin:skin.basepath}/styles/tab.xsl"/>
+             </aspect>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="tab-layout"/>
+             </aspect>
+             <aspect type="history"/>
+             <aspect type="tab-content">
+                 <parameter name="root-tag" value="false"/>
+                 <parameter name="store"    value="session"/>
+             </aspect>
+         </aspects>
+     </renderer>
+     <renderer name="rawtab" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal" >
+         <aspects>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="tab-layout"/>
+             </aspect>
+             <aspect type="history"/>
+             <aspect type="tab-content">
+                 <parameter name="root-tag" value="false"/>
+                 <parameter name="store"    value="session"/>
+             </aspect>
+         </aspects>
+     </renderer>
+     <renderer name="linktab" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal">
+         <aspects>
+             <aspect type="xslt">
+                 <parameter name="style" value="{portal-skin:skin.basepath}/styles/linktab.xsl"/>
+             </aspect>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="linktab-layout"/>
+             </aspect>
+             <aspect type="history"/>
+             <aspect type="tab-content">
+                 <parameter name="root-tag" value="false"/>
+                 <parameter name="store" value="session"/>
+             </aspect>
+         </aspects>
+     </renderer>
+     <renderer name="window" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal" >
+         <aspects>
+             <aspect type="xslt">
+                 <parameter name="style" value="{portal-skin:skin.basepath}/styles/window.xsl"/>
+             </aspect>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="window"/>
+             </aspect>
+             <aspect type="window">
+                 <parameter name="root-tag" value="false"/>
+             </aspect>
+             <aspect type="coplet-removing"/>
+             <aspect type="coplet-full-screen"/>
+             <aspect type="coplet-sizing"/>
+             <aspect type="history"/>
+             <aspect type="basket"/>
+             <aspect type="coplet-cinclude"/>
+         </aspects>
+     </renderer>
+     <renderer name="borderless-window" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal" >
+         <aspects>
+             <aspect type="xslt">
+                 <parameter name="style" value="{portal-skin:skin.basepath}/styles/borderless-window.xsl"/>
+             </aspect>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="window"/>
+             </aspect>
+             <aspect type="window">
+                 <parameter name="root-tag" value="false"/>
+             </aspect>
+             <aspect type="coplet-removing"/>
+             <aspect type="coplet-full-screen"/>
+             <aspect type="coplet-sizing"/>
+             <aspect type="history"/>
+             <aspect type="basket"/>
+             <aspect type="coplet-cinclude"/>
+         </aspects>
+     </renderer>
+     <renderer name="frame" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal" >
+         <aspects>
+             <aspect type="frame">
+                 <parameter name="store" value="request"/>
+             </aspect>
+         </aspects>
+     </renderer>
+     <renderer name="nowindow" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal">
+         <aspects>
+             <aspect type="history"/>
+             <aspect type="coplet-cinclude">
+                <parameter name="root-tag" value="false"/>
+             </aspect>
+         </aspects>
+     </renderer>
+     <renderer name="portlet-window"
+               class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer"
+               logger="portal">
+         <aspects>
+             <aspect type="xslt">
+                 <parameter name="style" value="{portal-skin:skin.basepath}/styles/window.xsl"/>
+             </aspect>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="window"/>
+             </aspect>
+             <aspect type="portlet-window">
+                 <parameter name="root-tag" value="false"/>
+             </aspect>
+             <aspect type="coplet-removing"/>
+             <aspect type="history"/>
+             <aspect type="basket"/>
+             <aspect type="coplet-cinclude"/>
+         </aspects>
+     </renderer>
+     <renderer name="wsrp-window"
+               class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer"
+               logger="portal">
+         <aspects>
+             <aspect type="xslt">
+                 <parameter name="style" value="{portal-skin:skin.basepath}/styles/window.xsl"/>
+             </aspect>
+             <aspect type="parameter">
+                 <parameter name="tag-name" value="window"/>
+             </aspect>
+             <aspect type="wsrp-window">
+                 <parameter name="root-tag" value="false"/>
+             </aspect>
+             <aspect type="coplet-removing"/>
+             <aspect type="history"/>
+             <aspect type="basket"/>
+             <aspect type="coplet-cinclude"/>
+         </aspects>
+     </renderer>
+     <renderer name="link" 
+               class="org.apache.cocoon.portal.layout.renderer.impl.DefaultLinkRenderer" 
+               logger="portal"/>
+     <renderer name="decorated-frame" class="org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer" logger="portal">
+         <aspects>
+            <aspect type="xslt">
+                <parameter name="style" value="{portal-skin:skin.basepath}/styles/frame.xsl"/>
+            </aspect>
+            <aspect type="parameter">
+                <parameter name="tag-name" value="frame"/>
+            </aspect>
+            <aspect type="frame">
+                <parameter name="store" value="request"/>
+            </aspect>
+         </aspects>
+    </renderer>
+ </component>
+ 
+<!-- Layout factory configuration -->
+<component class="org.apache.cocoon.portal.layout.impl.DefaultLayoutFactory"
+           role="org.apache.cocoon.portal.layout.LayoutFactory">
+    <layouts>
+        <layout name="column" 
+                class="org.apache.cocoon.portal.layout.impl.CompositeLayoutImpl">
+            <renderers default="column">
+                <renderer name="column"/>
+            </renderers>
+        </layout>
+        <layout name="row" 
+                class="org.apache.cocoon.portal.layout.impl.CompositeLayoutImpl">
+            <renderers default="row">
+                <renderer name="row"/>
+            </renderers>
+        </layout>
+        <layout name="tab" 
+                class="org.apache.cocoon.portal.layout.impl.CompositeLayoutImpl"
+                item-class="org.apache.cocoon.portal.layout.NamedItem">
+            <renderers default="tab">
+                <renderer name="tab"/>
+            </renderers>
+        </layout>
+        <layout name="rawtab" 
+                class="org.apache.cocoon.portal.layout.impl.CompositeLayoutImpl"
+                item-class="org.apache.cocoon.portal.layout.NamedItem">
+            <renderers default="rawtab">
+                <renderer name="rawtab"/>
+            </renderers>
+        </layout>
+        <layout name="linktab"
+                class="org.apache.cocoon.portal.layout.impl.CompositeLayoutImpl"
+                item-class="org.apache.cocoon.portal.layout.NamedItem">
+            <renderers default="linktab">
+                <renderer name="linktab"/>
+            </renderers>
+        </layout>
+        <layout name="frame" 
+                class="org.apache.cocoon.portal.layout.impl.FrameLayout"
+                create-id="true">
+            <renderers default="frame">
+                <renderer name="frame"/>
+            </renderers>
+        </layout>
+        <layout name="coplet" 
+                class="org.apache.cocoon.portal.layout.impl.CopletLayout">
+            <renderers default="window">
+                <renderer name="window"/>
+                <renderer name="portlet-window"/>
+                <renderer name="nowindow"/>
+            </renderers>
+        </layout>
+        <layout name="link"
+                class="org.apache.cocoon.portal.layout.impl.LinkLayout"
+                create-id="true">
+            <renderers default="link">
+                <renderer name="link"/>
+            </renderers>
+            <aspects>
+               <aspect name="link-layout-key"
+                       class="java.lang.String"
+                       store="session"
+                       auto-create="false">
+               </aspect>
+               <aspect name="link-layout-id"
+                       class="java.lang.String"
+                       store="session"
+                       auto-create="false">
+               </aspect>
+            <!--
+               <aspect name="static"
+                       class="java.lang.Boolean"
+                       store="persistent"
+                       auto-create="true"
+                       value="false">
+               </aspect>
+             -->
+            </aspects>
+         </layout>
+    </layouts>
+</component>
+
+<!-- Coplet factory configuration -->
+<component class="org.apache.cocoon.portal.coplet.impl.DefaultCopletFactory"
+           role="org.apache.cocoon.portal.coplet.CopletFactory">
+    <coplets>
+        <coplet name="standard"
+                class="org.apache.cocoon.portal.coplet.CopletData">
+            <coplet-data-aspects>
+                <!-- Use only the 'memory' aspect store with aspect datas! -->
+                <aspect auto-create="true" class="java.lang.Boolean" name="sizable" store="memory" value="true"/>
+                <aspect auto-create="true" class="java.lang.Boolean" name="mandatory" store="memory" value="false"/>
+               <!--         
+                <aspect name="maxpageable"
+                        class="java.lang.Boolean"
+                        store="memory"
+                        auto-create="true"
+                        value="true"/>
+               -->
+            </coplet-data-aspects>
+            
+            <coplet-instance-data-aspects>
+                <!-- Choose from tempory, request and session aspect store: -->
+                <aspect name="size"
+                        class="java.lang.Integer"
+                        store="session"
+                        auto-create="true"
+                        value="1"/>
+                <aspect name="fullScreen"
+                        class="java.lang.Boolean"
+                        store="temporary"
+                        auto-create="true"
+                        value="false"/>
+            </coplet-instance-data-aspects>
+        </coplet>
+    </coplets>
+  </component>
+</components>

Added: cocoon/blocks/portal-sample/trunk/conf/portal.xsamples
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/conf/portal.xsamples?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/conf/portal.xsamples (added)
+++ cocoon/blocks/portal-sample/trunk/conf/portal.xsamples 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: portal.xsamples 126208 2005-01-23 11:03:50Z cziegeler $ -->
+<xsamples xpath="/samples" unless="group[@name='Portal Engine']">
+
+  <group name="Portal Engine">
+    <sample name="Portal Block" href="portal/portal">
+      This is a demo of the new powerful portal engine based on Apache Cocoon.
+    </sample>
+  </group>
+  
+</xsamples>

Added: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractBasketTransformer.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractBasketTransformer.java?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractBasketTransformer.java (added)
+++ cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractBasketTransformer.java Thu Sep  1 02:08:10 2005
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2004-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.
+ */
+package org.apache.cocoon.portal.coplets.basket;
+
+import org.apache.avalon.framework.activity.Disposable;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.cocoon.transformation.AbstractSAXTransformer;
+
+/**
+ * This is the base class for all basket transformers
+ *
+ * @version $Id$
+ */
+public abstract class AbstractBasketTransformer extends AbstractSAXTransformer
+                                               implements Disposable {
+
+    /** The namespace URI to listen for. */
+    public static final String NAMESPACE_URI = "http://apache.org/cocoon/portal/basket/1.0";
+
+    /** The basket manager */
+    protected BasketManager basketManager;
+
+    /**
+     * Constructor
+     */
+    public AbstractBasketTransformer() {
+        super.defaultNamespaceURI = NAMESPACE_URI;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager)
+     */
+    public void service(ServiceManager manager) throws ServiceException {
+        super.service(manager);
+        this.basketManager = (BasketManager) this.manager.lookup(BasketManager.ROLE);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.avalon.framework.activity.Disposable#dispose()
+     */
+    public void dispose() {
+        if (this.manager != null) {
+            this.manager.release(this.basketManager);
+        }
+        super.dispose();
+    }
+}

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractBasketTransformer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractBasketTransformer.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractItem.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractItem.java?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractItem.java (added)
+++ cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractItem.java Thu Sep  1 02:08:10 2005
@@ -0,0 +1,76 @@
+/*
+ * Copyright 2004-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.
+ */
+package org.apache.cocoon.portal.coplets.basket;
+
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+
+/**
+ * This is a possible base class for item implementations.
+ * 
+ * It just adds attributes (or meta-data) functionality
+ *
+ * @version CVS $Id$
+ */
+public class AbstractItem implements Serializable {
+    
+    protected static long currentId = System.currentTimeMillis();
+    
+    /** The attributes */
+    protected Map attributes = new HashMap();
+    
+    /** Unique id */
+    protected long id;
+    
+    public AbstractItem() {
+        synchronized ( this.getClass() ) {
+            currentId++;
+            this.id = currentId;
+        }
+    }
+
+    /** Return an attribute or null */
+    public Object getAttribute(String name) { 
+        return this.attributes.get(name); 
+    }
+    
+    /** Set an attribute */
+    public void setAttribute(String name, Object value) { 
+        this.attributes.put(name, value); 
+    }
+    
+    /** Get all attribute names */
+    public Iterator getAttributeNames() { 
+        return this.attributes.keySet().iterator(); 
+    }
+    
+    /** Remove one attribute */
+    public void removeAttribute(String name) { 
+        this.attributes.remove(name);
+    }
+    
+    /** Check if an attribute is available */
+    public boolean hasAttribute(String name) { 
+        return this.attributes.containsKey(name); 
+    }
+    
+    public long getId() {
+        return this.id;
+    }
+}

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractItem.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AbstractItem.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AddToBasketAspect.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AddToBasketAspect.java?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AddToBasketAspect.java (added)
+++ cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AddToBasketAspect.java Thu Sep  1 02:08:10 2005
@@ -0,0 +1,116 @@
+/*
+ * Copyright 2004-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.
+ */
+package org.apache.cocoon.portal.coplets.basket;
+
+import org.apache.avalon.framework.activity.Disposable;
+import org.apache.avalon.framework.parameters.ParameterException;
+import org.apache.avalon.framework.parameters.Parameters;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.cocoon.portal.PortalService;
+import org.apache.cocoon.portal.coplet.CopletInstanceData;
+import org.apache.cocoon.portal.coplets.basket.events.AddItemEvent;
+import org.apache.cocoon.portal.event.Event;
+import org.apache.cocoon.portal.layout.Layout;
+import org.apache.cocoon.portal.layout.impl.CopletLayout;
+import org.apache.cocoon.portal.layout.renderer.aspect.RendererAspectContext;
+import org.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect;
+import org.apache.cocoon.xml.XMLUtils;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.SAXException;
+
+/**
+ * This renderer adds a link to add this coplet to the basket.
+ * It checks the coplet data for the attributes
+ * basket-content and basket-link (boolean values) to stream
+ * out the elements.
+ * 
+ * @version CVS $Id$
+ */
+public final class AddToBasketAspect 
+extends AbstractAspect 
+implements Disposable {
+
+    /** The basket manager */
+    protected BasketManager basketManager;
+    
+    
+    /* (non-Javadoc)
+     * @see org.apache.avalon.framework.service.Serviceable#service(org.apache.avalon.framework.service.ServiceManager)
+     */
+    public void service(ServiceManager manager) throws ServiceException {
+        super.service(manager);
+        this.basketManager = (BasketManager)this.manager.lookup(BasketManager.ROLE);
+    }
+    
+    
+    /* (non-Javadoc)
+     * @see org.apache.avalon.framework.activity.Disposable#dispose()
+     */
+    public void dispose() {
+        if ( this.manager != null ) {
+            this.manager.release(this.basketManager);
+            this.basketManager = null;
+            this.manager = null;
+        }
+    }
+    
+    /* (non-Javadoc)
+     * @see org.apache.cocoon.portal.layout.renderer.RendererAspect#toSAX(org.apache.cocoon.portal.layout.renderer.RendererAspectContext, org.apache.cocoon.portal.layout.Layout, org.apache.cocoon.portal.PortalService, org.xml.sax.ContentHandler)
+     */
+    public void toSAX(RendererAspectContext context,
+                        Layout layout,
+                        PortalService service,
+                        ContentHandler contenthandler)
+    throws SAXException {
+        final CopletInstanceData cid = ((CopletLayout)layout).getCopletInstanceData();
+        final ContentStore store;
+        final String elementName;
+        if ( context.getAspectConfiguration().equals(Boolean.TRUE) ) {
+            store = this.basketManager.getBasket();
+            elementName = "basket-add-content";
+        } else {
+            store = this.basketManager.getBriefcase();
+            elementName = "briefcase-add-content";
+        }
+        
+        Boolean b = (Boolean)cid.getCopletData().getAttribute("basket-content");
+        if ( b != null && b.equals(Boolean.TRUE) ) {
+            Object item = new ContentItem(cid, true);
+            Event event = new AddItemEvent(store, item);
+            XMLUtils.createElement(contenthandler, elementName, service.getComponentManager().getLinkService().getLinkURI(event));
+        }
+        b = (Boolean)cid.getCopletData().getAttribute("basket-link");
+        if ( b != null && b.equals(Boolean.TRUE) ) {
+            Object item = new ContentItem(cid, false);
+            Event event = new AddItemEvent(store, item);
+            XMLUtils.createElement(contenthandler, elementName, service.getComponentManager().getLinkService().getLinkURI(event));            
+        }
+        
+        context.invokeNext( layout, service, contenthandler );
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.cocoon.portal.layout.renderer.aspect.RendererAspect#prepareConfiguration(org.apache.avalon.framework.parameters.Parameters)
+     */
+    public Object prepareConfiguration(Parameters configuration)
+    throws ParameterException {
+        if ( configuration.getParameter("use-store", "basket").equalsIgnoreCase("basket") ) {
+            return Boolean.TRUE;
+        }
+        return Boolean.FALSE;
+    }
+}

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AddToBasketAspect.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/AddToBasketAspect.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Basket.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Basket.java?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Basket.java (added)
+++ cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Basket.java Thu Sep  1 02:08:10 2005
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2004-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.
+ */
+package org.apache.cocoon.portal.coplets.basket;
+
+/**
+ * This is a per user basket that has the duration of a session
+ * Make a subclass to add your specific functionality
+ *
+ * @version CVS $Id$
+ */
+public class Basket extends ContentStore {
+    
+    public Basket(String id) {
+        super(id);
+    }
+}

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Basket.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/Basket.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketContentGenerator.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketContentGenerator.java?rev=265679&view=auto
==============================================================================
--- cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketContentGenerator.java (added)
+++ cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketContentGenerator.java Thu Sep  1 02:08:10 2005
@@ -0,0 +1,104 @@
+/*
+ * Copyright 2004-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.
+ */
+package org.apache.cocoon.portal.coplets.basket;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.util.Map;
+
+import org.apache.avalon.framework.parameters.Parameters;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.cocoon.ProcessingException;
+import org.apache.cocoon.components.source.SourceUtil;
+import org.apache.cocoon.environment.SourceResolver;
+import org.apache.cocoon.portal.coplet.CopletInstanceData;
+import org.apache.cocoon.portal.generation.AbstractCopletGenerator;
+import org.apache.cocoon.xml.SaxBuffer;
+import org.apache.cocoon.xml.XMLUtils;
+import org.apache.excalibur.source.Source;
+import org.apache.excalibur.xml.sax.SAXParser;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * This generator displays the content of one item.
+ *
+ * @version CVS $Id$
+ */
+public class BasketContentGenerator
+extends AbstractCopletGenerator {
+    
+    /** This is the attribute name containing the content */
+    protected String attributeName;
+    
+    /* (non-Javadoc)
+     * @see org.apache.cocoon.sitemap.SitemapModelComponent#setup(org.apache.cocoon.environment.SourceResolver, java.util.Map, java.lang.String, org.apache.avalon.framework.parameters.Parameters)
+     */
+    public void setup(SourceResolver resolver,
+                      Map objectModel,
+                      String src,
+                      Parameters par)
+    throws ProcessingException, SAXException, IOException {
+        super.setup(resolver, objectModel, src, par);
+
+        this.attributeName = par.getParameter("attribute-name", null);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.cocoon.generation.Generator#generate()
+     */
+    public void generate()
+    throws IOException, SAXException, ProcessingException {
+        boolean streamed = false;
+        SAXParser parser = null;
+        try {
+            parser = (SAXParser) this.manager.lookup(SAXParser.ROLE);
+            if ( this.attributeName != null ) {
+                CopletInstanceData cid = this.getCopletInstanceData();
+                byte[] content = (byte[])cid.getAttribute(this.attributeName);
+                if ( content == null ) {
+                    this.xmlConsumer.startDocument();
+                    XMLUtils.createElement(this.xmlConsumer, "p");
+                    this.xmlConsumer.endDocument();
+                    return;
+                }
+                try {
+                    InputSource is = new InputSource(new ByteArrayInputStream(content));
+                    SaxBuffer buffer = new SaxBuffer();
+                    parser.parse(is, buffer);
+                    streamed = true;
+                    buffer.toSAX(this.xmlConsumer);
+                } catch (Exception ignore) {
+                    // ignore
+                }
+            }
+            if ( !streamed ) {
+                Source source = null;
+                try {
+                    source = this.resolver.resolveURI(this.source);
+                    parser.parse(SourceUtil.getInputSource(source), this.xmlConsumer);
+                } finally {
+                    this.resolver.release(source);
+                }
+            }
+        } catch (ServiceException se) {
+            throw new ProcessingException("Unable to lookup parser.", se);
+        } finally {
+            this.manager.release(parser);
+        }
+    }
+    
+}

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketContentGenerator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal-sample/trunk/java/org/apache/cocoon/portal/coplets/basket/BasketContentGenerator.java
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message