]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/runtime/org.argeo.server.jackrabbit/src/main/resources/org/argeo/jackrabbit/repository-inMemory.xml
Restructure Webdav and JCR servlets
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.jackrabbit / src / main / resources / org / argeo / jackrabbit / repository-inMemory.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19
20 <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
21 "http://jackrabbit.apache.org/dtd/repository-1.6.dtd">
22 <!--
23 Example Repository Configuration File Used by -
24 org.apache.jackrabbit.core.config.RepositoryConfigTest.java -
25 -->
26 <Repository>
27 <!--
28 virtual file system where the repository stores global state (e.g.
29 registered namespaces, custom node types, etc.)
30 -->
31 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
32 <param name="path" value="${rep.home}/repository" />
33 </FileSystem>
34
35 <!--
36 security configuration
37 -->
38 <Security appName="Jackrabbit">
39 <!--
40 security manager: class: FQN of class implementing the
41 JackrabbitSecurityManager interface
42 -->
43 <SecurityManager
44 class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"
45 workspaceName="security">
46 <!--
47 workspace access: class: FQN of class implementing the
48 WorkspaceAccessManager interface
49 -->
50 <!-- <WorkspaceAccessManager class="..."/> -->
51 <!-- <param name="config" value="${rep.home}/security.xml"/> -->
52 </SecurityManager>
53
54 <!--
55 access manager: class: FQN of class implementing the AccessManager
56 interface
57 -->
58 <AccessManager
59 class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager">
60 <!-- <param name="config" value="${rep.home}/access.xml"/> -->
61 </AccessManager>
62
63 <LoginModule
64 class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule">
65 <!--
66 anonymous user name ('anonymous' is the default value)
67 -->
68 <param name="anonymousId" value="anonymous" />
69 <!--
70 administrator user id (default value if param is missing is 'admin')
71 -->
72 <param name="adminId" value="admin" />
73 </LoginModule>
74 </Security>
75
76 <!--
77 location of workspaces root directory and name of default workspace
78 -->
79 <Workspaces rootPath="${rep.home}/workspaces"
80 defaultWorkspace="default" />
81 <!--
82 workspace configuration template: used to create the initial workspace
83 if there's no workspace yet
84 -->
85 <Workspace name="${wsp.name}">
86 <!--
87 virtual file system of the workspace: class: FQN of class
88 implementing the FileSystem interface
89 -->
90 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
91 <param name="path" value="${wsp.home}" />
92 </FileSystem>
93 <!--
94 persistence manager of the workspace: class: FQN of class
95 implementing the PersistenceManager interface
96 -->
97 <PersistenceManager
98 class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
99 <!--
100 <param name="url" value="jdbc:derby:memory:db;create=true" />
101 -->
102 <param name="url" value="jdbc:derby:${wsp.home}/db;create=true" />
103 <param name="driver" value="org.apache.derby.jdbc.EmbeddedDriver" />
104 <param name="schemaObjectPrefix" value="${wsp.name}_" />
105 </PersistenceManager>
106 <!--
107 Search index and the file system it uses. class: FQN of class
108 implementing the QueryHandler interface
109 -->
110 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
111 <param name="path" value="${wsp.home}/index" />
112 <param name="extractorPoolSize" value="2" />
113 <param name="supportHighlighting" value="true" />
114 </SearchIndex>
115 </Workspace>
116
117 <!--
118 Configures the versioning
119 -->
120 <Versioning rootPath="${rep.home}/version">
121 <!--
122 Configures the filesystem to use for versioning for the respective
123 persistence manager
124 -->
125 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
126 <param name="path" value="${rep.home}/version" />
127 </FileSystem>
128
129 <!--
130 Configures the persistence manager to be used for persisting version
131 state. Please note that the current versioning implementation is
132 based on a 'normal' persistence manager, but this could change in
133 future implementations.
134 -->
135 <PersistenceManager
136 class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
137 <!--
138 <param name="url" value="jdbc:derby:memory:version;create=true" />
139 -->
140 <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true" />
141 <param name="driver" value="org.apache.derby.jdbc.EmbeddedDriver" />
142 <param name="schemaObjectPrefix" value="version_" />
143 </PersistenceManager>
144 </Versioning>
145
146 <!--
147 Search index for content that is shared repository wide (/jcr:system
148 tree, contains mainly versions)
149 -->
150 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
151 <param name="path" value="${rep.home}/repository/index" />
152 <param name="extractorPoolSize" value="2" />
153 <param name="supportHighlighting" value="true" />
154 </SearchIndex>
155 </Repository>