1 <!--<?xml version="1.0"?>
4 Licensed to the Apache Software Foundation (ASF) under one or more
5 contributor license agreements. See the NOTICE file distributed with
6 this work for additional information regarding copyright ownership.
7 The ASF licenses this file to You under the Apache License, Version
8 2.0 (the "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0 Unless required by
12 applicable law or agreed to in writing, software distributed under the
13 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
14 CONDITIONS OF ANY KIND, either express or implied. See the License for
15 the specific language governing permissions and limitations under the
19 This file must be put in the
20 repository location for example if the jackrabbit directory is
21 /usr/tomcat/JACKRABBIT then this file must be in this location.
22 At each restart of the server, this file will be loaded in memory.
25 <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.4//EN"
26 "http://jackrabbit.apache.org/dtd/repository-1.4.dtd">
27 Example Repository Configuration File
31 virtual file system where the repository stores global state (e.g.
32 registered namespaces, custom node types, etc.)
34 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
35 <param name="path" value="${rep.home}/repository" />
39 security configuration
42 <Security appName="Jackrabbit">
44 access manager: class: FQN of class implementing the AccessManager
49 class="org.apache.jackrabbit.core.security.SimpleAccessManager">
51 <param name="access" value=""/>
55 class located in the jackrabbit-auth-cas.jar This class provides the
56 base for managing permissions for users and groups on a particular
57 resource. By associating this manager with a resource, permissions
58 can be granted, revoked and denyied on the principal
61 class="com.pentila.jackrabbit.auth.SimpleCASAccessManager">
62 <param name="access" value="restricted" />
64 value = "restricted" will force the application to restric access
65 according to the properties of the nodes value = "anonimus" will let
66 every body see what everybody has.
71 more detailed information on LoginModule on :
72 http://java.sun.com/j2se/1.4.2/docs/api/index.html
76 class="com.pentila.jackrabbit.auth.CASLoginModule">
77 anonymous user name ('anonymous' is the default value)
78 <param name="cas_validate_url"
79 value="https://tice-a85.univ-savoie.fr:8443/cas/serviceValidate" />
81 value="http://tice-a93.univ-savoie.fr:9999/jackrabbit-webapp-1.4" />
83 default user name to be used instead of the anonymous user when no
84 login credentials are provided (unset by default)
86 <param name="defaultUserId" value="superuser"/>
92 it is the default implementation of the LoginModule, not use in this
94 class="org.apache.jackrabbit.core.security.SimpleLoginModule">
96 anonymous user name ('anonymous' is the default value)
97 <param name="anonymousId" value="anonymous"/>
99 default user name to be used instead of the anonymous user when no
100 login credentials are provided (unset by default)
102 <param name="defaultUserId" value="superuser"/>
109 location of workspaces root directory and name of default workspace it
110 is the default workspace name in the jackrabbit repository
112 <Workspaces rootPath="${rep.home}/workspaces"
113 defaultWorkspace="default" />
115 workspace configuration template: used to create the initial workspace
116 if there's no workspace yet
118 <Workspace name="${wsp.name}">
120 virtual file system of the workspace: class: FQN of class
121 implementing the FileSystem interface
123 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
124 <param name="path" value="${wsp.home}" />
127 persistence manager of the workspace: class: FQN of class
128 implementing the PersistenceManager interface
131 class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
132 <param name="url" value="jdbc:derby:${wsp.home}/db;create=true" />
133 <param name="schemaObjectPrefix" value="${wsp.name}_" />
134 </PersistenceManager>
136 Search index and the file system it uses. class: FQN of class
137 implementing the QueryHandler interface
139 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
140 <param name="path" value="${wsp.home}/index" />
141 <param name="textFilterClasses"
142 value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor" />
143 <param name="extractorPoolSize " value="2" />
144 <param name="supportHighlighting" value="true" />
149 Configures the versioning
151 <Versioning rootPath="${rep.home}/version">
153 Configures the filesystem to use for versioning for the respective
156 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
157 <param name="path" value="${rep.home}/version" />
161 Configures the persistence manager to be used for persisting version
162 state. Please note that the current versioning implementation is
163 based on a 'normal' persistence manager, but this could change in
164 future implementations.
167 class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
168 <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true" />
169 <param name="schemaObjectPrefix" value="version_" />
170 </PersistenceManager>
174 Search index for content that is shared repository wide (/jcr:system
175 tree, contains mainly versions)
177 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
178 <param name="path" value="${rep.home}/repository/index" />
179 <param name="textFilterClasses"
180 value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor" />
181 <param name="extractorPoolSize " value="2" />
182 <param name="supportHighlighting" value="true" />
185 <exception-type>javax.jcr.RepositoryException</exception-type>
186 <location>/error/AccessDenied</location>