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