1 <?xml version="1.0"?>
\r
3 Licensed to the Apache Software Foundation (ASF) under one or more
\r
4 contributor license agreements. See the NOTICE file distributed with
\r
5 this work for additional information regarding copyright ownership.
\r
6 The ASF licenses this file to You under the Apache License, Version 2.0
\r
7 (the "License"); you may not use this file except in compliance with
\r
8 the License. You may obtain a copy of the License at
\r
10 http://www.apache.org/licenses/LICENSE-2.0
\r
12 Unless required by applicable law or agreed to in writing, software
\r
13 distributed under the License is distributed on an "AS IS" BASIS,
\r
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
15 See the License for the specific language governing permissions and
\r
16 limitations under the License.
\r
19 <!DOCTYPE Repository
\r
20 PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"
\r
21 "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
\r
23 <!-- Example Repository Configuration File
\r
25 - org.apache.jackrabbit.core.config.RepositoryConfigTest.java
\r
30 virtual file system where the repository stores global state
\r
31 (e.g. registered namespaces, custom node types, etc.)
\r
34 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
\r
35 <param name="path" value="${rep.home}/repository"/>
\r
38 <FileSystem class="org.apache.jackrabbit.core.fs.db.DerbyFileSystem">
\r
39 <param name="url" value="jdbc:derby:${rep.home}/db;create=true"/>
\r
40 <param name="schemaObjectPrefix" value="rep_"/>
\r
43 data store configuration
\r
45 <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
\r
46 <param name="path" value="${wiki.root}/${party.name}/datastore"/>
\r
47 <param name="minRecordLength" value="1024"/>
\r
51 security configuration
\r
53 <Security appName="Jackrabbit">
\r
56 class: FQN of class implementing the JackrabbitSecurityManager interface
\r
58 <SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security">
\r
61 class: FQN of class implementing the WorkspaceAccessManager interface
\r
63 <!-- <WorkspaceAccessManager class="..."/> -->
\r
64 <WorkspaceAccessManager class="org.apache.jackrabbit.core.security.simple.SimpleWorkspaceAccessManager" />
\r
65 <!-- <param name="config" value="${rep.home}/security.xml"/> -->
\r
70 class: FQN of class implementing the AccessManager interface
\r
73 <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager">
\r
75 <AccessManager class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager">
\r
76 <!-- <param name="config" value="${rep.home}/access.xml"/> -->
\r
79 <LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
\r
81 anonymous user name ('anonymous' is the default value)
\r
83 <param name="anonymousId" value="anonymous"/>
\r
85 administrator user id (default value if param is missing is 'admin')
\r
87 <param name="adminId" value="admin"/>
\r
92 location of workspaces root directory and name of default workspace
\r
94 <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
\r
96 workspace configuration template:
\r
97 used to create the initial workspace if there's no workspace yet
\r
99 <Workspace name="${wsp.name}">
\r
101 virtual file system of the workspace:
\r
102 class: FQN of class implementing the FileSystem interface
\r
105 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
\r
106 <param name="path" value="${wsp.home}"/>
\r
109 <FileSystem class="org.apache.jackrabbit.core.fs.db.DerbyFileSystem">
\r
110 <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
\r
111 <param name="schemaObjectPrefix" value="wsp_"/>
\r
114 persistence manager of the workspace:
\r
115 class: FQN of class implementing the PersistenceManager interface
\r
117 <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
\r
119 <param name="url" value="jdbc:derby://192.168.123.25:1527/moxkiriyadb/workspace/db;create=true"/>
\r
120 <param name="driver" value="org.apache.derby.jdbc.ClientDriver"/>
\r
122 <param name="url" value="${dbserver.url}:${dbserver.port}/moxkiriyadb/${party.name}/workspace/db;create=true"/>
\r
123 <param name="driver" value="${jdbc.driver}"/>
\r
124 <param name="schemaObjectPrefix" value="${wsp.name}_"/>
\r
125 <param name="externalBLOBs" value="true"/>
\r
126 </PersistenceManager>
\r
128 Search index and the file system it uses.
\r
129 class: FQN of class implementing the QueryHandler interface
\r
131 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
\r
132 <param name="path" value="${wsp.home}/index"/>
\r
133 <param name="supportHighlighting" value="true"/>
\r
138 Configures the versioning
\r
140 <Versioning rootPath="${rep.home}/version">
\r
142 Configures the filesystem to use for versioning for the respective
\r
143 persistence manager
\r
146 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
\r
147 <param name="path" value="${rep.home}/version" />
\r
150 <FileSystem class="org.apache.jackrabbit.core.fs.db.DerbyFileSystem">
\r
151 <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true"/>
\r
152 <param name="schemaObjectPrefix" value="version_"/>
\r
155 Configures the persistence manager to be used for persisting version state.
\r
156 Please note that the current versioning implementation is based on
\r
157 a 'normal' persistence manager, but this could change in future
\r
160 <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
\r
161 <param name="url" value="${dbserver.url}:${dbserver.port}/moxkiriyadb/${party.name}/version/db;create=true"/>
\r
162 <param name="driver" value="${jdbc.driver}"/>
\r
163 <param name="schemaObjectPrefix" value="version_"/>
\r
164 <param name="externalBLOBs" value="true"/>
\r
165 </PersistenceManager>
\r
169 Search index for content that is shared repository wide
\r
170 (/jcr:system tree, contains mainly versions)
\r
172 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
\r
173 <param name="path" value="${rep.home}/repository/index"/>
\r
174 <param name="supportHighlighting" value="true"/>
\r
178 Run with a cluster journal
\r
180 <Cluster id="${cluster.id}">
\r
182 <Journal class="org.apache.jackrabbit.core.journal.FileJournal">
\r
183 <param name="revision" value="${rep.home}/revision.log" />
\r
184 <param name="directory" value="${wiki.root}/${party.name}/journal" />
\r
187 <Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">
\r
188 <param name="revision" value="${rep.home}/revision.log" />
\r
189 <param name="driver" value="${jdbc.driver}" />
\r
190 <param name="url" value="${dbserver.url}:${dbserver.port}/moxkiriyadb/${party.name}/journal/db;create=true"/>
\r
191 <param name="databaseType" value="derby"/>
\r