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