Date: 2004-11-03T13:06:37
   Editor: BrianLee <[EMAIL PROTECTED]>
   Wiki: Jakarta-Slide Wiki
   Page: DomainConfig
   URL: http://wiki.apache.org/jakarta-slide/DomainConfig

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -8,7 +8,7 @@
 
 MultiStoreConfig - examples and information on configuring Domain.xml for multiple 
stores
 
-== Default Domain.xml (as found in 2.1b2 bundle) ==
+=== Default Domain.xml (as found in 2.1b2 bundle) ===
 {{{
 <?xml version="1.0"?>
 <slide>
@@ -411,7 +411,7 @@
 </slide>
 }}} 
 
-== Definition ==
+==== Definition ====
 From my understanding, the definition section sets where all the data concerning 
different parts of Slide will be stored.
 In the example all sub-stores (lock, content, etc...) are stored using 
"org.apache.slide.store.txfile.TxXMLFileDescriptorsStore", which
 essentially stores data in an XML formatted file.
@@ -459,7 +459,7 @@
         </definition>
 }}}
 
-== Reference ==
+===== Reference =====
 
 {{{
 <securitystore>
@@ -469,7 +469,7 @@
 
 "The reference means that for the security store the same object is used as is, is 
configured at the node store." To get a better understanding compare the default 
nodestore definition (above) and the nodestore definition using JDBC. The default 
nodestore stores all of its data in XML format text files while the nodestore below 
stores the data in predefined tables.
 
-== Definition Using JDBC ==
+===== Definition Using JDBC =====
 
 Ofcourse, for ease of maintenance most people will probably want to use a database to 
store most of the data related to Slide. In the example below,
 most sub-stores (except content) are using the JDBC configured nodestore. 
@@ -513,4 +513,176 @@
             </store>
             <scope match="/" store="CansasStore"/>
         </definition>
+}}}
+
+==== Data ====
+
+{{{
+<data>
+            <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
+                <!-- Subject can be:
+                any user             "all"
+                authenticated user   "authenticated"
+                unauthenticated user "unauthenticated"
+                self                 "self"
+                owner of resource    "owner"
+                a user               "/users/john"
+                a role               "/roles/admin"
+                -->
+                <permission action="all" subject="/roles/root" inheritable="true"/>
+                <permission action="/actions/read-acl" subject="all" 
inheritable="true" negative="true"/>
+                <permission action="/actions/write-acl" subject="all" 
inheritable="true" negative="true"/>
+                <permission action="/actions/unlock" subject="all" inheritable="true" 
negative="true"/>
+                <permission action="/actions/read" subject="all" inheritable="true"/>
+                <!-- /users -->
+                <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/users">
+                    <permission action="all" subject="self" inheritable="true"/>
+                    <permission action="all" subject="/roles/projector" 
inheritable="true"/>
+                    <permission action="all" subject="unauthenticated" 
inheritable="true" negative="true"/>
+                    <!-- /users/root represents the administrator -->
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/users/root">
+                        <revision>
+                            <property namespace="http://jakarta.apache.org/slide/"; 
name="password">root</property> 
+                        </revision>
+                    </objectnode>
+                    <!-- /users/john and /users/john2 represent authenticated users 
-->
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/users/john">
+                        <revision>
+                            <property namespace="http://jakarta.apache.org/slide/"; 
name="password">john</property> 
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/users/john2">
+                        <revision>
+                            <property namespace="http://jakarta.apache.org/slide/"; 
name="password">john2</property> 
+                        </revision>
+                    </objectnode>
+                    <!-- /users/guest represents an authenticated or unauthenticated 
guest user -->
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/users/guest">
+                        <revision>
+                            <property namespace="http://jakarta.apache.org/slide/"; 
name="password">guest</property> 
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/users/projector">
+                        <revision>
+                            <property namespace="http://jakarta.apache.org/slide/"; 
name="password">projector</property> 
+                        </revision>
+                    </objectnode>
+                </objectnode>
+                <!-- /roles -->
+                <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/roles">
+                    <permission action="all" subject="self" inheritable="true"/>
+                    <permission action="all" subject="/roles/projector" 
inheritable="true"/>
+                    <permission action="all" subject="unauthenticated" 
inheritable="true" negative="true"/>
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/roles/root">
+                        <revision>
+                            <property name="group-member-set"><![CDATA[<D:href 
xmlns:D='DAV:'>/users/root</D:href>]]></property>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/roles/user">
+                        <revision>
+                            <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>
+<D:href xmlns:D='DAV:'>/users/projector</D:href>]]>
+</property>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/roles/guest">
+                        <revision>
+                            <property name="group-member-set"><![CDATA[<D:href 
xmlns:D='DAV:'>/users/guest</D:href>]]></property>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/roles/projector">
+                        <revision>
+                            <property name="group-member-set"><![CDATA[<D:href 
xmlns:D='DAV:'>/users/root</D:href><D:href 
xmlns:D='DAV:'>/users/projector</D:href>]]></property>
+                        </revision>
+                    </objectnode>
+                </objectnode>
+                <!-- action -->
+                <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions">
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/read">
+                        <revision>
+                            <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>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/read-acl">
+                        <revision>
+                            <property name="privilege-member-set"/>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/read-current-user-privilege-set">
+                        <revision>
+                            <property name="privilege-member-set"/>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/write">
+                        <revision>
+                            <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>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/write-acl">
+                        <revision>
+                            <property name="privilege-member-set"/>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/write-properties">
+                        <revision>
+                            <property name="privilege-member-set"/>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/write-content">
+                        <revision>
+                            <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>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/bind">
+                        <revision>
+                            <property name="privilege-member-set"/>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/unbind">
+                        <revision>
+                            <property name="privilege-member-set"/>
+                        </revision>
+                    </objectnode>
+                    <objectnode classname="org.apache.slide.structure.ActionNode" 
uri="/actions/unlock">
+                        <revision>
+                            <property name="privilege-member-set"/>
+                        </revision>
+                    </objectnode>
+                </objectnode>
+                <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/files">
+                    <permission action="all" subject="unauthenticated" 
inheritable="true"/>
+                    <permission action="/actions/write" subject="/roles/user" 
inheritable="true"/>
+                    <permission action="/actions/read-acl" subject="owner" 
inheritable="true"/>
+                </objectnode>
+                <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/projector">
+                    <permission action="all" subject="unauthenticated" 
inheritable="true"/>
+                    <permission action="/actions/write" subject="/roles/projector" 
inheritable="true"/>
+                    <permission action="/actions/read-acl" subject="owner" 
inheritable="true"/>
+                       <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/projector/work">
+                       </objectnode>
+                </objectnode>
+                <!-- DeltaV: default history and workspace paths -->
+                <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/history">
+                    <permission action="all" subject="unauthenticated" 
inheritable="true"/>
+                    <permission action="/actions/write" subject="/roles/user" 
inheritable="true"/>
+                    <permission action="/actions/read-acl" subject="owner" 
inheritable="true"/>
+                </objectnode>
+                <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/workspace">
+                    <permission action="all" subject="unauthenticated" 
inheritable="true"/>
+                    <permission action="/actions/write" subject="/roles/user" 
inheritable="true"/>
+                    <permission action="/actions/read-acl" subject="owner" 
inheritable="true"/>
+                </objectnode>
+                <objectnode classname="org.apache.slide.structure.SubjectNode" 
uri="/workingresource">
+                    <permission action="all" subject="unauthenticated" 
inheritable="true"/>
+                    <permission action="/actions/write" subject="/roles/user" 
inheritable="true"/>
+                    <permission action="/actions/read-acl" subject="owner" 
inheritable="true"/>
+                </objectnode>
+            </objectnode>
+        </data>
 }}}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to