Introduce Security DAO Jackrabbit
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 20 Mar 2011 11:51:27 +0000 (11:51 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 20 Mar 2011 11:51:27 +0000 (11:51 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@4324 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

security/modules/org.argeo.security.dao.jackrabbit/.project [new file with mode: 0644]
security/modules/org.argeo.security.dao.jackrabbit/META-INF/MANIFEST.MF [new file with mode: 0644]
security/modules/org.argeo.security.dao.jackrabbit/META-INF/spring/jcrsecuritydao-osgi.xml [new file with mode: 0644]
security/modules/org.argeo.security.dao.jackrabbit/META-INF/spring/jcrsecuritydao.xml [new file with mode: 0644]
security/modules/org.argeo.security.dao.jackrabbit/build.properties [new file with mode: 0644]

diff --git a/security/modules/org.argeo.security.dao.jackrabbit/.project b/security/modules/org.argeo.security.dao.jackrabbit/.project
new file mode 100644 (file)
index 0000000..b537a75
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.argeo.security.dao.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>
diff --git a/security/modules/org.argeo.security.dao.jackrabbit/META-INF/MANIFEST.MF b/security/modules/org.argeo.security.dao.jackrabbit/META-INF/MANIFEST.MF
new file mode 100644 (file)
index 0000000..437eb0e
--- /dev/null
@@ -0,0 +1,4 @@
+Bundle-SymbolicName: org.argeo.security.dao.ldap
+Bundle-Version: 0.2.3.SNAPSHOT
+Import-Package: javax.jcr;version="[2.0.0,3.0.0)",
+Bundle-Name: Security DAO Jackrabbit
diff --git a/security/modules/org.argeo.security.dao.jackrabbit/META-INF/spring/jcrsecuritydao-osgi.xml b/security/modules/org.argeo.security.dao.jackrabbit/META-INF/spring/jcrsecuritydao-osgi.xml
new file mode 100644 (file)
index 0000000..6e51101
--- /dev/null
@@ -0,0 +1,24 @@
+<?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
+       <!-- REFERENCE -->\r
+       <reference id="repositoryFactoryRef" interface="javax.jcr.RepositoryFactory"\r
+               cardinality="0..1">\r
+               <listener ref="jcrAuthenticationProvider" bind-method="register"\r
+                       unbind-method="unregister" />\r
+       </reference>\r
+       <reference id="systemExecutionService" interface="org.argeo.security.SystemExecutionService" />\r
+\r
+       <!-- SERVICES -->\r
+       <service ref="jcrAuthenticationProvider"\r
+               interface="org.springframework.security.providers.AuthenticationProvider" />\r
+\r
+</beans:beans>
\ No newline at end of file
diff --git a/security/modules/org.argeo.security.dao.jackrabbit/META-INF/spring/jcrsecuritydao.xml b/security/modules/org.argeo.security.dao.jackrabbit/META-INF/spring/jcrsecuritydao.xml
new file mode 100644 (file)
index 0000000..ca84bb9
--- /dev/null
@@ -0,0 +1,13 @@
+<?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="jcrAuthenticationProvider"
+               class="org.argeo.security.jackrabbit.providers.JackrabbitAuthenticationProvider" />
+
+       <bean id="repositoryFactory" class="org.argeo.jackrabbit.JackrabbitRepositoryFactory">
+       </bean>
+
+</beans>
\ No newline at end of file
diff --git a/security/modules/org.argeo.security.dao.jackrabbit/build.properties b/security/modules/org.argeo.security.dao.jackrabbit/build.properties
new file mode 100644 (file)
index 0000000..5f22cdd
--- /dev/null
@@ -0,0 +1 @@
+bin.includes = META-INF/