<artifactId>org.argeo.slc.factory</artifactId>
<version>2.1.1-SNAPSHOT</version>
</dependency>
-<!-- <dependency> -->
-<!-- <groupId>org.argeo.slc</groupId> -->
-<!-- <artifactId>org.argeo.slc.server.repo</artifactId> -->
-<!-- <version>2.1.1-SNAPSHOT</version> -->
-<!-- </dependency> -->
+ <dependency>
+ <groupId>org.argeo.slc</groupId>
+ <artifactId>org.argeo.slc.server.repo</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+ </dependency>
<!-- <dependency> -->
<!-- <groupId>org.argeo.slc</groupId> -->
<!-- <artifactId>org.argeo.slc.server.repo.webapp</artifactId> -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.argeo.slc</groupId>
<artifactId>org.argeo.slc.core</artifactId>
<version>2.1.1-SNAPSHOT</version>
</dependency>
-<!-- <dependency> -->
-<!-- <groupId>org.argeo.slc</groupId> -->
-<!-- <artifactId>org.argeo.slc.agent</artifactId> -->
-<!-- <version>2.1.1-SNAPSHOT</version> -->
-<!-- </dependency> -->
+ <dependency>
+ <groupId>org.argeo.slc</groupId>
+ <artifactId>org.argeo.slc.agent</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.argeo.commons</groupId>
<artifactId>org.argeo.osgi.boot</artifactId>
</dependency>
<!-- CLI Agent -->
-<!-- <dependency> -->
-<!-- <groupId>org.argeo.slc</groupId> -->
-<!-- <artifactId>org.argeo.slc.launcher</artifactId> -->
-<!-- <version>1.1.12-SNAPSHOT</version> -->
-<!-- </dependency> -->
-<!-- <dependency> -->
-<!-- <groupId>org.argeo.slc</groupId> -->
-<!-- <artifactId>org.argeo.slc.agent.cli</artifactId> -->
-<!-- <version>2.1.1-SNAPSHOT</version> -->
-<!-- </dependency> -->
+ <!-- <dependency> -->
+ <!-- <groupId>org.argeo.slc</groupId> -->
+ <!-- <artifactId>org.argeo.slc.launcher</artifactId> -->
+ <!-- <version>1.1.12-SNAPSHOT</version> -->
+ <!-- </dependency> -->
+ <!-- <dependency> -->
+ <!-- <groupId>org.argeo.slc</groupId> -->
+ <!-- <artifactId>org.argeo.slc.agent.cli</artifactId> -->
+ <!-- <version>2.1.1-SNAPSHOT</version> -->
+ <!-- </dependency> -->
<!-- JCR Agent -->
-<!-- <dependency> -->
-<!-- <groupId>org.argeo.slc</groupId> -->
-<!-- <artifactId>org.argeo.slc.agent.jcr</artifactId> -->
-<!-- <version>2.1.1-SNAPSHOT</version> -->
-<!-- </dependency> -->
-<!-- <dependency> -->
-<!-- <groupId>org.argeo.slc</groupId> -->
-<!-- <artifactId>org.argeo.slc.node.jackrabbit</artifactId> -->
-<!-- <version>2.1.1-SNAPSHOT</version> -->
-<!-- </dependency> -->
+ <dependency>
+ <groupId>org.argeo.slc</groupId>
+ <artifactId>org.argeo.slc.agent.jcr</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.argeo.slc</groupId>
+ <artifactId>org.argeo.slc.node.jackrabbit</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+ </dependency>
<!-- Node subset -->
<!-- Default JCR repositories configurations -->
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.argeo.slc.agent.jcr</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-<?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
- xmlns:util="http://www.springframework.org/schema/util"\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
- http://www.springframework.org/schema/util\r
- http://www.springframework.org/schema/util/spring-util-2.5.xsd">\r
-\r
- <!-- REFERENCES -->\r
- <reference id="repository" interface="javax.jcr.Repository"\r
- filter="(argeo.jcr.repository.alias=slc)" />\r
-\r
- <reference id="authenticationManager"\r
- interface="org.springframework.security.AuthenticationManager" />\r
-\r
- <reference id="modulesManager"\r
- interface="org.argeo.slc.execution.ExecutionModulesManager" />\r
-\r
- <!-- SERVICES -->\r
- <service ref="attachmentUploader" interface="org.argeo.slc.core.attachment.AttachmentUploader" />\r
-\r
- <service interface="org.argeo.slc.execution.ExecutionModulesListener"\r
- ref="executionModulesListener" />\r
-\r
- <service ref="agent" interface="org.argeo.slc.execution.SlcAgent" />\r
- <service ref="agentCli" interface="org.argeo.slc.execution.SlcAgentCli" />\r
-\r
- <service ref="fileSystemManager" interface="org.apache.commons.vfs.FileSystemManager" />\r
-</beans:beans>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<beans xmlns="http://www.springframework.org/schema/beans"\r
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
-\r
- <bean id="agent" class="org.argeo.slc.jcr.execution.JcrAgent"\r
- init-method="init" destroy-method="destroy">\r
- <property name="defaultModulePrefix" value="org.argeo.slc.lib" />\r
- <property name="repository" ref="repository" />\r
- <property name="modulesManager" ref="modulesManager" />\r
- </bean>\r
-\r
- <bean id="agentCli" class="org.argeo.slc.core.execution.DefaultAgentCli">\r
- <property name="agent" ref="agent" />\r
- <property name="authenticationManager" ref="authenticationManager" />\r
- </bean>\r
-\r
- <bean id="executionModulesListener" class="org.argeo.slc.jcr.execution.JcrExecutionModulesListener"\r
- init-method="init" destroy-method="destroy">\r
- <property name="agent" ref="agent" />\r
- <property name="repository" ref="repository" />\r
- <property name="modulesManager" ref="modulesManager" />\r
- </bean>\r
-\r
- <!-- Thread-bound session is used when multiple threads with various authentication \r
- will call the component -->\r
- <bean id="session" class="org.argeo.security.jcr.SecureThreadBoundSession">\r
- <property name="repository" ref="repository" />\r
- </bean>\r
-\r
- <bean id="attachmentUploader" class="org.argeo.slc.jcr.execution.JcrAttachmentUploader">\r
- <property name="session" ref="session" />\r
- </bean>\r
-\r
-\r
- <bean\r
- class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">\r
- <property name="authenticationManager" ref="authenticationManager" />\r
- </bean>\r
-\r
-\r
- <bean name="fileSystemManager" class="org.apache.commons.vfs.impl.StandardFileSystemManager"\r
- init-method="init" destroy-method="close" />\r
-\r
-</beans>
\ No newline at end of file
+++ /dev/null
-bin.includes = META-INF/,\
- .
+++ /dev/null
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.argeo.slc</groupId>
- <artifactId>modules</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- <relativePath>..</relativePath>
- </parent>
- <artifactId>org.argeo.slc.agent.jcr</artifactId>
- <name>SLC Agent JCR</name>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Import-Package>
- *,
- org.argeo.slc.jcr
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.argeo.slc.agent</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<beans xmlns="http://www.springframework.org/schema/beans"\r
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
- xsi:schemaLocation="\r
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
-\r
- <bean\r
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">\r
- <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />\r
- <property name="locations">\r
- <value>osgibundle:agent.properties</value>\r
- </property>\r
- </bean>\r
-\r
- <!-- Manager -->\r
- <bean id="modulesManager" class="org.argeo.slc.osgi.OsgiExecutionModulesManager"\r
- init-method="init" destroy-method="destroy">\r
- <property name="bundlesManager" ref="bundlesManager" />\r
- </bean>\r
-\r
- <bean id="bundlesManager" class="org.argeo.slc.osgi.BundlesManager">\r
- <property name="defaultTimeout" value="${slc.agent.osgi.defaultTimeout}" />\r
- </bean>\r
-</beans>
\ No newline at end of file
+++ /dev/null
-<?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
- xmlns:util="http://www.springframework.org/schema/util"\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
- <!-- REFERENCES -->\r
- <!-- No <set> so that the equals methods are not called -->\r
- <list id="executionContexts" interface="org.argeo.slc.execution.ExecutionContext"\r
- cardinality="0..N">\r
- <listener ref="modulesManager" bind-method="register"\r
- unbind-method="unregister" />\r
- </list>\r
-\r
- <list id="executionFlows" interface="org.argeo.slc.execution.ExecutionFlow"\r
- cardinality="0..N">\r
- <listener ref="modulesManager" bind-method="register"\r
- unbind-method="unregister" />\r
- </list>\r
-\r
- <list id="executionModulesListeners" interface="org.argeo.slc.execution.ExecutionModulesListener"\r
- cardinality="0..N">\r
- <listener ref="modulesManager" bind-method="register"\r
- unbind-method="unregister" />\r
- </list>\r
-\r
- <list id="executionFlowDescriptorConverters"\r
- interface="org.argeo.slc.execution.ExecutionFlowDescriptorConverter"\r
- cardinality="0..N">\r
- <listener ref="modulesManager" />\r
- </list>\r
-\r
- <!-- SERVICES -->\r
- <service ref="modulesManager" interface="org.argeo.slc.execution.ExecutionModulesManager" />\r
-\r
- <!-- LABEL -->\r
- <beans:bean class="org.argeo.security.core.OsgiModuleLabel">\r
- <beans:property name="bundleContext" ref="bundleContext" />\r
- </beans:bean>\r
-\r
- <!-- ROLES -->\r
- <reference id="userAdminService" interface="org.argeo.security.UserAdminService" />\r
-\r
- <beans:bean class="org.argeo.security.core.SimpleRoleRegistration"\r
- init-method="run">\r
- <beans:property name="role" value="ROLE_SLC" />\r
- <beans:property name="userAdminService" ref="userAdminService" />\r
- </beans:bean>\r
-</beans:beans>
\ No newline at end of file
+++ /dev/null
-slc.agent.osgi.defaultTimeout=60000
+++ /dev/null
-bin.includes = META-INF/,\
- .
+++ /dev/null
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.argeo.slc</groupId>
- <artifactId>modules</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- <relativePath>..</relativePath>
- </parent>
- <artifactId>org.argeo.slc.agent</artifactId>
- <name>SLC Agent</name>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Import-Package>
- *,
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.argeo.slc.node.jackrabbit</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-<?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
- xmlns:util="http://www.springframework.org/schema/util"\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
- http://www.springframework.org/schema/util\r
- http://www.springframework.org/schema/util/spring-util-2.5.xsd">\r
-\r
- <!-- REFERENCES -->\r
- <reference id="nodeRepository" interface="javax.jcr.Repository"\r
- filter="(argeo.jcr.repository.alias=node)" />\r
-\r
- <reference id="authenticationManager"\r
- interface="org.springframework.security.AuthenticationManager" />\r
-\r
- <!-- SERVICES -->\r
- <service ref="jcrRepository" interface="javax.jcr.Repository">\r
- <service-properties>\r
- <beans:entry key="argeo.jcr.repository.alias" value="slc" />\r
- </service-properties>\r
- </service>\r
-\r
-</beans:beans>
\ No newline at end of file
+++ /dev/null
-<?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 id="jcrRepository" class="org.argeo.jackrabbit.JackrabbitWrapper"
- init-method="init" destroy-method="destroy">
- <property name="cndFiles">
- <list>
- <value>/org/argeo/slc/jcr/slc.cnd</value>
- </list>
- </property>
- <property name="repository" ref="nodeRepository" />
- <property name="bundleContext" ref="bundleContext" />
- </bean>
-
- <!-- Security -->
- <bean class="org.argeo.jackrabbit.JackrabbitAuthorizations"
- init-method="run">
- <property name="principalPrivileges">
- <map>
- <entry key="jcr:all" value="ROLE_SLC" />
- </map>
- </property>
- <property name="repository" ref="jcrRepository" />
- </bean>
-
- <bean
- class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
- <description><![CDATA[Executes initialization with a system authentication]]></description>
- <property name="authenticationManager" ref="authenticationManager" />
- </bean>
-
-</beans>
\ No newline at end of file
+++ /dev/null
-bin.includes = META-INF/
+++ /dev/null
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.argeo.slc</groupId>
- <artifactId>modules</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- <relativePath>..</relativePath>
- </parent>
- <artifactId>org.argeo.slc.node.jackrabbit</artifactId>
- <name>SLC Node Jackrabbit</name>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Import-Package>
- *,
- org.argeo.slc.jcr
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.argeo.slc.server.repo</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-#Sun Feb 06 14:17:19 CET 2011
-eclipse.preferences.version=1
-pluginProject.extensions=false
-resolve.requirebundle=false
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<beans xmlns="http://www.springframework.org/schema/beans"\r
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
-\r
- <!-- JCR repositories -->\r
- <bean id="javaRepository" parent="template.jcrRepository">\r
- <property name="homeDirectory" value="${slc.repo.jcr.reposBase}/java" />\r
- <property name="configuration" value="${slc.repo.jcr.configuration.java}" />\r
- </bean>\r
- <bean id="distRepository" parent="template.jcrRepository">\r
- <property name="homeDirectory" value="${slc.repo.jcr.reposBase}/dist" />\r
- <property name="configuration" value="${slc.repo.jcr.configuration.dist}" />\r
- </bean>\r
- <bean id="rpmRepository" parent="template.jcrRepository">\r
- <property name="homeDirectory" value="${slc.repo.jcr.reposBase}/rpm" />\r
- <property name="configuration" value="${slc.repo.jcr.configuration.rpm}" />\r
- </bean>\r
- <bean id="docsRepository" parent="template.jcrRepository">\r
- <property name="homeDirectory" value="${slc.repo.jcr.reposBase}/docs" />\r
- <property name="configuration" value="${slc.repo.jcr.configuration.docs}" />\r
- </bean>\r
-\r
- <!-- JCR authorizations -->\r
- <bean parent="template.jcrAuthorizations">\r
- <property name="repository" ref="javaRepository" />\r
- </bean>\r
- <bean parent="template.jcrAuthorizations">\r
- <property name="repository" ref="distRepository" />\r
- </bean>\r
- <bean parent="template.jcrAuthorizations">\r
- <property name="repository" ref="rpmRepository" />\r
- </bean>\r
- <bean parent="template.jcrAuthorizations">\r
- <property name="repository" ref="docsRepository" />\r
- </bean>\r
-\r
- <!-- Templates -->\r
- <bean id="template.jcrRepository" abstract="true"\r
- class="org.argeo.jackrabbit.JackrabbitContainer" init-method="init"\r
- destroy-method="destroy">\r
- <property name="variables" value="osgibundle:/repo.properties" />\r
- <property name="cndFiles">\r
- <list>\r
- <value>/org/argeo/jcr/argeo.cnd</value>\r
- <value>/org/argeo/slc/jcr/slc.cnd</value>\r
- <value>/org/argeo/slc/repo/repo.cnd</value>\r
- </list>\r
- </property>\r
- <property name="bundleContext" ref="bundleContext" />\r
- <property name="forceCndImport" value="${slc.repo.jcr.forceCndImport}" />\r
- </bean>\r
-\r
- <bean id="template.jcrAuthorizations" abstract="true"\r
- class="org.argeo.jackrabbit.JackrabbitAuthorizations" init-method="run">\r
- <property name="principalPrivileges">\r
- <map>\r
- <entry key="jcr:all" value="ROLE_SLC" />\r
- </map>\r
- </property>\r
- <property name="workspace" value="*" />\r
- </bean>\r
-\r
-</beans>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
- ">
-
- <!-- Proxied repositories -->
- <util:list id="defaultMavenRepositories">
- <ref local="central" />
- </util:list>
-
- <bean id="central" p:url="http://repo1.maven.org/maven2"
- class="org.argeo.slc.aether.spring.RemoteRepositoryFactory" />
-
-</beans>
\ No newline at end of file
+++ /dev/null
-<?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
- xmlns:security="http://www.springframework.org/schema/security"\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
- http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">\r
-\r
- <!-- REFERENCES -->\r
- <reference id="authenticationManager"\r
- interface="org.springframework.security.AuthenticationManager" />\r
-\r
- <set id="defaultRpmRepositories" cardinality="0..N"\r
- interface="org.argeo.slc.rpmfactory.RpmRepository" />\r
-\r
- <!-- SERVICES -->\r
- <service ref="javaRepository" interface="javax.jcr.Repository">\r
- <service-properties>\r
- <beans:entry key="argeo.jcr.repository.alias" value="java" />\r
- </service-properties>\r
- </service>\r
- <service ref="distRepository" interface="javax.jcr.Repository">\r
- <service-properties>\r
- <beans:entry key="argeo.jcr.repository.alias" value="dist" />\r
- </service-properties>\r
- </service>\r
- <service ref="rpmRepository" interface="javax.jcr.Repository">\r
- <service-properties>\r
- <beans:entry key="argeo.jcr.repository.alias" value="rpm" />\r
- </service-properties>\r
- </service>\r
- <service ref="docsRepository" interface="javax.jcr.Repository">\r
- <service-properties>\r
- <beans:entry key="argeo.jcr.repository.alias" value="docs" />\r
- </service-properties>\r
- </service>\r
-\r
- <service ref="slcRepoManager" interface="org.argeo.slc.repo.SlcRepoManager" />\r
-\r
- <service ref="mavenProxyService" interface="org.argeo.slc.repo.MavenProxyService" />\r
- <service ref="rpmProxyService" interface="org.argeo.slc.rpmfactory.RpmProxyService" />\r
-\r
- <!-- LABEL -->\r
- <beans:bean class="org.argeo.security.core.OsgiModuleLabel">\r
- <beans:property name="bundleContext" ref="bundleContext" />\r
- </beans:bean>\r
-\r
- <!-- ROLES -->\r
- <reference id="userAdminService" interface="org.argeo.security.UserAdminService" />\r
-\r
- <beans:bean id="ROLE_SLC"\r
- class="org.argeo.security.core.SimpleRoleRegistration" init-method="run">\r
- <beans:property name="role" value="ROLE_SLC" />\r
- <beans:property name="userAdminService" ref="userAdminService" />\r
- </beans:bean>\r
-\r
- <beans:bean\r
- class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">\r
- <beans:property name="authenticationManager" ref="authenticationManager" />\r
- </beans:bean>\r
-</beans:beans>\r
-\r
-<!-- <reference id="mavenRepositorySystem" interface="org.sonatype.aether.RepositorySystem" -->\r
-<!-- filter="(aether.repositorySystemType=maven)" /> -->\r
-<!-- <reference id="mavenRepositorySystemSession" interface="org.sonatype.aether.RepositorySystemSession" -->\r
-<!-- filter="(aether.repositorySystemType=maven)" /> -->\r
-\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
- ">
-
- <bean
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
- <property name="locations">
- <value>osgibundle:repo.properties</value>
- </property>
- </bean>
-
- <bean id="slcRepoManager" class="org.argeo.slc.repo.core.SlcRepoManagerImpl"
- init-method="init" destroy-method="destroy">
- <property name="javaRepoManager" ref="javaRepoManager" />
- </bean>
-
- <!-- Java -->
- <bean id="javaRepoManager" class="org.argeo.slc.repo.core.JavaRepoManagerImpl"
- init-method="init" destroy-method="destroy" depends-on="ROLE_SLC">
- <property name="nodeIndexers">
- <list>
- <bean class="org.argeo.slc.repo.ModularDistributionIndexer" />
- <bean class="org.argeo.slc.repo.JarFileIndexer" />
- <bean class="org.argeo.slc.repo.ArtifactIndexer" />
- <bean class="org.argeo.slc.repo.PdeSourcesIndexer" />
- </list>
- </property>
- <property name="jcrRepository" ref="javaRepository" />
- </bean>
-
- <bean id="mavenProxyService" class="org.argeo.slc.repo.maven.MavenProxyServiceImpl"
- init-method="init" destroy-method="destroy" depends-on="ROLE_SLC">
- <property name="jcrRepository" ref="javaRepository" />
- <property name="proxyWorkspace" value="${slc.repo.jcr.proxyWorkspace}" />
- <property name="defaultRepositories" ref="defaultMavenRepositories" />
- </bean>
-
- <!-- RPM -->
- <bean id="rpmRepoManager" class="org.argeo.slc.repo.core.RpmRepoManagerImpl"
- init-method="init" destroy-method="destroy" depends-on="ROLE_SLC">
- <property name="nodeIndexers">
- <list>
- <bean class="org.argeo.slc.repo.RpmIndexer" />
- </list>
- </property>
- <property name="jcrRepository" ref="rpmRepository" />
- </bean>
-
- <bean id="rpmProxyService" class="org.argeo.slc.rpmfactory.core.RpmProxyServiceImpl"
- init-method="init" destroy-method="destroy" depends-on="ROLE_SLC">
- <property name="jcrRepository" ref="rpmRepository" />
- <property name="proxyWorkspace" value="${slc.repo.jcr.proxyWorkspace}" />
- <property name="defaultRepositories" ref="defaultRpmRepositories" />
- </bean>
-
- <!-- Draft to centralize multirepository connection process in an Argeo
- environment -->
- <!-- <bean id="repoService" class="org.argeo.slc.repo.core.RepoServiceImpl"
- init-method="init" destroy-method="destroy"> <property name="repositoryFactory"
- ref="repositoryFactory" /> <property name="keyring" ref="keyring" /> <property
- name="nodeRepository" ref="nodeRepository" /> </bean> -->
-</beans>
\ No newline at end of file
+++ /dev/null
-bin.includes = META-INF/,\
- repo.properties,\
- repository-h2.xml
+++ /dev/null
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.argeo.slc</groupId>
- <artifactId>modules</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- <relativePath>..</relativePath>
- </parent>
- <artifactId>org.argeo.slc.server.repo</artifactId>
- <name>SLC Repo</name>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Import-Package>
- *,
- org.argeo.jcr,
- org.argeo.slc.jcr,
- org.argeo.slc.repo,
- org.h2;resolution:=optional,
- org.postgresql;resolution:=optional,
- com.mysql.jdbc;resolution:=optional,
- </Import-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file
+++ /dev/null
-slc.repo.jcr.reposBase=${osgi.instance.area}/repos
-slc.repo.jcr.forceCndImport=true
-slc.repo.jcr.proxyWorkspace=proxy
-
-slc.repo.jcr.configuration.java=osgibundle:repository-h2.xml
-slc.repo.jcr.configuration.dist=osgibundle:repository-h2.xml
-slc.repo.jcr.configuration.rpm=osgibundle:repository-h2.xml
-slc.repo.jcr.configuration.docs=osgibundle:repository-h2.xml
-
-slc.repo.jcr.dbuser=sa
-slc.repo.jcr.dbpassword=
-slc.repo.jcr.maxPoolSize=10
-
-# Postgres
-slc.repo.jcr.dburl.java=jdbc:postgresql://localhost/slc_repo_java
-slc.repo.jcr.dburl.dist=jdbc:postgresql://localhost/slc_repo_dist
-slc.repo.jcr.dburl.rpm=jdbc:postgresql://localhost/slc_repo_rpm
-slc.repo.jcr.dburl.docs=jdbc:postgresql://localhost/slc_repo_docs
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
- "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
-<!-- Old default configuration, still used on some repositories. -->
-<Repository>
- <!-- Shared datasource -->
- <DataSources>
- <DataSource name="dataSource">
- <param name="driver" value="org.h2.Driver" />
- <param name="url" value="jdbc:h2:${rep.home}/h2/repository" />
- <param name="user" value="${slc.repo.jcr.dbuser}" />
- <param name="password" value="${slc.repo.jcr.dbpassword}" />
- <param name="databaseType" value="h2" />
- <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
- </DataSource>
- </DataSources>
-
- <!-- File system and datastore -->
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="default" />
- <param name="schemaObjectPrefix" value="fs_" />
- </FileSystem>
- <DataStore class="org.apache.jackrabbit.core.data.FileDataStore" />
- <!-- <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
- <param name="dataSourceName" value="dataSource" /> <param name="schemaObjectPrefix"
- value="ds_" /> </DataStore> -->
-
- <!-- Workspace templates -->
- <Workspaces rootPath="${rep.home}/workspaces"
- defaultWorkspace="main" />
- <Workspace name="${wsp.name}">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="default" />
- <param name="schemaObjectPrefix" value="${wsp.name}_fs_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="${wsp.name}_pm_" />
- </PersistenceManager>
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${wsp.home}/index" />
- </SearchIndex>
- </Workspace>
-
- <!-- Versioning -->
- <Versioning rootPath="${rep.home}/version">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="default" />
- <param name="schemaObjectPrefix" value="fs_ver_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="pm_ver_" />
- </PersistenceManager>
- </Versioning>
-
- <!-- Indexing -->
- <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>
-
- <!-- Security -->
- <Security appName="Jackrabbit">
- <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
- workspaceName="security">
- </SecurityManager>
- <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
- </AccessManager>
- <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
- </LoginModule>
- </Security>
-</Repository>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
- "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
-<Repository>
- <!-- Shared datasource -->
- <DataSources>
- <DataSource name="dataSource">
- <param name="driver" value="org.h2.Driver" />
- <param name="url" value="jdbc:h2:${rep.home}/h2/repository" />
- <param name="user" value="${slc.repo.jcr.dbuser}" />
- <param name="password" value="${slc.repo.jcr.dbpassword}" />
- <param name="databaseType" value="h2" />
- <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
- </DataSource>
- </DataSources>
-
- <!-- Repository wide -->
- <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
- <param name="path" value="${rep.home}/datastore" />
- <param name="minRecordLength" value="10240" />
- </DataStore>
- <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
- <param name="path" value="${rep.home}/fs" />
- </FileSystem>
-
- <!-- Workspaces -->
- <Workspaces rootPath="${rep.home}/workspaces"
- defaultWorkspace="main" />
- <Workspace name="${wsp.name}">
- <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
- <param name="path" value="${wsp.home}/fs" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="${wsp.name}_pm_" />
- </PersistenceManager>
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
- </SearchIndex>
- </Workspace>
-
- <!-- Versioning -->
- <Versioning rootPath="${rep.home}/version">
- <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
- <param name="path" value="${rep.home}/version/fs" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="pm_ver_" />
- </PersistenceManager>
- </Versioning>
-
- <!-- Indexing -->
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/repository" />
- </SearchIndex>
-
- <!-- Security -->
- <Security appName="Jackrabbit">
- <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
- workspaceName="security">
- </SecurityManager>
- <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
- </AccessManager>
- <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
- </LoginModule>
- </Security>
-</Repository>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
- "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
-<Repository>
- <!-- Shared datasource -->
- <DataSources>
- <DataSource name="dataSource">
- <param name="driver" value="org.postgresql.Driver" />
- <param name="url" value="${slc.repo.jcr.dburl.dist}" />
- <param name="user" value="${slc.repo.jcr.dbuser}" />
- <param name="password" value="${slc.repo.jcr.dbpassword}" />
- <param name="databaseType" value="postgresql" />
- <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
- </DataSource>
- </DataSources>
-
- <!-- File system and datastore -->
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="_fs_" />
- </FileSystem>
- <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
- <param name="path" value="${rep.home}/datastore" />
- </DataStore>
-
- <!-- Workspace templates -->
- <Workspaces rootPath="${rep.home}/workspaces"
- defaultWorkspace="main" />
- <Workspace name="${wsp.name}">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="${wsp.name}_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="${wsp.name}_" />
- </PersistenceManager>
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
- </SearchIndex>
- </Workspace>
-
- <!-- Versioning -->
- <Versioning rootPath="${rep.home}/version">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="_versioning_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="_versioning_" />
- </PersistenceManager>
- </Versioning>
-
- <!-- Indexing -->
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/repository" />
- </SearchIndex>
-
- <!-- Security -->
- <Security appName="Jackrabbit">
- <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
- workspaceName="security">
- </SecurityManager>
- <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
- </AccessManager>
- <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
- </LoginModule>
- </Security>
-</Repository>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
- "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
-<Repository>
- <!-- Shared datasource -->
- <DataSources>
- <DataSource name="dataSource">
- <param name="driver" value="org.postgresql.Driver" />
- <param name="url" value="${slc.repo.jcr.dburl.docs}" />
- <param name="user" value="${slc.repo.jcr.dbuser}" />
- <param name="password" value="${slc.repo.jcr.dbpassword}" />
- <param name="databaseType" value="postgresql" />
- <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
- </DataSource>
- </DataSources>
-
- <!-- File system and datastore -->
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="_fs_" />
- </FileSystem>
- <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
- <param name="path" value="${rep.home}/datastore" />
- </DataStore>
-
- <!-- Workspace templates -->
- <Workspaces rootPath="${rep.home}/workspaces"
- defaultWorkspace="main" />
- <Workspace name="${wsp.name}">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="${wsp.name}_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="${wsp.name}_" />
- </PersistenceManager>
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
- </SearchIndex>
- </Workspace>
-
- <!-- Versioning -->
- <Versioning rootPath="${rep.home}/version">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="_versioning_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="_versioning_" />
- </PersistenceManager>
- </Versioning>
-
- <!-- Indexing -->
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/repository" />
- </SearchIndex>
-
- <!-- Security -->
- <Security appName="Jackrabbit">
- <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
- workspaceName="security">
- </SecurityManager>
- <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
- </AccessManager>
- <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
- </LoginModule>
- </Security>
-</Repository>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
- "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
-<Repository>
- <!-- Shared datasource -->
- <DataSources>
- <DataSource name="dataSource">
- <param name="driver" value="org.postgresql.Driver" />
- <param name="url" value="${slc.repo.jcr.dburl.java}" />
- <param name="user" value="${slc.repo.jcr.dbuser}" />
- <param name="password" value="${slc.repo.jcr.dbpassword}" />
- <param name="databaseType" value="postgresql" />
- <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
- </DataSource>
- </DataSources>
-
- <!-- File system and datastore -->
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="_fs_" />
- </FileSystem>
- <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
- <param name="path" value="${rep.home}/datastore" />
- </DataStore>
-
- <!-- Workspace templates -->
- <Workspaces rootPath="${rep.home}/workspaces"
- defaultWorkspace="main" />
- <Workspace name="${wsp.name}">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="${wsp.name}_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="${wsp.name}_" />
- </PersistenceManager>
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
- </SearchIndex>
- </Workspace>
-
- <!-- Versioning -->
- <Versioning rootPath="${rep.home}/version">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="_versioning_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="_versioning_" />
- </PersistenceManager>
- </Versioning>
-
- <!-- Indexing -->
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/repository" />
- </SearchIndex>
-
- <!-- Security -->
- <Security appName="Jackrabbit">
- <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
- workspaceName="security">
- </SecurityManager>
- <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
- </AccessManager>
- <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
- </LoginModule>
- </Security>
-</Repository>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
- "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
-<Repository>
- <!-- Shared datasource -->
- <DataSources>
- <DataSource name="dataSource">
- <param name="driver" value="org.postgresql.Driver" />
- <param name="url" value="${slc.repo.jcr.dburl.rpm}" />
- <param name="user" value="${slc.repo.jcr.dbuser}" />
- <param name="password" value="${slc.repo.jcr.dbpassword}" />
- <param name="databaseType" value="postgresql" />
- <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
- </DataSource>
- </DataSources>
-
- <!-- File system and datastore -->
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="_fs_" />
- </FileSystem>
- <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
- <param name="path" value="${rep.home}/datastore" />
- </DataStore>
-
- <!-- Workspace templates -->
- <Workspaces rootPath="${rep.home}/workspaces"
- defaultWorkspace="main" />
- <Workspace name="${wsp.name}">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="${wsp.name}_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="${wsp.name}_" />
- </PersistenceManager>
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
- </SearchIndex>
- </Workspace>
-
- <!-- Versioning -->
- <Versioning rootPath="${rep.home}/version">
- <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
- <param name="dataSourceName" value="dataSource" />
- <param name="schema" value="postgresql" />
- <param name="schemaObjectPrefix" value="_versioning_" />
- </FileSystem>
- <PersistenceManager
- class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
- <param name="dataSourceName" value="dataSource" />
- <param name="schemaObjectPrefix" value="_versioning_" />
- </PersistenceManager>
- </Versioning>
-
- <!-- Indexing -->
- <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
- <param name="path" value="${rep.home}/indexes/repository" />
- </SearchIndex>
-
- <!-- Security -->
- <Security appName="Jackrabbit">
- <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
- workspaceName="security">
- </SecurityManager>
- <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
- </AccessManager>
- <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
- </LoginModule>
- </Security>
-</Repository>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.argeo.slc.agent.jcr</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
--- /dev/null
+<?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
+ xmlns:util="http://www.springframework.org/schema/util"\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
+ http://www.springframework.org/schema/util\r
+ http://www.springframework.org/schema/util/spring-util-2.5.xsd">\r
+\r
+ <!-- REFERENCES -->\r
+ <reference id="repository" interface="javax.jcr.Repository"\r
+ filter="(argeo.jcr.repository.alias=slc)" />\r
+\r
+ <reference id="authenticationManager"\r
+ interface="org.springframework.security.authentication.AuthenticationManager" />\r
+\r
+ <reference id="modulesManager"\r
+ interface="org.argeo.slc.execution.ExecutionModulesManager" />\r
+\r
+ <!-- SERVICES -->\r
+ <service ref="attachmentUploader" interface="org.argeo.slc.core.attachment.AttachmentUploader" />\r
+\r
+ <service interface="org.argeo.slc.execution.ExecutionModulesListener"\r
+ ref="executionModulesListener" />\r
+\r
+ <service ref="agent" interface="org.argeo.slc.execution.SlcAgent" />\r
+ <service ref="agentCli" interface="org.argeo.slc.execution.SlcAgentCli" />\r
+\r
+ <service ref="fileSystemManager" interface="org.apache.commons.vfs2.FileSystemManager" />\r
+</beans:beans>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+\r
+ <bean id="agent" class="org.argeo.slc.jcr.execution.JcrAgent"\r
+ init-method="init" destroy-method="destroy">\r
+ <property name="defaultModulePrefix" value="org.argeo.slc.lib" />\r
+ <property name="repository" ref="repository" />\r
+ <property name="modulesManager" ref="modulesManager" />\r
+ </bean>\r
+\r
+ <bean id="agentCli" class="org.argeo.slc.core.execution.DefaultAgentCli">\r
+ <property name="agent" ref="agent" />\r
+ <property name="authenticationManager" ref="authenticationManager" />\r
+ </bean>\r
+\r
+ <bean id="executionModulesListener" class="org.argeo.slc.jcr.execution.JcrExecutionModulesListener"\r
+ init-method="init" destroy-method="destroy">\r
+ <property name="agent" ref="agent" />\r
+ <property name="repository" ref="repository" />\r
+ <property name="modulesManager" ref="modulesManager" />\r
+ </bean>\r
+\r
+ <!-- Thread-bound session is used when multiple threads with various authentication \r
+ will call the component -->\r
+ <bean id="session" class="org.argeo.security.jcr.SecureThreadBoundSession">\r
+ <property name="repository" ref="repository" />\r
+ </bean>\r
+\r
+ <bean id="attachmentUploader" class="org.argeo.slc.jcr.execution.JcrAttachmentUploader">\r
+ <property name="session" ref="session" />\r
+ </bean>\r
+\r
+\r
+ <bean\r
+ class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">\r
+ <property name="authenticationManager" ref="authenticationManager" />\r
+ </bean>\r
+\r
+\r
+ <bean name="fileSystemManager" class="org.apache.commons.vfs2.impl.StandardFileSystemManager"\r
+ init-method="init" destroy-method="close" />\r
+\r
+</beans>
\ No newline at end of file
--- /dev/null
+Import-Package: org.argeo.slc.jcr,\
+*
--- /dev/null
+bin.includes = META-INF/,\
+ .
--- /dev/null
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.argeo.slc</groupId>
+ <artifactId>argeo-slc</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <artifactId>org.argeo.slc.agent.jcr</artifactId>
+ <name>SLC Agent JCR</name>
+</project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.argeo.slc.agent</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
+ xsi:schemaLocation="\r
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+\r
+ <bean\r
+ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">\r
+ <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />\r
+ <property name="locations">\r
+ <value>osgibundle:agent.properties</value>\r
+ </property>\r
+ </bean>\r
+\r
+ <!-- Manager -->\r
+ <bean id="modulesManager" class="org.argeo.slc.osgi.OsgiExecutionModulesManager"\r
+ init-method="init" destroy-method="destroy">\r
+ <property name="bundlesManager" ref="bundlesManager" />\r
+ </bean>\r
+\r
+ <bean id="bundlesManager" class="org.argeo.slc.osgi.BundlesManager">\r
+ <property name="defaultTimeout" value="${slc.agent.osgi.defaultTimeout}" />\r
+ </bean>\r
+</beans>
\ No newline at end of file
--- /dev/null
+<?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
+ xmlns:util="http://www.springframework.org/schema/util"\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
+ <!-- REFERENCES -->\r
+ <!-- No <set> so that the equals methods are not called -->\r
+ <list id="executionContexts" interface="org.argeo.slc.execution.ExecutionContext"\r
+ cardinality="0..N">\r
+ <listener ref="modulesManager" bind-method="register"\r
+ unbind-method="unregister" />\r
+ </list>\r
+\r
+ <list id="executionFlows" interface="org.argeo.slc.execution.ExecutionFlow"\r
+ cardinality="0..N">\r
+ <listener ref="modulesManager" bind-method="register"\r
+ unbind-method="unregister" />\r
+ </list>\r
+\r
+ <list id="executionModulesListeners" interface="org.argeo.slc.execution.ExecutionModulesListener"\r
+ cardinality="0..N">\r
+ <listener ref="modulesManager" bind-method="register"\r
+ unbind-method="unregister" />\r
+ </list>\r
+\r
+ <list id="executionFlowDescriptorConverters"\r
+ interface="org.argeo.slc.execution.ExecutionFlowDescriptorConverter"\r
+ cardinality="0..N">\r
+ <listener ref="modulesManager" />\r
+ </list>\r
+\r
+ <!-- SERVICES -->\r
+ <service ref="modulesManager" interface="org.argeo.slc.execution.ExecutionModulesManager" />\r
+\r
+ <!-- LABEL -->\r
+ <beans:bean class="org.argeo.security.core.OsgiModuleLabel">\r
+ <beans:property name="bundleContext" ref="bundleContext" />\r
+ </beans:bean>\r
+\r
+ <!-- ROLES -->\r
+ <reference id="userAdminService" interface="org.argeo.security.UserAdminService" />\r
+\r
+ <beans:bean class="org.argeo.security.core.SimpleRoleRegistration"\r
+ init-method="run">\r
+ <beans:property name="role" value="ROLE_SLC" />\r
+ <beans:property name="userAdminService" ref="userAdminService" />\r
+ </beans:bean>\r
+</beans:beans>
\ No newline at end of file
--- /dev/null
+slc.agent.osgi.defaultTimeout=60000
--- /dev/null
+bin.includes = META-INF/,\
+ .
--- /dev/null
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.argeo.slc</groupId>
+ <artifactId>argeo-slc</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <artifactId>org.argeo.slc.agent</artifactId>
+ <name>SLC Agent</name>
+</project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.argeo.slc.node.jackrabbit</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
--- /dev/null
+<?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
+ xmlns:util="http://www.springframework.org/schema/util"\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
+ http://www.springframework.org/schema/util\r
+ http://www.springframework.org/schema/util/spring-util-2.5.xsd">\r
+\r
+ <!-- REFERENCES -->\r
+ <reference id="nodeRepository" interface="javax.jcr.Repository"\r
+ filter="(argeo.jcr.repository.alias=node)" />\r
+\r
+ <reference id="authenticationManager"\r
+ interface="org.springframework.security.authentication.AuthenticationManager" />\r
+\r
+ <!-- SERVICES -->\r
+ <service ref="jcrRepository" interface="javax.jcr.Repository">\r
+ <service-properties>\r
+ <beans:entry key="argeo.jcr.repository.alias" value="slc" />\r
+ </service-properties>\r
+ </service>\r
+\r
+</beans:beans>
\ No newline at end of file
--- /dev/null
+<?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 id="jcrRepository" class="org.argeo.jackrabbit.JackrabbitWrapper"
+ init-method="init" destroy-method="destroy">
+ <property name="cndFiles">
+ <list>
+ <value>/org/argeo/slc/jcr/slc.cnd</value>
+ </list>
+ </property>
+ <property name="repository" ref="nodeRepository" />
+ <property name="bundleContext" ref="bundleContext" />
+ </bean>
+
+ <!-- Security -->
+ <bean class="org.argeo.jackrabbit.JackrabbitAuthorizations"
+ init-method="run">
+ <property name="principalPrivileges">
+ <map>
+ <entry key="jcr:all" value="ROLE_SLC" />
+ </map>
+ </property>
+ <property name="repository" ref="jcrRepository" />
+ </bean>
+
+ <bean
+ class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
+ <description><![CDATA[Executes initialization with a system authentication]]></description>
+ <property name="authenticationManager" ref="authenticationManager" />
+ </bean>
+
+</beans>
\ No newline at end of file
--- /dev/null
+Import-Package: org.argeo.slc.jcr,\
+*
\ No newline at end of file
--- /dev/null
+bin.includes = META-INF/
--- /dev/null
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.argeo.slc</groupId>
+ <artifactId>argeo-slc</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <artifactId>org.argeo.slc.node.jackrabbit</artifactId>
+ <name>SLC Node Jackrabbit</name>
+</project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.argeo.slc.server.repo</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
--- /dev/null
+#Sun Feb 06 14:17:19 CET 2011
+eclipse.preferences.version=1
+pluginProject.extensions=false
+resolve.requirebundle=false
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+\r
+ <!-- JCR repositories -->\r
+ <bean id="javaRepository" parent="template.jcrRepository">\r
+ <property name="homeDirectory" value="${slc.repo.jcr.reposBase}/java" />\r
+ <property name="configuration" value="${slc.repo.jcr.configuration.java}" />\r
+ </bean>\r
+ <bean id="distRepository" parent="template.jcrRepository">\r
+ <property name="homeDirectory" value="${slc.repo.jcr.reposBase}/dist" />\r
+ <property name="configuration" value="${slc.repo.jcr.configuration.dist}" />\r
+ </bean>\r
+ <bean id="rpmRepository" parent="template.jcrRepository">\r
+ <property name="homeDirectory" value="${slc.repo.jcr.reposBase}/rpm" />\r
+ <property name="configuration" value="${slc.repo.jcr.configuration.rpm}" />\r
+ </bean>\r
+ <bean id="docsRepository" parent="template.jcrRepository">\r
+ <property name="homeDirectory" value="${slc.repo.jcr.reposBase}/docs" />\r
+ <property name="configuration" value="${slc.repo.jcr.configuration.docs}" />\r
+ </bean>\r
+\r
+ <!-- JCR authorizations -->\r
+ <bean parent="template.jcrAuthorizations">\r
+ <property name="repository" ref="javaRepository" />\r
+ </bean>\r
+ <bean parent="template.jcrAuthorizations">\r
+ <property name="repository" ref="distRepository" />\r
+ </bean>\r
+ <bean parent="template.jcrAuthorizations">\r
+ <property name="repository" ref="rpmRepository" />\r
+ </bean>\r
+ <bean parent="template.jcrAuthorizations">\r
+ <property name="repository" ref="docsRepository" />\r
+ </bean>\r
+\r
+ <!-- Templates -->\r
+ <bean id="template.jcrRepository" abstract="true"\r
+ class="org.argeo.jackrabbit.JackrabbitContainer" init-method="init"\r
+ destroy-method="destroy">\r
+ <property name="variables" value="osgibundle:/repo.properties" />\r
+ <property name="cndFiles">\r
+ <list>\r
+ <value>/org/argeo/jcr/argeo.cnd</value>\r
+ <value>/org/argeo/slc/jcr/slc.cnd</value>\r
+ <value>/org/argeo/slc/repo/repo.cnd</value>\r
+ </list>\r
+ </property>\r
+ <property name="bundleContext" ref="bundleContext" />\r
+ <property name="forceCndImport" value="${slc.repo.jcr.forceCndImport}" />\r
+ </bean>\r
+\r
+ <bean id="template.jcrAuthorizations" abstract="true"\r
+ class="org.argeo.jackrabbit.JackrabbitAuthorizations" init-method="run">\r
+ <property name="principalPrivileges">\r
+ <map>\r
+ <entry key="jcr:all" value="ROLE_SLC" />\r
+ </map>\r
+ </property>\r
+ <property name="workspace" value="*" />\r
+ </bean>\r
+\r
+</beans>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
+ ">
+
+ <!-- Proxied repositories -->
+ <util:list id="defaultMavenRepositories">
+ <ref local="central" />
+ </util:list>
+
+ <bean id="central" p:url="http://repo1.maven.org/maven2"
+ class="org.argeo.slc.aether.spring.RemoteRepositoryFactory" />
+
+</beans>
\ No newline at end of file
--- /dev/null
+<?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
+ xmlns:security="http://www.springframework.org/schema/security"\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
+ http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">\r
+\r
+ <!-- REFERENCES -->\r
+ <reference id="authenticationManager"\r
+ interface="org.springframework.security.authentication.AuthenticationManager" />\r
+\r
+ <set id="defaultRpmRepositories" cardinality="0..N"\r
+ interface="org.argeo.slc.rpmfactory.RpmRepository" />\r
+\r
+ <!-- SERVICES -->\r
+ <service ref="javaRepository" interface="javax.jcr.Repository">\r
+ <service-properties>\r
+ <beans:entry key="argeo.jcr.repository.alias" value="java" />\r
+ </service-properties>\r
+ </service>\r
+ <service ref="distRepository" interface="javax.jcr.Repository">\r
+ <service-properties>\r
+ <beans:entry key="argeo.jcr.repository.alias" value="dist" />\r
+ </service-properties>\r
+ </service>\r
+ <service ref="rpmRepository" interface="javax.jcr.Repository">\r
+ <service-properties>\r
+ <beans:entry key="argeo.jcr.repository.alias" value="rpm" />\r
+ </service-properties>\r
+ </service>\r
+ <service ref="docsRepository" interface="javax.jcr.Repository">\r
+ <service-properties>\r
+ <beans:entry key="argeo.jcr.repository.alias" value="docs" />\r
+ </service-properties>\r
+ </service>\r
+\r
+ <service ref="slcRepoManager" interface="org.argeo.slc.repo.SlcRepoManager" />\r
+\r
+ <service ref="mavenProxyService" interface="org.argeo.slc.repo.MavenProxyService" />\r
+ <service ref="rpmProxyService" interface="org.argeo.slc.rpmfactory.RpmProxyService" />\r
+\r
+ <!-- LABEL -->\r
+ <beans:bean class="org.argeo.security.core.OsgiModuleLabel">\r
+ <beans:property name="bundleContext" ref="bundleContext" />\r
+ </beans:bean>\r
+\r
+ <!-- ROLES -->\r
+ <reference id="userAdminService" interface="org.argeo.security.UserAdminService" />\r
+\r
+ <beans:bean id="ROLE_SLC"\r
+ class="org.argeo.security.core.SimpleRoleRegistration" init-method="run">\r
+ <beans:property name="role" value="ROLE_SLC" />\r
+ <beans:property name="userAdminService" ref="userAdminService" />\r
+ </beans:bean>\r
+\r
+ <beans:bean\r
+ class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">\r
+ <beans:property name="authenticationManager" ref="authenticationManager" />\r
+ </beans:bean>\r
+</beans:beans>\r
+\r
+<!-- <reference id="mavenRepositorySystem" interface="org.sonatype.aether.RepositorySystem" -->\r
+<!-- filter="(aether.repositorySystemType=maven)" /> -->\r
+<!-- <reference id="mavenRepositorySystemSession" interface="org.sonatype.aether.RepositorySystemSession" -->\r
+<!-- filter="(aether.repositorySystemType=maven)" /> -->\r
+\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd
+ ">
+
+ <bean
+ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+ <property name="locations">
+ <value>osgibundle:repo.properties</value>
+ </property>
+ </bean>
+
+ <bean id="slcRepoManager" class="org.argeo.slc.repo.core.SlcRepoManagerImpl"
+ init-method="init" destroy-method="destroy">
+ <property name="javaRepoManager" ref="javaRepoManager" />
+ </bean>
+
+ <!-- Java -->
+ <bean id="javaRepoManager" class="org.argeo.slc.repo.core.JavaRepoManagerImpl"
+ init-method="init" destroy-method="destroy" depends-on="ROLE_SLC">
+ <property name="nodeIndexers">
+ <list>
+ <bean class="org.argeo.slc.repo.ModularDistributionIndexer" />
+ <bean class="org.argeo.slc.repo.JarFileIndexer" />
+ <bean class="org.argeo.slc.repo.ArtifactIndexer" />
+ <bean class="org.argeo.slc.repo.PdeSourcesIndexer" />
+ </list>
+ </property>
+ <property name="jcrRepository" ref="javaRepository" />
+ </bean>
+
+ <bean id="mavenProxyService" class="org.argeo.slc.repo.maven.MavenProxyServiceImpl"
+ init-method="init" destroy-method="destroy" depends-on="ROLE_SLC">
+ <property name="jcrRepository" ref="javaRepository" />
+ <property name="proxyWorkspace" value="${slc.repo.jcr.proxyWorkspace}" />
+ <property name="defaultRepositories" ref="defaultMavenRepositories" />
+ </bean>
+
+ <!-- RPM -->
+ <bean id="rpmRepoManager" class="org.argeo.slc.repo.core.RpmRepoManagerImpl"
+ init-method="init" destroy-method="destroy" depends-on="ROLE_SLC">
+ <property name="nodeIndexers">
+ <list>
+ <bean class="org.argeo.slc.repo.RpmIndexer" />
+ </list>
+ </property>
+ <property name="jcrRepository" ref="rpmRepository" />
+ </bean>
+
+ <bean id="rpmProxyService" class="org.argeo.slc.rpmfactory.core.RpmProxyServiceImpl"
+ init-method="init" destroy-method="destroy" depends-on="ROLE_SLC">
+ <property name="jcrRepository" ref="rpmRepository" />
+ <property name="proxyWorkspace" value="${slc.repo.jcr.proxyWorkspace}" />
+ <property name="defaultRepositories" ref="defaultRpmRepositories" />
+ </bean>
+
+ <!-- Draft to centralize multirepository connection process in an Argeo
+ environment -->
+ <!-- <bean id="repoService" class="org.argeo.slc.repo.core.RepoServiceImpl"
+ init-method="init" destroy-method="destroy"> <property name="repositoryFactory"
+ ref="repositoryFactory" /> <property name="keyring" ref="keyring" /> <property
+ name="nodeRepository" ref="nodeRepository" /> </bean> -->
+</beans>
\ No newline at end of file
--- /dev/null
+Import-Package: org.argeo.jcr,\
+org.argeo.slc.jcr,\
+org.argeo.slc.repo,\
+org.h2;resolution:=optional,\
+org.postgresql;resolution:=optional,\
+*
--- /dev/null
+bin.includes = META-INF/,\
+ repo.properties,\
+ repository-h2.xml
--- /dev/null
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.argeo.slc</groupId>
+ <artifactId>argeo-slc</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <artifactId>org.argeo.slc.server.repo</artifactId>
+ <name>SLC Repo</name>
+</project>
\ No newline at end of file
--- /dev/null
+slc.repo.jcr.reposBase=${osgi.instance.area}/repos
+slc.repo.jcr.forceCndImport=true
+slc.repo.jcr.proxyWorkspace=proxy
+
+slc.repo.jcr.configuration.java=osgibundle:repository-h2.xml
+slc.repo.jcr.configuration.dist=osgibundle:repository-h2.xml
+slc.repo.jcr.configuration.rpm=osgibundle:repository-h2.xml
+slc.repo.jcr.configuration.docs=osgibundle:repository-h2.xml
+
+slc.repo.jcr.dbuser=sa
+slc.repo.jcr.dbpassword=
+slc.repo.jcr.maxPoolSize=10
+
+# Postgres
+slc.repo.jcr.dburl.java=jdbc:postgresql://localhost/slc_repo_java
+slc.repo.jcr.dburl.dist=jdbc:postgresql://localhost/slc_repo_dist
+slc.repo.jcr.dburl.rpm=jdbc:postgresql://localhost/slc_repo_rpm
+slc.repo.jcr.dburl.docs=jdbc:postgresql://localhost/slc_repo_docs
--- /dev/null
+<?xml version="1.0"?>
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
+ "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
+<!-- Old default configuration, still used on some repositories. -->
+<Repository>
+ <!-- Shared datasource -->
+ <DataSources>
+ <DataSource name="dataSource">
+ <param name="driver" value="org.h2.Driver" />
+ <param name="url" value="jdbc:h2:${rep.home}/h2/repository" />
+ <param name="user" value="${slc.repo.jcr.dbuser}" />
+ <param name="password" value="${slc.repo.jcr.dbpassword}" />
+ <param name="databaseType" value="h2" />
+ <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
+ </DataSource>
+ </DataSources>
+
+ <!-- File system and datastore -->
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="default" />
+ <param name="schemaObjectPrefix" value="fs_" />
+ </FileSystem>
+ <DataStore class="org.apache.jackrabbit.core.data.FileDataStore" />
+ <!-- <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
+ <param name="dataSourceName" value="dataSource" /> <param name="schemaObjectPrefix"
+ value="ds_" /> </DataStore> -->
+
+ <!-- Workspace templates -->
+ <Workspaces rootPath="${rep.home}/workspaces"
+ defaultWorkspace="main" />
+ <Workspace name="${wsp.name}">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="default" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_fs_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_pm_" />
+ </PersistenceManager>
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${wsp.home}/index" />
+ </SearchIndex>
+ </Workspace>
+
+ <!-- Versioning -->
+ <Versioning rootPath="${rep.home}/version">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="default" />
+ <param name="schemaObjectPrefix" value="fs_ver_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="pm_ver_" />
+ </PersistenceManager>
+ </Versioning>
+
+ <!-- Indexing -->
+ <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>
+
+ <!-- Security -->
+ <Security appName="Jackrabbit">
+ <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
+ workspaceName="security">
+ </SecurityManager>
+ <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
+ </AccessManager>
+ <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
+ </LoginModule>
+ </Security>
+</Repository>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
+ "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
+<Repository>
+ <!-- Shared datasource -->
+ <DataSources>
+ <DataSource name="dataSource">
+ <param name="driver" value="org.h2.Driver" />
+ <param name="url" value="jdbc:h2:${rep.home}/h2/repository" />
+ <param name="user" value="${slc.repo.jcr.dbuser}" />
+ <param name="password" value="${slc.repo.jcr.dbpassword}" />
+ <param name="databaseType" value="h2" />
+ <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
+ </DataSource>
+ </DataSources>
+
+ <!-- Repository wide -->
+ <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
+ <param name="path" value="${rep.home}/datastore" />
+ <param name="minRecordLength" value="10240" />
+ </DataStore>
+ <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+ <param name="path" value="${rep.home}/fs" />
+ </FileSystem>
+
+ <!-- Workspaces -->
+ <Workspaces rootPath="${rep.home}/workspaces"
+ defaultWorkspace="main" />
+ <Workspace name="${wsp.name}">
+ <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+ <param name="path" value="${wsp.home}/fs" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_pm_" />
+ </PersistenceManager>
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
+ </SearchIndex>
+ </Workspace>
+
+ <!-- Versioning -->
+ <Versioning rootPath="${rep.home}/version">
+ <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+ <param name="path" value="${rep.home}/version/fs" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="pm_ver_" />
+ </PersistenceManager>
+ </Versioning>
+
+ <!-- Indexing -->
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/repository" />
+ </SearchIndex>
+
+ <!-- Security -->
+ <Security appName="Jackrabbit">
+ <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
+ workspaceName="security">
+ </SecurityManager>
+ <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
+ </AccessManager>
+ <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
+ </LoginModule>
+ </Security>
+</Repository>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
+ "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
+<Repository>
+ <!-- Shared datasource -->
+ <DataSources>
+ <DataSource name="dataSource">
+ <param name="driver" value="org.postgresql.Driver" />
+ <param name="url" value="${slc.repo.jcr.dburl.dist}" />
+ <param name="user" value="${slc.repo.jcr.dbuser}" />
+ <param name="password" value="${slc.repo.jcr.dbpassword}" />
+ <param name="databaseType" value="postgresql" />
+ <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
+ </DataSource>
+ </DataSources>
+
+ <!-- File system and datastore -->
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="_fs_" />
+ </FileSystem>
+ <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
+ <param name="path" value="${rep.home}/datastore" />
+ </DataStore>
+
+ <!-- Workspace templates -->
+ <Workspaces rootPath="${rep.home}/workspaces"
+ defaultWorkspace="main" />
+ <Workspace name="${wsp.name}">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_" />
+ </PersistenceManager>
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
+ </SearchIndex>
+ </Workspace>
+
+ <!-- Versioning -->
+ <Versioning rootPath="${rep.home}/version">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="_versioning_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="_versioning_" />
+ </PersistenceManager>
+ </Versioning>
+
+ <!-- Indexing -->
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/repository" />
+ </SearchIndex>
+
+ <!-- Security -->
+ <Security appName="Jackrabbit">
+ <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
+ workspaceName="security">
+ </SecurityManager>
+ <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
+ </AccessManager>
+ <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
+ </LoginModule>
+ </Security>
+</Repository>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
+ "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
+<Repository>
+ <!-- Shared datasource -->
+ <DataSources>
+ <DataSource name="dataSource">
+ <param name="driver" value="org.postgresql.Driver" />
+ <param name="url" value="${slc.repo.jcr.dburl.docs}" />
+ <param name="user" value="${slc.repo.jcr.dbuser}" />
+ <param name="password" value="${slc.repo.jcr.dbpassword}" />
+ <param name="databaseType" value="postgresql" />
+ <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
+ </DataSource>
+ </DataSources>
+
+ <!-- File system and datastore -->
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="_fs_" />
+ </FileSystem>
+ <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
+ <param name="path" value="${rep.home}/datastore" />
+ </DataStore>
+
+ <!-- Workspace templates -->
+ <Workspaces rootPath="${rep.home}/workspaces"
+ defaultWorkspace="main" />
+ <Workspace name="${wsp.name}">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_" />
+ </PersistenceManager>
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
+ </SearchIndex>
+ </Workspace>
+
+ <!-- Versioning -->
+ <Versioning rootPath="${rep.home}/version">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="_versioning_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="_versioning_" />
+ </PersistenceManager>
+ </Versioning>
+
+ <!-- Indexing -->
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/repository" />
+ </SearchIndex>
+
+ <!-- Security -->
+ <Security appName="Jackrabbit">
+ <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
+ workspaceName="security">
+ </SecurityManager>
+ <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
+ </AccessManager>
+ <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
+ </LoginModule>
+ </Security>
+</Repository>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
+ "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
+<Repository>
+ <!-- Shared datasource -->
+ <DataSources>
+ <DataSource name="dataSource">
+ <param name="driver" value="org.postgresql.Driver" />
+ <param name="url" value="${slc.repo.jcr.dburl.java}" />
+ <param name="user" value="${slc.repo.jcr.dbuser}" />
+ <param name="password" value="${slc.repo.jcr.dbpassword}" />
+ <param name="databaseType" value="postgresql" />
+ <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
+ </DataSource>
+ </DataSources>
+
+ <!-- File system and datastore -->
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="_fs_" />
+ </FileSystem>
+ <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
+ <param name="path" value="${rep.home}/datastore" />
+ </DataStore>
+
+ <!-- Workspace templates -->
+ <Workspaces rootPath="${rep.home}/workspaces"
+ defaultWorkspace="main" />
+ <Workspace name="${wsp.name}">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_" />
+ </PersistenceManager>
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
+ </SearchIndex>
+ </Workspace>
+
+ <!-- Versioning -->
+ <Versioning rootPath="${rep.home}/version">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="_versioning_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="_versioning_" />
+ </PersistenceManager>
+ </Versioning>
+
+ <!-- Indexing -->
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/repository" />
+ </SearchIndex>
+
+ <!-- Security -->
+ <Security appName="Jackrabbit">
+ <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
+ workspaceName="security">
+ </SecurityManager>
+ <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
+ </AccessManager>
+ <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
+ </LoginModule>
+ </Security>
+</Repository>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN"
+ "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
+<Repository>
+ <!-- Shared datasource -->
+ <DataSources>
+ <DataSource name="dataSource">
+ <param name="driver" value="org.postgresql.Driver" />
+ <param name="url" value="${slc.repo.jcr.dburl.rpm}" />
+ <param name="user" value="${slc.repo.jcr.dbuser}" />
+ <param name="password" value="${slc.repo.jcr.dbpassword}" />
+ <param name="databaseType" value="postgresql" />
+ <param name="maxPoolSize" value="${slc.repo.jcr.maxPoolSize}" />
+ </DataSource>
+ </DataSources>
+
+ <!-- File system and datastore -->
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="_fs_" />
+ </FileSystem>
+ <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
+ <param name="path" value="${rep.home}/datastore" />
+ </DataStore>
+
+ <!-- Workspace templates -->
+ <Workspaces rootPath="${rep.home}/workspaces"
+ defaultWorkspace="main" />
+ <Workspace name="${wsp.name}">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="${wsp.name}_" />
+ </PersistenceManager>
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/workspaces/${wsp.name}" />
+ </SearchIndex>
+ </Workspace>
+
+ <!-- Versioning -->
+ <Versioning rootPath="${rep.home}/version">
+ <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schema" value="postgresql" />
+ <param name="schemaObjectPrefix" value="_versioning_" />
+ </FileSystem>
+ <PersistenceManager
+ class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
+ <param name="dataSourceName" value="dataSource" />
+ <param name="schemaObjectPrefix" value="_versioning_" />
+ </PersistenceManager>
+ </Versioning>
+
+ <!-- Indexing -->
+ <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+ <param name="path" value="${rep.home}/indexes/repository" />
+ </SearchIndex>
+
+ <!-- Security -->
+ <Security appName="Jackrabbit">
+ <SecurityManager class="org.argeo.security.jackrabbit.ArgeoSecurityManager"
+ workspaceName="security">
+ </SecurityManager>
+ <AccessManager class="org.argeo.security.jackrabbit.ArgeoAccessManager">
+ </AccessManager>
+ <LoginModule class="org.argeo.security.jackrabbit.ArgeoLoginModule">
+ </LoginModule>
+ </Security>
+</Repository>
\ No newline at end of file
<parent>
<groupId>org.argeo.commons</groupId>
<artifactId>argeo-commons</artifactId>
- <version>2.1.17-SNAPSHOT</version>
+ <version>2.1.18-SNAPSHOT</version>
</parent>
<groupId>org.argeo.slc</groupId>
<artifactId>argeo-slc</artifactId>
<version.argeo-tp-extras>2.1.5</version.argeo-tp-extras>
</properties>
<modules>
+ <!-- Runtime -->
<module>org.argeo.slc.api</module>
<module>org.argeo.slc.core</module>
<module>org.argeo.slc.unit</module>
<module>org.argeo.slc.support</module>
<module>org.argeo.slc.repo</module>
<module>org.argeo.slc.factory</module>
+
+ <!-- Modules -->
+ <module>org.argeo.slc.agent</module>
+ <module>org.argeo.slc.node.jackrabbit</module>
+ <module>org.argeo.slc.agent.jcr</module>
+ <module>org.argeo.slc.server.repo</module>
<!-- <module>runtime</module> -->
<!-- <module>modules</module> -->