home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / slide.xconf < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  16.9 KB  |  297 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <slide>
  18.     <namespace name="cocoon">
  19.         <definition>
  20.             <store name="tx">
  21.                 <nodestore classname="org.apache.cocoon.components.slide.impl.ContextTxXMLFileDescriptorsStore">
  22.                     <parameter name="rootpath">slide/store/metadata</parameter>
  23.                     <parameter name="workpath">slide/work/metadata</parameter>
  24.                 </nodestore>
  25.                 <securitystore>
  26.                     <reference store="nodestore"/>
  27.                 </securitystore>
  28.                 <lockstore>
  29.                     <reference store="nodestore"/>
  30.                 </lockstore>
  31.                 <revisiondescriptorsstore>
  32.                     <reference store="nodestore"/>
  33.                 </revisiondescriptorsstore>
  34.                 <revisiondescriptorstore>
  35.                     <reference store="nodestore"/>
  36.                 </revisiondescriptorstore>
  37.                 <contentstore classname="org.apache.cocoon.components.slide.impl.ContextTxFileContentStore">
  38.                     <parameter name="rootpath">slide/store/content</parameter>
  39.                     <parameter name="workpath">slide/work/content</parameter>
  40.                 </contentstore>
  41.             </store>
  42.             <scope match="/" store="tx"/>
  43.         </definition>
  44.         <configuration>
  45.             <!-- Actions mapping -->
  46.             <read-object>/actions/read</read-object>
  47.             <create-object>/actions/write</create-object>
  48.             <remove-object>/actions/write</remove-object>
  49.             <grant-permission>/actions/write-acl</grant-permission>
  50.             <revoke-permission>/actions/write-acl</revoke-permission>
  51.             <read-permissions>/actions/read-acl</read-permissions>
  52.             <read-own-permissions>/actions/read-current-user-privilege-set</read-own-permissions>
  53.             <lock-object>/actions/write</lock-object>
  54.             <kill-lock>/actions/unlock</kill-lock>
  55.             <read-locks>/actions/read</read-locks>
  56.             <read-revision-metadata>/actions/read</read-revision-metadata>
  57.             <create-revision-metadata>/actions/write-properties</create-revision-metadata>
  58.             <modify-revision-metadata>/actions/write-properties</modify-revision-metadata>
  59.             <remove-revision-metadata>/actions/write-properties</remove-revision-metadata>
  60.             <read-revision-content>/actions/read</read-revision-content>
  61.             <create-revision-content>/actions/write-content</create-revision-content>
  62.             <modify-revision-content>/actions/write-content</modify-revision-content>
  63.             <remove-revision-content>/actions/write-content</remove-revision-content>
  64.             <bind-member>/actions/bind</bind-member>
  65.             <unbind-member>/actions/unbind</unbind-member>
  66.             <!-- Paths configuration -->
  67.             <userspath>/users</userspath>
  68.             <rolespath>/roles</rolespath>
  69.             <actionspath>/actions</actionspath>
  70.             <filespath>/files</filespath>
  71.             <parameter name="dav">true</parameter>
  72.             <parameter name="standalone">true</parameter>
  73.             <parameter name="acl_inheritance_type">path</parameter>
  74.             <!-- Nested roles: 0 means no nesting (default), 1 means one sublevel, etc. -->
  75.             <parameter name="nested_roles_maxdepth">0</parameter>
  76.             
  77.             <!--
  78.             <content-interceptor class="org.apache.cocoon.components.slide.impl.JMSContentInterceptor">
  79.               <parameter name="java.naming.factory.initial">org.exolab.jms.jndi.InitialContextFactory</parameter>
  80.               <parameter name="java.naming.provider.url">rmi://localhost:1099/</parameter>
  81.               <parameter name="topic-factory">JmsTopicConnectionFactory</parameter>
  82.               <parameter name="topic">topic1</parameter>
  83.               <parameter name="ack-mode">dups</parameter>
  84.               <parameter name="persistent-delivery">false</parameter>
  85.               <parameter name="priority">4</parameter>
  86.               <parameter name="time-to-live">1000</parameter>
  87.             </content-interceptor>
  88.             -->
  89.             
  90.         </configuration>
  91.         <data>
  92.             <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
  93.                 <!-- Subject can be:
  94.                 any user             "all"
  95.                 authenticated user   "authenticated"
  96.                 unauthenticated user "unauthenticated"
  97.                 self                 "self"
  98.                 owner of resource    "owner"
  99.                 a user               "/users/john"
  100.                 a role               "/roles/admin"
  101.                 -->
  102.                 <permission action="all" subject="/roles/root" inheritable="true"/>
  103.                 <permission action="/actions/read-acl" subject="all" inheritable="true" negative="true"/>
  104.                 <permission action="/actions/write-acl" subject="all" inheritable="true" negative="true"/>
  105.                 <permission action="/actions/unlock" subject="all" inheritable="true" negative="true"/>
  106.                 <permission action="/actions/read" subject="all" inheritable="true"/>
  107.                 <!-- /users -->
  108.                 <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users">
  109.                     <permission action="all" subject="self" inheritable="true"/>
  110.                     <permission action="all" subject="unauthenticated" inheritable="true" negative="true"/>
  111.                     <!-- /users/root represents the administrator -->
  112.                     <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/root">
  113.                         <revision>
  114.                             <property namespace="http://jakarta.apache.org/slide/" name="password">root</property> 
  115.                         </revision>
  116.                     </objectnode>
  117.                     <!-- /users/john and /users/john2 represent authenticated users -->
  118.                     <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/john">
  119.                         <revision>
  120.                             <property namespace="http://jakarta.apache.org/slide/" name="password">john</property> 
  121.                         </revision>
  122.                     </objectnode>
  123.                     <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/john2">
  124.                         <revision>
  125.                             <property namespace="http://jakarta.apache.org/slide/" name="password">john2</property> 
  126.                         </revision>
  127.                     </objectnode>
  128.                     <!-- /users/guest represents an authenticated or unauthenticated guest user -->
  129.                     <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/users/guest">
  130.                         <revision>
  131.                             <property namespace="http://jakarta.apache.org/slide/" name="password">guest</property> 
  132.                         </revision>
  133.                     </objectnode>
  134.                 </objectnode>
  135.                 <!-- /roles -->
  136.                 <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles">
  137.                     <permission action="all" subject="self" inheritable="true"/>
  138.                     <permission action="all" subject="unauthenticated" inheritable="true" negative="true"/>
  139.                     <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/root">
  140.                         <revision>
  141.                             <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/root</D:href>]]></property>
  142.                         </revision>
  143.                     </objectnode>
  144.                     <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/user">
  145.                         <revision>
  146.                             <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/john</D:href><D:href xmlns:D='DAV:'>/users/john2</D:href><D:href xmlns:D='DAV:'>/users/root</D:href>]]></property>
  147.                         </revision>
  148.                     </objectnode>
  149.                     <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles/guest">
  150.                         <revision>
  151.                             <property name="group-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/users/guest</D:href>]]></property>
  152.                         </revision>
  153.                     </objectnode>
  154.                 </objectnode>
  155.                 <!-- action -->
  156.                 <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions">
  157.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read">
  158.                         <revision>
  159.                             <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/read-acl</D:href> <D:href xmlns:D='DAV:'>/actions/read-current-user-privilege-set</D:href>]]></property>
  160.                         </revision>
  161.                     </objectnode>
  162.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read-acl">
  163.                         <revision>
  164.                             <property name="privilege-member-set"/>
  165.                         </revision>
  166.                     </objectnode>
  167.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/read-current-user-privilege-set">
  168.                         <revision>
  169.                             <property name="privilege-member-set"/>
  170.                         </revision>
  171.                     </objectnode>
  172.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write">
  173.                         <revision>
  174.                             <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/write-acl</D:href> <D:href xmlns:D='DAV:'>/actions/write-properties</D:href> <D:href xmlns:D='DAV:'>/actions/write-content</D:href>]]></property>
  175.                         </revision>
  176.                     </objectnode>
  177.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-acl">
  178.                         <revision>
  179.                             <property name="privilege-member-set"/>
  180.                         </revision>
  181.                     </objectnode>
  182.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-properties">
  183.                         <revision>
  184.                             <property name="privilege-member-set"/>
  185.                         </revision>
  186.                     </objectnode>
  187.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/write-content">
  188.                         <revision>
  189.                             <property name="privilege-member-set"><![CDATA[<D:href xmlns:D='DAV:'>/actions/bind</D:href> <D:href xmlns:D='DAV:'>/actions/unbind</D:href>]]></property>
  190.                         </revision>
  191.                     </objectnode>
  192.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/bind">
  193.                         <revision>
  194.                             <property name="privilege-member-set"/>
  195.                         </revision>
  196.                     </objectnode>
  197.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/unbind">
  198.                         <revision>
  199.                             <property name="privilege-member-set"/>
  200.                         </revision>
  201.                     </objectnode>
  202.                     <objectnode classname="org.apache.slide.structure.ActionNode" uri="/actions/unlock">
  203.                         <revision>
  204.                             <property name="privilege-member-set"/>
  205.                         </revision>
  206.                     </objectnode>
  207.                 </objectnode>
  208.                 <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/files">
  209.                     <permission action="all" subject="unauthenticated" inheritable="true"/>
  210.                     <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
  211.                     <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
  212.                 </objectnode>
  213.                 <!-- DeltaV: default history and workspace paths -->
  214.                 <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/history">
  215.                     <permission action="all" subject="unauthenticated" inheritable="true"/>
  216.                     <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
  217.                     <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
  218.                 </objectnode>
  219.                 <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/workspace">
  220.                     <permission action="all" subject="unauthenticated" inheritable="true"/>
  221.                     <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
  222.                     <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
  223.                 </objectnode>
  224.                 <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/workingresource">
  225.                     <permission action="all" subject="unauthenticated" inheritable="true"/>
  226.                     <permission action="/actions/write" subject="/roles/user" inheritable="true"/>
  227.                     <permission action="/actions/read-acl" subject="owner" inheritable="true"/>
  228.                 </objectnode>
  229.             </objectnode>
  230.         </data>
  231.     </namespace>
  232.     <!--
  233.     DeltaV global parameters
  234.     ========================
  235.     * historypath (mandatory=no, default="/history"):
  236.     Specifies a Slide path which determines the location where this DeltaV
  237.     server stores history data.
  238.  
  239.     * workspacepath (mandatory=no, default="/workspace"):
  240.     Specifies a Slide path which determines the location where this DeltaV
  241.     server allows workspaces to reside.
  242.  
  243.     * workingresourcepath (mandatory=no, default="/workingresource"):
  244.     Specifies a Slide path which determines the location where this DeltaV
  245.     server stores working resources.
  246.  
  247.     * auto-version (mandatory=no, default="checkout-checkin"):
  248.     Controls the DeltaV auto-version behaviour.
  249.  
  250.     * auto-version-control (mandatory=no, default="false"):
  251.     Indicates if a resource just created by a PUT should be set under
  252.     version-control.
  253.  
  254.    * versioncontrol-exclude (mandatory=no, default=""):
  255.    Specifies a Slide path which determines resources which are excluded from version-control.
  256.    The default value "" makes no path being excluded.
  257.  
  258.     * checkout-fork (mandatory=no, default="forbidden"):
  259.     Controls the DeltaV check-out behaviour when a version is already
  260.     checked-out or has a successor.
  261.  
  262.     * checkin-fork (mandatory=no, default="forbidden"):
  263.     Controls the DeltaV check-out behaviour when a version has already a
  264.     successor.
  265.  
  266.     * standardLivePropertiesClass (mandatory=no,
  267.     default="org.apache.slide.webdav.util.resourcekind.AbstractResourceKind"):
  268.     Determines the "agent" knowing about what the standard live properties are.
  269.     It should be a loadable class containing the following static methods:
  270.     - boolean isLiveProperty(String propName)
  271.     - boolean isProtectedProperty(String propName)
  272.     - boolean isComputedProperty(String propName)
  273.     - Set getAllLiveProperties()
  274.     - Set getAllProtectedProperties()
  275.     - Set getAllComputedProperties()
  276.  
  277.     * uriRedirectorClass (mandatory=no,
  278.     default="org.apache.slide.webdav.util.DeltavUriRedirector"):
  279.     Determines the URI redirector class. The DeltaV URI redirector is in
  280.     charge of the following redirections:
  281.     - version URI to history URI, e.g. /history/2/1.4 to /history/2
  282.     - latest revision number for history resource to 0.0
  283.     - latest revision number for version resource to last URI token,
  284.     e.g. /history/2/1.4 to 1.4
  285.     It should be a loadable class containing the following static methods:
  286.     - String redirectUri(String uri)
  287.     - NodeRevisionNumber redirectLatestRevisionNumber(String uri)
  288.     -->
  289.     <parameter name="historypath">/history</parameter>
  290.     <parameter name="workspacepath">/workspace</parameter>
  291.     <parameter name="workingresourcepath">/workingresource</parameter>
  292.     <parameter name="auto-version">checkout-checkin</parameter>
  293.     <parameter name="auto-version-control">false</parameter>
  294.     <parameter name="versioncontrol-exclude"/>
  295.     <parameter name="checkout-fork">forbidden</parameter>
  296.     <parameter name="checkin-fork">forbidden</parameter>
  297. </slide>