[Yanel-commits] rev 37376 - in public/yanel/trunk/src/realms/from-scratch-realm-template: . config jcr-data-repo-cnode1 jcr-data-repo-cnode2

michi at wyona.com michi at wyona.com
Thu Jul 3 16:45:41 CEST 2008


Author: michi
Date: 2008-07-03 16:45:40 +0200 (Thu, 03 Jul 2008)
New Revision: 37376

Added:
   public/yanel/trunk/src/realms/from-scratch-realm-template/config/jcr-data-repository-cnode1.xml
   public/yanel/trunk/src/realms/from-scratch-realm-template/config/jcr-data-repository-cnode2.xml
   public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode1/
   public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode1/repository.xml
   public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode2/
   public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode2/repository.xml
   public/yanel/trunk/src/realms/from-scratch-realm-template/realm-jcr-cnode1.xml
   public/yanel/trunk/src/realms/from-scratch-realm-template/realm-jcr-cnode2.xml
Log:
JCR sample config added

Added: public/yanel/trunk/src/realms/from-scratch-realm-template/config/jcr-data-repository-cnode1.xml
===================================================================
--- public/yanel/trunk/src/realms/from-scratch-realm-template/config/jcr-data-repository-cnode1.xml	                        (rev 0)
+++ public/yanel/trunk/src/realms/from-scratch-realm-template/config/jcr-data-repository-cnode1.xml	2008-07-03 14:45:40 UTC (rev 37376)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+
+<repository class="org.wyona.yarep.impl.repo.jcr.JCRRepository">
+  <name>Yanel From Scratch Realm JCR/Jackrabbit based data repository</name>
+
+  <jackrabbit-repository-config src="../jcr-data-repo-cnode1/repository.xml"/>
+</repository>
+
+  <!--
+  derby.stream.error.file System property to configure the derby.log file path
+  Please note that derby is implementation specific!
+  -->

Added: public/yanel/trunk/src/realms/from-scratch-realm-template/config/jcr-data-repository-cnode2.xml
===================================================================
--- public/yanel/trunk/src/realms/from-scratch-realm-template/config/jcr-data-repository-cnode2.xml	                        (rev 0)
+++ public/yanel/trunk/src/realms/from-scratch-realm-template/config/jcr-data-repository-cnode2.xml	2008-07-03 14:45:40 UTC (rev 37376)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+
+<repository class="org.wyona.yarep.impl.repo.jcr.JCRRepository">
+  <name>Yanel From Scratch Realm JCR/Jackrabbit based data repository</name>
+
+  <jackrabbit-repository-config src="../jcr-data-repo-cnode2/repository.xml"/>
+</repository>
+
+  <!--
+  derby.stream.error.file System property to configure the derby.log file path
+  Please note that derby is implementation specific!
+  -->

