Repository Configuration
Overview
The repository configuration file defines the components and settings for the content repository. Bloomreach Content (formerly Hippo Repository) provides a default repository.xml file. You only need to modify this file if you require a custom PersistenceManager, AccessManager, LoginModule, or SearchIndex.
For standard repository configuration details, refer to the Jackrabbit documentation at http://jackrabbit.apache.org/jackrabbit-configuration.html. This page highlights configuration elements specific to Bloomreach Content and references Jackrabbit documentation for shared elements.
Configuration File Structure
The repository configuration file includes the following elements:
- FileSystem
- Security
- Workspaces root directory
- Workspace
- Versioning
- SearchIndex
The structure of the configuration file is shown below:
<Repository> <FileSystem class="...">...</FileSystem> <Security> <AccessManager class="...">...</AccessManager> [ <LoginModule class="...">...</LoginModule> ] </Security> <Workspaces rootPath="..." defaultWorkspace="..."/> <Workspace name="..."> <FileSystem class="...">...</FileSystem> <PersistenceManager class="...">...</PersistenceManager> [ <SearchIndex class="..."> ... [ <FileSystem class="...">...</FileSystem> ] </SearchIndex> ] </Workspace> <Versioning rootPath="..."> <FileSystem class="...">...</FileSystem> <PersistenceManager class="...">...</PersistenceManager> </Versioning> </Repository>
Most XML attribute values are interpreted as plain strings. The following variables are exceptions and are resolved at runtime:
${rep.home}${wsp.name}${wsp.home}
For additional details, see the Jackrabbit documentation.
Configuration Elements
FileSystem Element
The <FileSystem> element defines the virtual file system used by the repository to persist global state, such as registered namespaces and custom node types.
Refer to the Jackrabbit documentation for more information about this element.
Security Element
The <Security> element configures the JAAS application entry and the access manager. By default, Bloomreach Content uses the following security configuration:
<Security appName="Jackrabbit"> <SecurityManager class="org.hippoecm.repository.security.SecurityManager"/> <AccessManager class="org.hippoecm.repository.security.HippoAccessManager"/> <LoginModule class="org.hippoecm.repository.security.HippoLoginModule"/> </Security>
For more information, see Authentication and Users.
Workspaces Element
The <Workspaces> element sets the location of the workspaces root directory and specifies the default workspace name.
<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
Workspace Element
The <Workspace> element serves as a template for individual workspace configuration files. Each new workspace uses this template.
For details, see Workspace configuration.
SearchIndex Element
The <SearchIndex> element defines the search index for repository-wide content, including the /jcr:system tree, which primarily contains version information.
For configuration options, see Search Index configuration.
Versioning Element
The <Versioning> element configures settings related to versioning in the repository.