Advertisement
Guest User

Jackrabbit configuration

a guest
Jan 23rd, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.52 KB | None | 0 0
  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.db.DbFileSystem">
  34.        <param name="driver" value="org.postgresql.Driver"/>
  35.        <param name="url" value=" jdbc:postgresql://localhost:5432/db_pa165"/>
  36.        <param name="user" value="db_user" />
  37.        <param name="password" value="db_passwd" />
  38.        <param name="schema" value="postgresql"/>
  39.        <param name="schemaObjectPrefix" value="rep_"/>
  40.    </FileSystem>
  41.  
  42.     <!--
  43.        data store configuration
  44.    -->
  45.     <DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
  46.  
  47.     <!--
  48.        security configuration
  49.    -->
  50.     <Security appName="Jackrabbit">
  51.         <!--
  52.            security manager:
  53.            class: FQN of class implementing the JackrabbitSecurityManager interface
  54.        -->
  55.         <SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security">
  56.             <!--
  57.            workspace access:
  58.            class: FQN of class implementing the WorkspaceAccessManager interface
  59.            -->
  60.             <!-- <WorkspaceAccessManager class="..."/> -->
  61.             <!-- <param name="config" value="${rep.home}/security.xml"/> -->
  62.         </SecurityManager>
  63.  
  64.         <!--
  65.            access manager:
  66.            class: FQN of class implementing the AccessManager interface
  67.        -->
  68.         <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager">
  69.             <!-- <param name="config" value="${rep.home}/access.xml"/> -->
  70.         </AccessManager>
  71.  
  72.         <LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
  73.             <!--
  74.              anonymous user name ('anonymous' is the default value)
  75.            -->
  76.             <param name="anonymousId" value="anonymous"/>
  77.             <!--
  78.              administrator user id (default value if param is missing is 'admin')
  79.            -->
  80.             <param name="adminId" value="admin"/>
  81.         </LoginModule>
  82.     </Security>
  83.  
  84.     <!--
  85.        location of workspaces root directory and name of default workspace
  86.    -->
  87.     <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
  88.     <!--
  89.        workspace configuration template:
  90.        used to create the initial workspace if there's no workspace yet
  91.    -->
  92.     <Workspace name="${wsp.name}">
  93.         <!--
  94.            virtual file system of the workspace:
  95.            class: FQN of class implementing the FileSystem interface
  96.        -->
  97.     <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  98.            <param name="driver" value="org.postgresql.Driver"/>
  99.            <param name="url" value=" jdbc:postgresql://localhost:5432/db_pa165"/>
  100.        <param name="user" value="db_user" />
  101.        <param name="password" value="db_passwd" />
  102.            <param name="schema" value="postgresql"/>
  103.            <param name="schemaObjectPrefix" value="${wsp.name}_"/>
  104.        </FileSystem>
  105.         <!--
  106.            persistence manager of the workspace:
  107.            class: FQN of class implementing the PersistenceManager interface
  108.        -->
  109.         <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
  110.             <param name="driver" value="org.postgresql.Driver"/>
  111.             <param name="url" value=" jdbc:postgresql://localhost:5432/db_pa165"/>
  112.             <param name="user" value="db_user" />
  113.             <param name="password" value="db_passwd" />
  114.             <param name="schema" value="postgresql"/>
  115.             <param name="schemaObjectPrefix" value="${wsp.name}_"/>
  116.         </PersistenceManager>
  117.         <!--
  118.            Search index and the file system it uses.
  119.            class: FQN of class implementing the QueryHandler interface
  120.        -->
  121.         <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
  122.             <param name="path" value="${wsp.home}/index"/>
  123.         <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor" />
  124.             <param name="supportHighlighting" value="true"/>
  125.         </SearchIndex>
  126.     </Workspace>
  127.  
  128.     <!--
  129.        Configures the versioning
  130.    -->
  131.     <Versioning rootPath="${rep.home}/version">
  132.         <!--
  133.            Configures the filesystem to use for versioning for the respective
  134.            persistence manager
  135.        -->
  136.     <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  137.            <param name="driver" value="org.postgresql.Driver"/>
  138.            <param name="url" value=" jdbc:postgresql://localhost:5432/db_pa165"/>
  139.            <param name="user" value="db_user" />
  140.            <param name="password" value="db_passwd" />
  141.            <param name="schema" value="postgresql"/>
  142.            <param name="schemaObjectPrefix" value="ver_"/>
  143.        </FileSystem>
  144.  
  145.         <!--
  146.            Configures the persistence manager to be used for persisting version state.
  147.            Please note that the current versioning implementation is based on
  148.            a 'normal' persistence manager, but this could change in future
  149.            implementations.
  150.        -->
  151.         <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
  152.             <param name="driver" value="org.postgresql.Driver"/>
  153.             <param name="url" value=" jdbc:postgresql://localhost:5432/db_pa165"/>
  154.             <param name="user" value="db_user" />
  155.             <param name="password" value="db_passwd" />
  156.             <param name="schema" value="postgresql"/>
  157.             <param name="schemaObjectPrefix" value="ver_"/>
  158.         </PersistenceManager>
  159.     </Versioning>
  160.  
  161.     <!--
  162.        Search index for content that is shared repository wide
  163.        (/jcr:system tree, contains mainly versions)
  164.    -->
  165.     <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
  166.         <param name="path" value="${rep.home}/repository/index"/>
  167.     <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor"/>
  168.         <param name="supportHighlighting" value="true"/>
  169.     </SearchIndex>
  170. </Repository>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement