]> git.argeo.org Git - lgpl/argeo-commons.git/blob - repository.xml
db6bfa74256b10d8ed8ee2facdeae37d1c4349b5
[lgpl/argeo-commons.git] / repository.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 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
20 <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
21 "http://jackrabbit.apache.org/dtd/repository-1.6.dtd">
22 <!-- Example Repository Configuration File
23 Used by
24 - org.apache.jackrabbit.core.config.RepositoryConfigTest.java
25 -
26 -->
27 <Repository>
28 <!--
29 virtual file system where the repository stores global state
30 (e.g. registered namespaces, custom node types, etc.)
31 -->
32 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
33 <param name="path" value="${rep.home}/repository"/>
34 </FileSystem>
35
36 <!--
37 security configuration
38 -->
39 <Security appName="Jackrabbit">
40 <!--
41 security manager:
42 class: FQN of class implementing the JackrabbitSecurityManager interface
43 -->
44 <SecurityManager class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" workspaceName="security">
45 <!--
46 workspace access:
47 class: FQN of class implementing the WorkspaceAccessManager interface
48 -->
49 <!-- <WorkspaceAccessManager class="..."/> -->
50 <!-- <param name="config" value="${rep.home}/security.xml"/> -->
51 </SecurityManager>
52
53 <!--
54 access manager:
55 class: FQN of class implementing the AccessManager interface
56 -->
57 <AccessManager class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager">
58 <!-- <param name="config" value="${rep.home}/access.xml"/> -->
59 </AccessManager>
60
61 <LoginModule 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" defaultWorkspace="default"/>
77 <!--
78 workspace configuration template:
79 used to create the initial workspace if there's no workspace yet
80 -->
81 <Workspace name="${wsp.name}">
82 <!--
83 virtual file system of the workspace:
84 class: FQN of class implementing the FileSystem interface
85 -->
86 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
87 <param name="path" value="${wsp.home}"/>
88 </FileSystem>
89 <!--
90 persistence manager of the workspace:
91 class: FQN of class implementing the PersistenceManager interface
92 -->
93 <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
94 <param name="url" value="jdbc:derby:memory:db;create=true"/>
95 <param name="schemaObjectPrefix" value="${wsp.name}_"/>
96 </PersistenceManager>
97 <!--
98 Search index and the file system it uses.
99 class: FQN of class implementing the QueryHandler interface
100 -->
101 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
102 <param name="path" value="${wsp.home}/index"/>
103 <param name="extractorPoolSize" value="2"/>
104 <param name="supportHighlighting" value="true"/>
105 </SearchIndex>
106 </Workspace>
107
108 <!--
109 Configures the versioning
110 -->
111 <Versioning rootPath="${rep.home}/version">
112 <!--
113 Configures the filesystem to use for versioning for the respective
114 persistence manager
115 -->
116 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
117 <param name="path" value="${rep.home}/version" />
118 </FileSystem>
119
120 <!--
121 Configures the persistence manager to be used for persisting version state.
122 Please note that the current versioning implementation is based on
123 a 'normal' persistence manager, but this could change in future
124 implementations.
125 -->
126 <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
127 <param name="url" value="jdbc:derby:memory:version;create=true"/>
128 <param name="schemaObjectPrefix" value="version_"/>
129 </PersistenceManager>
130 </Versioning>
131
132 <!--
133 Search index for content that is shared repository wide
134 (/jcr:system tree, contains mainly versions)
135 -->
136 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
137 <param name="path" value="${rep.home}/repository/index"/>
138 <param name="extractorPoolSize" value="2"/>
139 <param name="supportHighlighting" value="true"/>
140 </SearchIndex>
141 </Repository>