Debian Codegraph @

jackrabbit-spi2jcr/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.0//EN"
19 "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
20 <!-- Example Repository Configuration File
21 Used by
22 - org.apache.jackrabbit.core.config.RepositoryConfigTest.java
23 -
24 -->
25 <Repository>
26 <Cluster id="node1">
27 <Journal class="org.apache.jackrabbit.core.journal.MemoryJournal"/>
28 </Cluster>
29
30 <!--
31 virtual file system where the repository stores global state
32 (e.g. registered namespaces, custom node types, etc.)
33 -->
34 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
35 <param name="path" value="${rep.home}/repository"/>
36 </FileSystem>
37
38 <!--
39 security configuration
40 -->
41 <Security appName="Jackrabbit">
42 <!--
43 security manager:
44 class: FQN of class implementing the JackrabbitSecurityManager interface
45 -->
46 <SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security">
47 <!--
48 workspace access:
49 class: FQN of class implementing the WorkspaceAccessManager interface
50 -->
51 <!-- <WorkspaceAccessManager class="..."/> -->
52 <!-- <param name="config" value="${rep.home}/security.xml"/> -->
53 </SecurityManager>
54
55 <!--
56 access manager:
57 class: FQN of class implementing the AccessManager interface
58 -->
59 <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager">
60 <!-- <param name="config" value="${rep.home}/access.xml"/> -->
61 </AccessManager>
62
63 <LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
64 <!--
65 anonymous user name ('anonymous' is the default value)
66 -->
67 <param name="anonymousId" value="anonymous"/>
68 <!--
69 administrator user id (default value if param is missing is 'admin')
70 -->
71 <param name="adminId" value="admin"/>
72 </LoginModule>
73 </Security>
74
75 <!--
76 location of workspaces root directory and name of default workspace
77 -->
78 <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
79 <!--
80 workspace configuration template:
81 used to create the initial workspace if there's no workspace yet
82 -->
83 <Workspace name="${wsp.name}">
84 <!--
85 virtual file system of the workspace:
86 class: FQN of class implementing the FileSystem interface
87 -->
88 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
89 <param name="path" value="${wsp.home}"/>
90 </FileSystem>
91 <!--
92 persistence manager of the workspace:
93 class: FQN of class implementing the PersistenceManager interface
94 -->
95 <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
96 <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
97 <param name="schemaObjectPrefix" value="${wsp.name}_"/>
98 </PersistenceManager>
99 <!--
100 Search index and the file system it uses.
101 class: FQN of class implementing the QueryHandler interface
102 -->
103 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
104 <param name="path" value="${wsp.home}/index"/>
105 <param name="extractorPoolSize" value="2"/>
106 <param name="supportHighlighting" value="true"/>
107 </SearchIndex>
108
109 <!--
110 XML Import configuration of the workspace
111 -->
112 <Import>
113 <ProtectedItemImporter class="org.apache.jackrabbit.core.xml.AccessControlImporter"/>
114 </Import>
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 state.
131 Please note that the current versioning implementation is based on
132 a 'normal' persistence manager, but this could change in future
133 implementations.
134 -->
135 <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
136 <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true"/>
137 <param name="schemaObjectPrefix" value="version_"/>
138 </PersistenceManager>
139 </Versioning>
140
141 <!--
142 Search index for content that is shared repository wide
143 (/jcr:system tree, contains mainly versions)
144 -->
145 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
146 <param name="path" value="${rep.home}/repository/index"/>
147 <param name="extractorPoolSize" value="2"/>
148 <param name="supportHighlighting" value="true"/>
149 </SearchIndex>
150 </Repository>