portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject svn commit: r501706 - in /portals/jetspeed-2/trunk/etc/xsd/examples: Jetspeed2.xml folder.xml page.xml
Date Wed, 31 Jan 2007 03:14:15 GMT
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: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message