Added: public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode1/repository.xml
===================================================================
--- public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode1/repository.xml	                        (rev 0)
+++ public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode1/repository.xml	2008-07-03 14:45:40 UTC (rev 37376)
@@ -0,0 +1,146 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.2//EN"
+                            "http://jackrabbit.apache.org/dtd/repository-1.2.dtd">
+<!-- Example Repository Configuration File -->
+<Repository>
+    <!--
+        virtual file system where the repository stores global state
+        (e.g. registered namespaces, custom node types, etc.)
+    -->
+    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+        <param name="path" value="${rep.home}/repository"/>
+    </FileSystem>
+
+    <!--
+        security configuration
+    -->
+    <Security appName="Jackrabbit">
+        <!--
+            access manager:
+            class: FQN of class implementing the AccessManager interface
+        -->
+        <AccessManager class="org.apache.jackrabbit.core.security.SimpleAccessManager">
+            <!-- <param name="config" value="${rep.home}/access.xml"/> -->
+        </AccessManager>
+
+        <LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule">
+           <!-- anonymous user name ('anonymous' is the default value) -->
+           <param name="anonymousId" value="anonymous"/>
+           <!--
+              default user name to be used instead of the anonymous user
+              when no login credentials are provided (unset by default)
+           -->
+           <!-- <param name="defaultUserId" value="superuser"/> -->
+        </LoginModule>
+    </Security>
+
+    <!--
+        location of workspaces root directory and name of default workspace
+    -->
+    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
+    <!--
+        workspace configuration template:
+        used to create the initial workspace if there's no workspace yet
+    -->
+    <Workspace name="Jackrabbit Core">
+        <!--
+            virtual file system of the workspace:
+            class: FQN of class implementing the FileSystem interface
+        -->
+        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+            <param name="path" value="${wsp.home}"/>
+        </FileSystem>
+
+        <!--
+            persistence manager of the workspace:
+            class: FQN of class implementing the PersistenceManager interface
+        -->
+        <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
+          <param name="url" value="jdbc:postgresql://127.0.0.1:5432/jackrabbit"/>
+          <param name="user" value="MY_DB_USERNAME"/>
+          <param name="password" value=""/>
+          <param name="schemaObjectPrefix" value="${wsp.name}_"/>
+          <param name="externalBLOBs" value="false"/>
+        </PersistenceManager>
+
+        <!--
+            Search index and the file system it uses.
+            class: FQN of class implementing the QueryHandler interface
+        -->
+        <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+            <param name="path" value="${wsp.home}/index"/>
+            <!-- See also http://jackrabbit.apache.org/doc/components/text-extractors.html -->
+            <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"/>
+        </SearchIndex>
+    </Workspace>
+
+    <!--
+        Configures the versioning
+    -->
+    <Versioning rootPath="${rep.home}/version">
+        <!--
+            Configures the filesystem to use for versioning for the respective
+            persistence manager
+        -->
+        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+            <param name="path" value="${rep.home}/version" />
+        </FileSystem>
+
+        <!--
+            Configures the persistence manager to be used for persisting version state.
+            Please note that the current versioning implementation is based on
+            a 'normal' persistence manager, but this could change in future
+            implementations.
+        -->
+        <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
+          <param name="url" value="jdbc:postgresql://127.0.0.1:5432/jackrabbit"/>
+          <param name="user" value="MY_DB_USERNAME"/>
+          <param name="password" value=""/>
+          <param name="schemaObjectPrefix" value="version_"/>
+          <param name="externalBLOBs" value="false"/>
+        </PersistenceManager>
+    </Versioning>
+
+    <!--
+        Search index for content that is shared repository wide
+        (/jcr:system tree, contains mainly versions)
+    -->
+    <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+        <param name="path" value="${rep.home}/repository/index"/>
+        <!-- See also http://jackrabbit.apache.org/doc/components/text-extractors.html -->
+        <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"/>
+    </SearchIndex>
+
+<Cluster id="cnode1">
+  <Journal class="org.apache.jackrabbit.core.journal.FileJournal">
+    <param name="revision" value="${rep.home}/revision.log" />
+    <param name="directory" value="/home/USERNAME/src/yanel/src/realms/from-scratch-realm-template/jcr-jackrabbit-journal"/>
+  </Journal>
+</Cluster>
+
+<!--
+  <Cluster id="cnode1">
+    <Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">
+      <param name="path" value="${rep.home}/revision.log"/>
+      <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
+    </Journal>
+  </Cluster>
+-->
+
+</Repository>

