Jackrabbit server
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 18 Nov 2009 21:26:25 +0000 (21:26 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 18 Nov 2009 21:26:25 +0000 (21:26 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@3102 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

server/modules/org.argeo.server.jackrabbit.repo/META-INF/MANIFEST.MF [new file with mode: 0644]
server/modules/org.argeo.server.jackrabbit.repo/META-INF/spring/jackrabbit-osgi.xml [new file with mode: 0644]
server/modules/org.argeo.server.jackrabbit.repo/META-INF/spring/jackrabbit.xml [new file with mode: 0644]
server/modules/org.argeo.server.jackrabbit.repo/repository.xml [new file with mode: 0644]
server/modules/org.argeo.server.jdbc/META-INF/MANIFEST.MF

diff --git a/server/modules/org.argeo.server.jackrabbit.repo/META-INF/MANIFEST.MF b/server/modules/org.argeo.server.jackrabbit.repo/META-INF/MANIFEST.MF
new file mode 100644 (file)
index 0000000..2b9ebfd
--- /dev/null
@@ -0,0 +1,6 @@
+Bundle-SymbolicName: org.argeo.server.jackrabbit.repo
+Bundle-Version: 0.1.2.SNAPSHOT
+Import-Package: javax.jcr,
+ org.apache.jackrabbit.core,
+ org.apache.jackrabbit.core.config,
+ org.springframework.beans.factory.config
diff --git a/server/modules/org.argeo.server.jackrabbit.repo/META-INF/spring/jackrabbit-osgi.xml b/server/modules/org.argeo.server.jackrabbit.repo/META-INF/spring/jackrabbit-osgi.xml
new file mode 100644 (file)
index 0000000..5eccb05
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/osgi  \r
+       http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
+       http://www.springframework.org/schema/beans   \r
+       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+\r
+       <service ref="repository" interface="javax.jcr.Repository" />\r
+\r
+</beans:beans>
\ No newline at end of file
diff --git a/server/modules/org.argeo.server.jackrabbit.repo/META-INF/spring/jackrabbit.xml b/server/modules/org.argeo.server.jackrabbit.repo/META-INF/spring/jackrabbit.xml
new file mode 100644 (file)
index 0000000..85df798
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+
+       <bean
+               class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+               <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+               <property name="ignoreUnresolvablePlaceholders" value="true" />
+               <!-- 
+               <property name="locations">
+                       <value>osgibundle:jackrabbit.properties </value>
+               </property>
+                -->
+       </bean>
+
+       <bean id="repository" class="org.apache.jackrabbit.core.RepositoryImpl"
+               factory-method="create">
+               <constructor-arg ref="repositoryConfig" />
+       </bean>
+
+       <bean id="repositoryConfig" class="org.apache.jackrabbit.core.config.RepositoryConfig"
+               factory-method="create">
+               <!--  -->
+               <constructor-arg value="osgibundle:repository.xml"
+                       type="java.io.InputStream" />
+               <constructor-arg value="${argeo.osgi.data.dir}/jackrabbit" type="java.lang.String" />
+               
+               <!-- <constructor-arg value="${osgi.instance.area}" type="java.io.File" />-->
+       </bean>
+
+</beans>
\ No newline at end of file
diff --git a/server/modules/org.argeo.server.jackrabbit.repo/repository.xml b/server/modules/org.argeo.server.jackrabbit.repo/repository.xml
new file mode 100644 (file)
index 0000000..666919d
--- /dev/null
@@ -0,0 +1,139 @@
+<?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.6//EN"
+                            "http://jackrabbit.apache.org/dtd/repository-1.6.dtd">
+<!-- Example Repository Configuration File
+     Used by
+     - org.apache.jackrabbit.core.config.RepositoryConfigTest.java
+     -
+-->
+<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">
+        <!--
+            security manager:
+            class: FQN of class implementing the JackrabbitSecurityManager interface
+        -->
+        <SecurityManager class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" workspaceName="security">
+            <!--
+            workspace access:
+            class: FQN of class implementing the WorkspaceAccessManager interface
+            -->
+            <!-- <WorkspaceAccessManager class="..."/> -->
+            <!-- <param name="config" value="${rep.home}/security.xml"/> -->
+        </SecurityManager>
+
+        <!--
+            access manager:
+            class: FQN of class implementing the AccessManager interface
+        -->
+        <AccessManager class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager">
+            <!-- <param name="config" value="${rep.home}/access.xml"/> -->
+        </AccessManager>
+
+        <LoginModule class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule">
+           <!-- 
+              anonymous user name ('anonymous' is the default value)
+            -->
+           <param name="anonymousId" value="anonymous"/>
+           <!--
+              administrator user id (default value if param is missing is 'admin')
+            -->
+           <param name="adminId" value="admin"/>
+        </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="${wsp.name}">
+        <!--
+            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.DerbyPersistenceManager">
+          <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
+          <param name="schemaObjectPrefix" value="${wsp.name}_"/>
+        </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"/>
+            <param name="extractorPoolSize" value="2"/>
+            <param name="supportHighlighting" value="true"/>
+        </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.DerbyPersistenceManager">
+          <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true"/>
+          <param name="schemaObjectPrefix" value="version_"/>
+        </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"/>
+        <param name="extractorPoolSize" value="2"/>
+        <param name="supportHighlighting" value="true"/>
+    </SearchIndex>
+</Repository>
index 8a688feebe06fe8e83291728e314c142e98a0ae3..cfad16d8fa75ccf11307d6f2fd76a35941965447 100644 (file)
@@ -2,6 +2,10 @@ Manifest-Version: 1.0
 Fragment-Host: org.springframework.jdbc
 Bundle-Version: 0.1.1.SNAPSHOT
 Bundle-SymbolicName: org.argeo.server.jdbc
-Import-Package: com.mysql.jdbc;resolution:=optional,
+Import-Package: com.microsoft.sqlserver.jdbc;resolution:=optional,
+ com.mysql.jdbc;resolution:=optional,
  net.sourceforge.jtds.jdbc;resolution:=optional,
- org.hsqldb;resolution:=optional
+ oracle.jdbc;resolution:=optional,
+ org.apache.derby.jdbc;resolution:=optional,
+ org.hsqldb;resolution:=optional,
+ org.postgresql;resolution:=optional