You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Kurapati, Rama" <Ra...@labbook.com> on 2001/02/21 22:03:33 UTC
Sorry - Multiple Namespaces
Documentation is pretty good and covered every thing on configuration. May
be i was not clear in posting the my doubt about adding different services
for different namespaces in slide Domain.xml. I have added an additional
namespace element in Domain.xml. I have created a webfolder for
http://localhost:8080/slide. It shows three collections namely actions,files
and users. Now the ponit is , after copying/putting a resource to this
webfolder, it is placing the resource in the first namespace. May i get any
help on
setting the additional namespace to show both the namespaces in the
webfolder. A sample Domain.xml file would help me a lot
Rama
Here is my Domain.xml
<?xml version="1.0"?>
<slide>
<namespace name="webdav">
<definition>
<store name="memory">
<nodestore name="jdbc"
classname="slidestore.reference.JDBCDescriptorsStore">
<parameter name="driver">org.hsql.jdbcDriver</parameter>
<parameter name="url">HypersonicSQL:hsql://localhost</parameter>
<parameter name="user">sa</parameter>
<parameter name="password" />
</nodestore>
<securitystore>
<reference store="nodestore" />
</securitystore>
<lockstore>
<reference store="nodestore" />
</lockstore>
<revisiondescriptorsstore>
<reference store="nodestore" />
</revisiondescriptorsstore>
<revisiondescriptorstore>
<reference store="nodestore" />
</revisiondescriptorstore>
<contentstore name="file"
classname="slidestore.reference.FileContentStore">
<parameter name="rootpath">files</parameter>
</contentstore>
</store>
<scope match="/" store="memory" />
</definition>
<configuration>
<default-action>/actions</default-action>
<read-object>/actions/read</read-object>
<create-object>/actions/write</create-object>
<remove-object>/actions/write</remove-object>
<grant-permission>/actions/manage</grant-permission>
<revoke-permission>/actions/manage</revoke-permission>
<read-permissions>/actions/manage</read-permissions>
<lock-object>/actions/write</lock-object>
<kill-lock>/actions/manage</kill-lock>
<read-locks>/actions/read</read-locks>
<read-revision-metadata>/actions/read</read-revision-metadata>
<create-revision-metadata>/actions/write</create-revision-metadata>
<modify-revision-metadata>/actions/write</modify-revision-metadata>
<remove-revision-metadata>/actions/write</remove-revision-metadata>
<read-revision-content>/actions/read</read-revision-content>
<create-revision-content>/actions/write</create-revision-content>
<modify-revision-content>/actions/write</modify-revision-content>
<remove-revision-content>/actions/write</remove-revision-content>
<userspath>/users</userspath>
<filespath></filespath>
<parameter name="dav">true</parameter>
<parameter name="standalone">true</parameter>
</configuration>
<data>
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/">
<permission action="/actions" subject="/users"/>
<permission action="/actions/read" subject="/users"/>
<!-- /users represents the unauthenticated user -->
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/users">
<!-- /users/root represents the administrator -->
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/users">
<revision>
<property name="password">root</property>
</revision>
</objectnode>
<!-- /users/john represents an authenticated user -->
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/users/john">
<revision>
<property name="password">john</property>
</revision>
</objectnode>
<!-- /users/guest represents an authenticated guest user -->
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/users/guest">
<revision>
<property name="password"></property>
</revision>
</objectnode>
</objectnode>
<objectnode classname="org.apache.slide.structure.ActionNode"
uri="/actions">
<objectnode classname="org.apache.slide.structure.ActionNode"
uri="/actions/read"/>
<objectnode classname="org.apache.slide.structure.ActionNode"
uri="/actions/write"/>
<objectnode classname="org.apache.slide.structure.ActionNode"
uri="/actions/manage"/>
</objectnode>
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/files">
<permission action="/actions/write" subject="/users/john"/>
</objectnode>
</objectnode>
</data>
</namespace>
<namespace name="labbook">
<definition >
<store name="sequences">
<nodestore name="jdbc"
classname="slidestore.reference.JDBCDescriptorsStore">
<parameter name="driver">org.hsql.jdbcDriver</parameter>
<parameter name="url">HypersonicSQL:hsql://localhost</parameter>
<parameter name="user">sa</parameter>
<parameter name="password" />
</nodestore>
<contentstore name="file"
classname="slidestore.reference.FileContentStore">
<parameter name="rootpath">files1</parameter>
</contentstore>
</store>
<scope match="/" store="sequences" />
</definition>
<configuration>
<default-action>/actions</default-action>
<parameter name="dav">true</parameter>
<parameter name="standalone">true</parameter>
</configuration>
<!--data ...>
</data -->
</namespace>
</slide>
Thanks,
Rama
>There is a "namespace" parameter in web.xml in the Slide Webapp. You can
put
>there the name of the namespace you want the servlet to access.
>Remy (wondering why he's even bothering about writing some documentation
>about configuration http://jakarta.apache.org/slide/conf-lib.html)
Re: Sorry - Multiple Namespaces
Posted by Remy Maucherat <re...@betaversion.org>.
Quoting "Kurapati, Rama" <Ra...@labbook.com>:
> Documentation is pretty good and covered every thing on configuration.
> May
> be i was not clear in posting the my doubt about adding different
> services
> for different namespaces in slide Domain.xml. I have added an
> additional
> namespace element in Domain.xml. I have created a webfolder for
> http://localhost:8080/slide. It shows three collections namely
> actions,files
> and users. Now the ponit is , after copying/putting a resource to this
> webfolder, it is placing the resource in the first namespace. May i get
> any
> help on
> setting the additional namespace to show both the namespaces in the
> webfolder. A sample Domain.xml file would help me a lot
Your Domain.xml file is fine.
However :
- One instance of the WebDAV servlet can only access one namespace (for obvious
reasons).
- The WebDAV servlet will by default access namespace "webdav". As I said, you
can change that using the web.xml file in the /WEB-INF directory in the webapp.
To access multiple namespaces at the same time, you should deploy additional
webapp. I think the model 1 webapp <-> 1 namepsace is the right one.
If you're using Tomcat 4, the deployment of Slide in that case isn't that easy.
It will be made easier in beta 2 which should be out this week. I'll publish a
comprehensive howto when it's released.
Remy