Added: public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode2/repository.xml
===================================================================
--- public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode2/repository.xml	                        (rev 0)
+++ public/yanel/trunk/src/realms/from-scratch-realm-template/jcr-data-repo-cnode2/repository.xml	2008-07-03 14:45:40 UTC (rev 37376)
@@ -0,0 +1,146 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.2//EN"
+                            "http://jackrabbit.apache.org/dtd/repository-1.2.dtd">
+<!-- Example Repository Configuration File -->
+<Repository>
+    <!--
+        virtual file system where the repository stores global state
+        (e.g. registered namespaces, custom node types, etc.)
+    -->
+    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+        <param name="path" value="${rep.home}/repository"/>
+    </FileSystem>
+
+    <!--
+        security configuration
+    -->
+    <Security appName="Jackrabbit">
+        <!--
+            access manager:
+            class: FQN of class implementing the AccessManager interface
+        -->
+        <AccessManager class="org.apache.jackrabbit.core.security.SimpleAccessManager">
+            <!-- <param name="config" value="${rep.home}/access.xml"/> -->
+        </AccessManager>
+
+        <LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule">
+           <!-- anonymous user name ('anonymous' is the default value) -->
+           <param name="anonymousId" value="anonymous"/>
+           <!--
+              default user name to be used instead of the anonymous user
+              when no login credentials are provided (unset by default)
+           -->
+           <!-- <param name="defaultUserId" value="superuser"/> -->
+        </LoginModule>
+    </Security>
+
+    <!--
+        location of workspaces root directory and name of default workspace
+    -->
+    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
+    <!--
+        workspace configuration template:
+        used to create the initial workspace if there's no workspace yet
+    -->
+    <Workspace name="Jackrabbit Core">
+        <!--
+            virtual file system of the workspace:
+            class: FQN of class implementing the FileSystem interface
+        -->
+        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+            <param name="path" value="${wsp.home}"/>
+        </FileSystem>
+
+        <!--
+            persistence manager of the workspace:
+            class: FQN of class implementing the PersistenceManager interface
+        -->
+        <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
+          <param name="url" value="jdbc:postgresql://127.0.0.1:5432/jackrabbit"/>
+          <param name="user" value="MY_DB_USERNAME"/>
+          <param name="password" value=""/>
+          <param name="schemaObjectPrefix" value="${wsp.name}_"/>
+          <param name="externalBLOBs" value="false"/>
+        </PersistenceManager>
+
+        <!--
+            Search index and the file system it uses.
+            class: FQN of class implementing the QueryHandler interface
+        -->
+        <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+            <param name="path" value="${wsp.home}/index"/>
+            <!-- See also http://jackrabbit.apache.org/doc/components/text-extractors.html -->
+            <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"/>
+        </SearchIndex>
+    </Workspace>
+
+    <!--
+        Configures the versioning
+    -->
+    <Versioning rootPath="${rep.home}/version">
+        <!--
+            Configures the filesystem to use for versioning for the respective
+            persistence manager
+        -->
+        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+            <param name="path" value="${rep.home}/version" />
+        </FileSystem>
+
+        <!--
+            Configures the persistence manager to be used for persisting version state.
+            Please note that the current versioning implementation is based on
+            a 'normal' persistence manager, but this could change in future
+            implementations.
+        -->
+        <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
+          <param name="url" value="jdbc:postgresql://127.0.0.1:5432/jackrabbit"/>
+          <param name="user" value="MY_DB_USERNAME"/>
+          <param name="password" value=""/>
+          <param name="schemaObjectPrefix" value="version_"/>
+          <param name="externalBLOBs" value="false"/>
+        </PersistenceManager>
+    </Versioning>
+
+    <!--
+        Search index for content that is shared repository wide
+        (/jcr:system tree, contains mainly versions)
+    -->
+    <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+        <param name="path" value="${rep.home}/repository/index"/>
+        <!-- See also http://jackrabbit.apache.org/doc/components/text-extractors.html -->
+        <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"/>
+    </SearchIndex>
+
+<Cluster id="cnode2">
+  <Journal class="org.apache.jackrabbit.core.journal.FileJournal">
+    <param name="revision" value="${rep.home}/revision.log" />
+    <param name="directory" value="/home/USERNAME/src/yanel/src/realms/from-scratch-realm-template/jcr-jackrabbit-journal"/>
+  </Journal>
+</Cluster>
+
+<!--
+  <Cluster id="cnode2">
+    <Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">
+      <param name="path" value="${rep.home}/revision.log"/>
+      <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
+    </Journal>
+  </Cluster>
+-->
+
+</Repository>

