Debian Codegraph @

jackrabbit-jcr2dav/src/test/resources/repository.xml

raw
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 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. 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 <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.6//EN"
19 "http://jackrabbit.apache.org/dtd/repository-2.6.dtd">
20 <!-- Example Repository Configuration File -->
21 <Repository>
22 <!--
23 virtual file system where the repository stores global state
24 (e.g. registered namespaces, custom node types, etc.)
25 -->
26 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
27 <param name="path" value="${rep.home}/repository"/>
28 </FileSystem>
29
30 <!--
31 data store configuration
32 -->
33 <DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
34 <!--
35 sample database data store configuration
36 <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
37 <param name="url" value="jdbc:h2:~/test"/>
38 <param name="user" value="sa"/>
39 <param name="password" value="sa"/>
40 </DataStore>
41 -->
42
43 <!--
44 repository lock mechanism configuration
45 <RepositoryLockMechanism class="org.apache.jackrabbit.core.util.CooperativeFileLock"/>
46 -->
47
48 <!--
49 security configuration
50 -->
51 <Security appName="Jackrabbit">
52 <!--
53 security manager:
54 class: FQN of class implementing the JackrabbitSecurityManager interface
55 -->
56 <SecurityManager class="org.apache.jackrabbit.core.UserPerWorkspaceSecurityManager">
57 <!-- <param name="config" value="${rep.home}/security.xml"/> -->
58 </SecurityManager>
59
60 <!--
61 access manager:
62 class: FQN of class implementing the AccessManager interface
63 -->
64 <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager">
65 <!-- <param name="config" value="${rep.home}/access.xml"/> -->
66 </AccessManager>
67
68 <LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
69 <!--
70 anonymous user name ('anonymous' is the default value)
71 -->
72 <param name="anonymousId" value="anonymous"/>
73 <!--
74 administrator user id (default value if param is missing is 'admin')
75 -->
76 <param name="adminId" value="admin"/>
77 <!--
78 optional parameter 'principalProvider'.
79 the value refers to the class name of the PrincipalProvider implementation.
80 -->
81 <!-- <param name="principalProvider" value="..."/> -->
82 </LoginModule>
83 </Security>
84
85 <!--
86 location of workspaces root directory and name of default workspace
87 -->
88 <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" maxIdleTime="2"/>
89 <!--
90 workspace configuration template:
91 used to create the initial workspace if there's no workspace yet
92 -->
93 <Workspace name="${wsp.name}">
94 <!--
95 virtual file system of the workspace:
96 class: FQN of class implementing the FileSystem interface
97 -->
98 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
99 <param name="path" value="${wsp.home}"/>
100 </FileSystem>
101 <!--
102 persistence manager of the workspace:
103 class: FQN of class implementing the PersistenceManager interface
104 -->
105 <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
106 <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
107 <param name="schemaObjectPrefix" value="${wsp.name}_"/>
108 </PersistenceManager>
109 <!--
110 Search index and the file system it uses.
111 class: FQN of class implementing the QueryHandler interface
112 -->
113 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
114 <param name="path" value="${wsp.home}/index"/>
115 </SearchIndex>
116
117 <!--
118 XML Import configuration of the workspace
119 -->
120 <Import>
121 <ProtectedNodeImporter class="org.apache.jackrabbit.core.xml.AccessControlImporter"/>
122 <ProtectedPropertyImporter class="org.apache.jackrabbit.core.security.user.UserImporter">
123 <param name="importBehavior" value="besteffort"/>
124 </ProtectedPropertyImporter>
125 </Import>
126 </Workspace>
127
128 <!--
129 Configures the versioning
130 -->
131 <Versioning rootPath="${rep.home}/version">
132 <!--
133 Configures the filesystem to use for versioning for the respective
134 persistence manager
135 -->
136 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
137 <param name="path" value="${rep.home}/version" />
138 </FileSystem>
139
140 <!--
141 Configures the persistence manager to be used for persisting version state.
142 Please note that the current versioning implementation is based on
143 a 'normal' persistence manager, but this could change in future
144 implementations.
145 -->
146 <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
147 <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true"/>
148 <param name="schemaObjectPrefix" value="version_"/>
149 </PersistenceManager>
150 </Versioning>
151
152 <!--
153 Search index for content that is shared repository wide
154 (/jcr:system tree, contains mainly versions)
155 -->
156 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
157 <param name="path" value="${rep.home}/repository/index"/>
158 </SearchIndex>
159
160 <!--
161 Run with a cluster journal
162 -->
163 <Cluster id="node1">
164 <Journal class="org.apache.jackrabbit.core.journal.MemoryJournal"/>
165 </Cluster>
166 </Repository>