wam 2004/02/25 04:02:42
Modified: src/conf/webapp Domain.xml
Log:
sample configuration for Indexer
Revision Changes Path
1.52 +229 -224 jakarta-slide/src/conf/webapp/Domain.xml
Index: Domain.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/src/conf/webapp/Domain.xml,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- Domain.xml 24 Feb 2004 16:59:00 -0000 1.51
+++ Domain.xml 25 Feb 2004 12:02:42 -0000 1.52
@@ -1,67 +1,74 @@
<?xml version="1.0"?>
<slide>
- <namespace name="slide">
- <definition>
- <store name="tx">
- <nodestore
classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
- <parameter name="rootpath">store/metadata</parameter>
- <parameter name="workpath">work/metadata</parameter>
- </nodestore>
- <securitystore>
- <reference store="nodestore"/>
- </securitystore>
- <lockstore>
- <reference store="nodestore"/>
- </lockstore>
- <revisiondescriptorsstore>
- <reference store="nodestore"/>
- </revisiondescriptorsstore>
- <revisiondescriptorstore>
- <reference store="nodestore"/>
- </revisiondescriptorstore>
- <contentstore
classname="org.apache.slide.store.txfile.TxFileContentStore">
- <parameter name="rootpath">store/content</parameter>
- <parameter name="workpath">work/content</parameter>
- </contentstore>
- </store>
- <scope match="/" store="tx"/>
- </definition>
- <configuration>
- <!-- Actions mapping -->
- <read-object>/actions/read</read-object>
- <create-object>/actions/write</create-object>
- <remove-object>/actions/write</remove-object>
- <grant-permission>/actions/write-acl</grant-permission>
- <revoke-permission>/actions/write-acl</revoke-permission>
- <read-permissions>/actions/read-acl</read-permissions>
-
<read-own-permissions>/actions/read-current-user-privilege-set</read-own-permissions>
- <lock-object>/actions/write</lock-object>
- <kill-lock>/actions/unlock</kill-lock>
- <read-locks>/actions/read</read-locks>
- <read-revision-metadata>/actions/read</read-revision-metadata>
-
<create-revision-metadata>/actions/write-properties</create-revision-metadata>
-
<modify-revision-metadata>/actions/write-properties</modify-revision-metadata>
-
<remove-revision-metadata>/actions/write-properties</remove-revision-metadata>
- <read-revision-content>/actions/read</read-revision-content>
-
<create-revision-content>/actions/write-content</create-revision-content>
-
<modify-revision-content>/actions/write-content</modify-revision-content>
-
<remove-revision-content>/actions/write-content</remove-revision-content>
- <bind-member>/actions/bind</bind-member>
- <unbind-member>/actions/unbind</unbind-member>
- <!-- Paths configuration -->
- <userspath>/users</userspath>
- <rolespath>/roles</rolespath>
- <actionspath>/actions</actionspath>
- <filespath>/files</filespath>
- <parameter name="dav">true</parameter>
- <parameter name="standalone">true</parameter>
- <parameter name="acl_inheritance_type">path</parameter>
- <!-- Nested roles: 0 means no nesting (default), 1 means one sublevel,
etc. -->
- <parameter name="nested_roles_maxdepth">0</parameter>
- </configuration>
- <data>
- <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
- <!-- Subject can be:
+ <namespace name="slide">
+ <definition>
+ <store name="tx">
+ <nodestore
classname="org.apache.slide.store.txfile.TxXMLFileDescriptorsStore">
+ <parameter name="rootpath">store/metadata</parameter>
+ <parameter name="workpath">work/metadata</parameter>
+ </nodestore>
+ <securitystore>
+ <reference store="nodestore"/>
+ </securitystore>
+ <lockstore>
+ <reference store="nodestore"/>
+ </lockstore>
+ <revisiondescriptorsstore>
+ <reference store="nodestore"/>
+ </revisiondescriptorsstore>
+ <revisiondescriptorstore>
+ <reference store="nodestore"/>
+ </revisiondescriptorstore>
+ <contentstore classname="org.apache.slide.store.txfile.TxFileContentStore">
+ <parameter name="rootpath">store/content</parameter>
+ <parameter name="workpath">work/content</parameter>
+ </contentstore>
+ <!-- uncomment if you want to use the sample Indexer -->
+ <!-- be sure to have Lucene in your classpath -->
+ <!--
+ <contentindexer classname="org.apache.slide.index.SampleTxtContainsIndexer">
+ <parameter name="indexpath">./index</parameter>
+ </contentindexer>
+ -->
+ </store>
+ <scope match="/" store="tx"/>
+ </definition>
+ <configuration>
+ <!-- Actions mapping -->
+ <read-object>/actions/read</read-object>
+ <create-object>/actions/write</create-object>
+ <remove-object>/actions/write</remove-object>
+ <grant-permission>/actions/write-acl</grant-permission>
+ <revoke-permission>/actions/write-acl</revoke-permission>
+ <read-permissions>/actions/read-acl</read-permissions>
+
<read-own-permissions>/actions/read-current-user-privilege-set</read-own-permissions>
+ <lock-object>/actions/write</lock-object>
+ <kill-lock>/actions/unlock</kill-lock>
+ <read-locks>/actions/read</read-locks>
+ <read-revision-metadata>/actions/read</read-revision-metadata>
+ <create-revision-metadata>/actions/write-properties</create-revision-metadata>
+ <modify-revision-metadata>/actions/write-properties</modify-revision-metadata>
+ <remove-revision-metadata>/actions/write-properties</remove-revision-metadata>
+ <read-revision-content>/actions/read</read-revision-content>
+ <create-revision-content>/actions/write-content</create-revision-content>
+ <modify-revision-content>/actions/write-content</modify-revision-content>
+ <remove-revision-content>/actions/write-content</remove-revision-content>
+ <bind-member>/actions/bind</bind-member>
+ <unbind-member>/actions/unbind</unbind-member>
+ <!-- Paths configuration -->
+ <userspath>/users</userspath>
+ <rolespath>/roles</rolespath>
+ <actionspath>/actions</actionspath>
+ <filespath>/files</filespath>
+ <parameter name="dav">true</parameter>
+ <parameter name="standalone">true</parameter>
+ <parameter name="acl_inheritance_type">path</parameter>
+ <!-- Nested roles: 0 means no nesting (default), 1 means one sublevel, etc.
-->
+ <parameter name="nested_roles_maxdepth">0</parameter>
+ </configuration>
+ <data>
+ <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
+ <!-- Subject can be:
any user "all"
authenticated user "authenticated"
unauthenticated user "unauthenticated"
@@ -70,137 +77,137 @@
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="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"/>
- </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"/>
- </revision>
- </objectnode>
- <objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/users/john2">
- <revision>
- <property namespace="http://jakarta.apache.org/slide/"
name="password"/>
- </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"/>
- </revision>
- </objectnode>
- </objectnode>
- <!-- /roles -->
- <objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/roles">
- <permission action="all" subject="self" 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>]]></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>
- <!-- 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>
- <!-- 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>
- </namespace>
- <!--
+ <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="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"/>
+ </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"/>
+ </revision>
+ </objectnode>
+ <objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/users/john2">
+ <revision>
+ <property namespace="http://jakarta.apache.org/slide/"
name="password"/>
+ </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"/>
+ </revision>
+ </objectnode>
+ </objectnode>
+ <!-- /roles -->
+ <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/roles">
+ <permission action="all" subject="self" 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>]]></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>
+ <!-- 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>
+ <!-- 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>
+ </namespace>
+ <!--
DeltaV global parameters
========================
* historypath (mandatory=no, default="/history"):
@@ -257,41 +264,39 @@
- String redirectUri(String uri)
- NodeRevisionNumber redirectLatestRevisionNumber(String uri)
-->
- <parameter name="historypath">/history</parameter>
- <parameter name="workspacepath">/workspace</parameter>
- <parameter name="workingresourcepath">/workingresource</parameter>
- <parameter name="auto-version">checkout-checkin</parameter>
- <parameter name="auto-version-control">false</parameter>
- <parameter name="versioncontrol-exclude"/>
- <parameter name="checkout-fork">forbidden</parameter>
- <parameter name="checkin-fork">forbidden</parameter>
-
- <!-- Event configuration -->
- <events>
- <event classname="org.apache.slide.event.ContentEvent" enable="true" />
- <event classname="org.apache.slide.event.ContentEvent" method="retrieve"
enable="false" />
- <event classname="org.apache.slide.event.TransactionEvent" enable="true" />
- <event classname="org.apache.slide.webdav.event.WebdavEvent" enable="true"
/>
- <event classname="org.apache.slide.event.EventCollection" enable="true" />
-
- <!-- uncomment the following line to get all events logged with level info
-->
-<!-- <listener classname="org.apache.slide.util.event.EventLogger" /> -->
- <!-- the event collectors are required to enable nofication or index
trigger -->
- <listener classname="org.apache.slide.event.VetoableEventCollector" />
- <listener classname="org.apache.slide.event.TransientEventCollector" />
- <!-- the notification trigger enables remote notifications -->
- <listener classname="org.apache.slide.webdav.event.NotificationTrigger">
- <configuration>
- <notification protocol="tcp" include-events="false" />
- </configuration>
- </listener>
- <!-- uncomment the following part to enable event based indexing -->
- <!--
+ <parameter name="historypath">/history</parameter>
+ <parameter name="workspacepath">/workspace</parameter>
+ <parameter name="workingresourcepath">/workingresource</parameter>
+ <parameter name="auto-version">checkout-checkin</parameter>
+ <parameter name="auto-version-control">false</parameter>
+ <parameter name="versioncontrol-exclude"/>
+ <parameter name="checkout-fork">forbidden</parameter>
+ <parameter name="checkin-fork">forbidden</parameter>
+ <!-- Event configuration -->
+ <events>
+ <event classname="org.apache.slide.event.ContentEvent" enable="true"/>
+ <event classname="org.apache.slide.event.ContentEvent" method="retrieve"
enable="false"/>
+ <event classname="org.apache.slide.event.TransactionEvent" enable="true"/>
+ <event classname="org.apache.slide.webdav.event.WebdavEvent" enable="true"/>
+ <event classname="org.apache.slide.event.EventCollection" enable="true"/>
+ <!-- uncomment the following line to get all events logged with level info -->
+ <!-- <listener classname="org.apache.slide.util.event.EventLogger" /> -->
+ <!-- the event collectors are required to enable nofication or index trigger -->
+ <listener classname="org.apache.slide.event.VetoableEventCollector"/>
+ <listener classname="org.apache.slide.event.TransientEventCollector"/>
+ <!-- the notification trigger enables remote notifications -->
+ <listener classname="org.apache.slide.webdav.event.NotificationTrigger">
+ <configuration>
+ <notification protocol="tcp" include-events="false"/>
+ </configuration>
+ </listener>
+ <!-- uncomment the following part to enable event based indexing -->
+ <!--
<listener classname="org.apache.slide.search.IndexTrigger">
<configuration>
<indexer classname="org.apache.slide.index.DemoIndexer"
uri="/files/contelligent/test" />
</configuration>
</listener>
-->
- </events>
+ </events>
</slide>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]