Author: jford
Date: Tue Jan 30 19:14:14 2007
New Revision: 501706
URL: http://svn.apache.org/viewvc?view=rev&rev=501706
Log:
Added examples for folder metadata, links, and page security
Added:
portals/jetspeed-2/trunk/etc/xsd/examples/Jetspeed2.xml
portals/jetspeed-2/trunk/etc/xsd/examples/folder.xml
portals/jetspeed-2/trunk/etc/xsd/examples/page.xml
Added: portals/jetspeed-2/trunk/etc/xsd/examples/Jetspeed2.xml
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/etc/xsd/examples/Jetspeed2.xml?view=auto&rev=501706
==============================================================================
--- portals/jetspeed-2/trunk/etc/xsd/examples/Jetspeed2.xml (added)
+++ portals/jetspeed-2/trunk/etc/xsd/examples/Jetspeed2.xml Tue Jan 30 19:14:14
2007
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!--
+Copyright 2007 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.
+-->
+<link target="top"
+ xmlns="http://portals.apache.org/jetspeed"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://portals.apache.org/jetspeed link.xsd">
+ <title>Jetspeed 2 Home Page</title>
+ <url>http://portals.apache.org/jetspeed-2/</url>
+ <metadata name="title" xml:lang="ja">Jetspeed 2 ãã¼ã ãã¼ã¸</metadata>
+ <metadata name="title" xml:lang="es">Página Web de Jetspeed 2</metadata>
+ <metadata name="title" xml:lang="zh">Jetspeed 2主页</metadata>
+ <metadata name="title" xml:lang="zh-TW">Jetspeed 2主é </metadata>
+</link>
Added: portals/jetspeed-2/trunk/etc/xsd/examples/folder.xml
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/etc/xsd/examples/folder.xml?view=auto&rev=501706
==============================================================================
--- portals/jetspeed-2/trunk/etc/xsd/examples/folder.xml (added)
+++ portals/jetspeed-2/trunk/etc/xsd/examples/folder.xml Tue Jan 30 19:14:14
2007
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2007 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.
+-->
+<folder
+ xmlns="http://portals.apache.org/jetspeed"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://portals.apache.org/jetspeed
folder-metadata.xsd">
+ <title>Root Folder</title>
+ <metadata name="title" xml:lang="fr">Répertoire racine</metadata>
+ <metadata name="title" xml:lang="ja">ã«ã¼ããã©ã«ã</metadata>
+ <metadata name="title" xml:lang="es">Carpeta raiz</metadata>
+ <metadata name="title" xml:lang="zh">æ ¹æä»¶å¤¹</metadata>
+ <metadata name="title" xml:lang="zh-TW">æ ¹æä»¶å¤¾</metadata>
+
+ <defaults
+ layout-decorator="tigris"
+ portlet-decorator="tigris"
+ />
+
+ <document-order>Jetspeed2.link</document-order>
+ <document-order>Jetspeed2Wiki.link</document-order>
+ <document-order>apache_portals.link</document-order>
+ <document-order>apache.link</document-order>
+
+ <menu name="page-navigations">
+ <separator>
+ <text>Top Pages</text>
+ <metadata name="text" xml:lang="fr">Page haut</metadata>
+ <metadata name="text" xml:lang="ja">ããããã¼ã¸</metadata>
+ <metadata name="text" xml:lang="es">Páginas más populares</metadata>
+ <metadata name="text" xml:lang="zh">é¡¶å±é¡µ</metadata>
+ <metadata name="text" xml:lang="zh-TW">é 層é </metadata>
+ </separator>
+ <options>/Administrative</options>
+ <separator>
+ <text>Profiled Pages</text>
+ <metadata name="text"
xml:lang="ja">ãããã¡ã¤ã«ãã¼ã¸</metadata>
+ <metadata name="text" xml:lang="es">Páginas del Perfil</metadata>
+ <metadata name="text" xml:lang="zh">Profiled页</metadata>
+ <metadata name="text" xml:lang="zh-TW">Profiledé </metadata>
+ </separator>
+ <options regexp="true">/p[0-9][0-9][0-9].psml</options>
+ <separator>
+ <text>Non Java Pages</text>
+ <metadata name="text" xml:lang="ja">Non-Javaãã¼ã¸</metadata>
+ <metadata name="text" xml:lang="es">Ejemplos sin java</metadata>
+ <metadata name="text" xml:lang="zh">éJava Portlet页</metadata>
+ <metadata name="text" xml:lang="zh-TW">éJava Portleté </metadata>
+ </separator>
+ <options>/non-java</options>
+ </menu>
+
+ <!-- temporary menu definitions for jscookmenu layout decorator; will be
standard -->
+ <menu name="site-navigations" regexp="true" options="/*/,/*.psml"
depth="-1"/>
+ <menu name="additional-links" regexp="true" options="/*.link"/>
+
+ <security-constraints>
+ <security-constraints-ref>public-view</security-constraints-ref>
+ </security-constraints>
+</folder>
Added: portals/jetspeed-2/trunk/etc/xsd/examples/page.xml
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/etc/xsd/examples/page.xml?view=auto&rev=501706
==============================================================================
--- portals/jetspeed-2/trunk/etc/xsd/examples/page.xml (added)
+++ portals/jetspeed-2/trunk/etc/xsd/examples/page.xml Tue Jan 30 19:14:14 2007
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<page-security
+ xmlns="http://portals.apache.org/jetspeed"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://portals.apache.org/jetspeed page-security.xsd">
+
+ <!-- define global admin constraints -->
+ <security-constraints-def name="admin">
+ <security-constraint>
+ <roles>admin</roles>
+ <permissions>view, edit</permissions>
+ </security-constraint>
+ </security-constraints-def>
+ <global-security-constraints-ref>admin</global-security-constraints-ref>
+
+ <!-- define manager constraints -->
+ <security-constraints-def name="manager">
+ <security-constraint>
+ <roles>manager</roles>
+ <permissions>view</permissions>
+ </security-constraint>
+ </security-constraints-def>
+
+ <!-- define user constraints -->
+ <security-constraints-def name="users">
+ <security-constraint>
+ <roles>user, manager</roles>
+ <permissions>view</permissions>
+ </security-constraint>
+ </security-constraints-def>
+
+ <!-- define public constraints -->
+ <security-constraints-def name="public-view">
+ <security-constraint>
+ <users>*</users>
+ <permissions>view</permissions>
+ </security-constraint>
+ </security-constraints-def>
+ <security-constraints-def name="public-edit">
+ <security-constraint>
+ <users>*</users>
+ <permissions>view, edit</permissions>
+ </security-constraint>
+ </security-constraints-def>
+
+ <security-constraints-def name="delete3">
+ <security-constraint>
+ <users>replaceme</users>
+ <permissions>view, edit, help</permissions>
+ </security-constraint>
+ <!-- delete below -->
+ <security-constraint>
+ <roles>manager</roles>
+ <permissions>view</permissions>
+ </security-constraint>
+ <security-constraint>
+ <roles>admin</roles>
+ <permissions>view, edit</permissions>
+ </security-constraint>
+ <security-constraint>
+ <roles>guest</roles>
+ <permissions>view</permissions>
+ </security-constraint>
+ </security-constraints-def>
+
+ <security-constraints-def name="deleteme">
+ <security-constraint>
+ <roles>*</roles>
+ <permissions>view, edit</permissions>
+ </security-constraint>
+ </security-constraints-def>
+
+</page-security>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]