Added: public/yanel/trunk/src/realms/from-scratch-realm-template/realm-jcr-cnode1.xml
===================================================================
--- public/yanel/trunk/src/realms/from-scratch-realm-template/realm-jcr-cnode1.xml	                        (rev 0)
+++ public/yanel/trunk/src/realms/from-scratch-realm-template/realm-jcr-cnode1.xml	2008-07-03 14:45:40 UTC (rev 37376)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+
+<realm-config xmlns="http://www.wyona.org/yanel/realm/1.0">
+  <name>Yanel From Scratch Realm</name>
+
+  <rti>config/rti-repository.xml</rti>
+  <data>config/jcr-data-repository-cnode1.xml</data>
+
+  <ac-policies class="org.wyona.security.impl.PolicyManagerFactoryImplVersion2">config/ac-policies-repository.xml</ac-policies>
+
+  <ac-identities>config/ac-identities-repository.xml</ac-identities>
+
+<!--
+  <web-authenticator class="org.wyona.yanel.servlet.security.impl.DefaultWebAuthenticatorImpl"/>
+-->
+
+<!--
+  <default-language>en</default-language>
+  <languages>
+    <language>en</language>
+    <language>de</language>
+  </languages>
+  <translation-manager class="org.wyona.yanel.core.attributes.translatable.PrefixTranslationManager"/>
+  <language-handler class="org.wyona.yanel.impl.StaticLanguageHandler"/>
+-->
+
+<!--
+  <yarep-repositories>
+    <repository id="my-extra-repository" config="config/my-extra-repository.xml"/>
+  </yarep-repositories>
+-->
+
+<!--
+  <i18n-catalogue>yanelrepo:/i18n-from-scratch-realm.xml</i18n-catalogue>
+-->
+
+<!--
+  <menu class="org.wyona.yanel.servlet.menu.impl.DefaultMenu"/>
+-->
+
+<!--
+  <repo-navigation class="org.wyona.yanel.impl.navigation.SitetreeResConfigAndDataRepoImpl"/>
+-->
+
+  <!-- Directory where all repositories are being contained. At the moment necessary for copying this realm. WARNING: This doesn't have to be the case, but rather check the various repository configs themselves! TODO: See http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5208 -->
+  <root-dir>./.</root-dir>
+</realm-config>

Added: public/yanel/trunk/src/realms/from-scratch-realm-template/realm-jcr-cnode2.xml
===================================================================
--- public/yanel/trunk/src/realms/from-scratch-realm-template/realm-jcr-cnode2.xml	                        (rev 0)
+++ public/yanel/trunk/src/realms/from-scratch-realm-template/realm-jcr-cnode2.xml	2008-07-03 14:45:40 UTC (rev 37376)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+
+<realm-config xmlns="http://www.wyona.org/yanel/realm/1.0">
+  <name>Yanel From Scratch Realm</name>
+
+  <rti>config/rti-repository.xml</rti>
+  <data>config/jcr-data-repository-cnode2.xml</data>
+
+  <ac-policies class="org.wyona.security.impl.PolicyManagerFactoryImplVersion2">config/ac-policies-repository.xml</ac-policies>
+
+  <ac-identities>config/ac-identities-repository.xml</ac-identities>
+
+<!--
+  <web-authenticator class="org.wyona.yanel.servlet.security.impl.DefaultWebAuthenticatorImpl"/>
+-->
+
+<!--
+  <default-language>en</default-language>
+  <languages>
+    <language>en</language>
+    <language>de</language>
+  </languages>
+  <translation-manager class="org.wyona.yanel.core.attributes.translatable.PrefixTranslationManager"/>
+  <language-handler class="org.wyona.yanel.impl.StaticLanguageHandler"/>
+-->
+
+<!--
+  <yarep-repositories>
+    <repository id="my-extra-repository" config="config/my-extra-repository.xml"/>
+  </yarep-repositories>
+-->
+
+<!--
+  <i18n-catalogue>yanelrepo:/i18n-from-scratch-realm.xml</i18n-catalogue>
+-->
+
+<!--
+  <menu class="org.wyona.yanel.servlet.menu.impl.DefaultMenu"/>
+-->
+
+<!--
+  <repo-navigation class="org.wyona.yanel.impl.navigation.SitetreeResConfigAndDataRepoImpl"/>
+-->
+
+  <!-- Directory where all repositories are being contained. At the moment necessary for copying this realm. WARNING: This doesn't have to be the case, but rather check the various repository configs themselves! TODO: See http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5208 -->
+  <root-dir>./.</root-dir>
+</realm-config>



More information about the Yanel-commits mailing list