Introduce security services
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 22 Feb 2010 12:57:43 +0000 (12:57 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 22 Feb 2010 12:57:43 +0000 (12:57 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@3383 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

security/modules/org.argeo.security.services/.project [new file with mode: 0644]
security/modules/org.argeo.security.services/META-INF/MANIFEST.MF [new file with mode: 0644]
security/modules/org.argeo.security.services/META-INF/spring/natures.xml [new file with mode: 0644]
security/modules/org.argeo.security.services/META-INF/spring/osgi.xml [new file with mode: 0644]
security/modules/org.argeo.security.services/META-INF/spring/services.xml [new file with mode: 0644]

diff --git a/security/modules/org.argeo.security.services/.project b/security/modules/org.argeo.security.services/.project
new file mode 100644 (file)
index 0000000..e2c51e6
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.argeo.security.services</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.services/META-INF/MANIFEST.MF b/security/modules/org.argeo.security.services/META-INF/MANIFEST.MF
new file mode 100644 (file)
index 0000000..0162170
--- /dev/null
@@ -0,0 +1,8 @@
+Bundle-SymbolicName: org.argeo.security.services
+Bundle-Version: 0.1.2.SNAPSHOT
+Import-Package: org.argeo.security,
+ org.argeo.security.core,
+ org.argeo.security.ldap,
+ org.argeo.security.ldap.nature,
+ org.argeo.server.json
+Bundle-Name: Security Services
diff --git a/security/modules/org.argeo.security.services/META-INF/spring/natures.xml b/security/modules/org.argeo.security.services/META-INF/spring/natures.xml
new file mode 100644 (file)
index 0000000..b2ac117
--- /dev/null
@@ -0,0 +1,9 @@
+<?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="jsonObjectFactory" class="org.argeo.server.json.JsonObjectFactoryImpl">
+       </bean>
+</beans>
\ No newline at end of file
diff --git a/security/modules/org.argeo.security.services/META-INF/spring/osgi.xml b/security/modules/org.argeo.security.services/META-INF/spring/osgi.xml
new file mode 100644 (file)
index 0000000..204ae5c
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/osgi  \r
+       http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
+       http://www.springframework.org/schema/beans   \r
+       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+\r
+       <service ref="jsonObjectFactory" interface="org.argeo.server.json.JsonObjectFactory" />\r
+       <service ref="securityService" interface="org.argeo.security.ArgeoSecurityService" />\r
+\r
+       <reference id="securityDao" interface="org.argeo.security.ArgeoSecurityDao" />\r
+\r
+       <service interface="org.argeo.security.ldap.UserNatureMapper">\r
+               <beans:bean class="org.argeo.security.ldap.nature.SimpleUserNatureMapper" />\r
+       </service>\r
+\r
+       <service interface="org.argeo.security.ldap.UserNatureMapper">\r
+               <beans:bean class="org.argeo.security.ldap.nature.CoworkerUserNatureMapper" />\r
+       </service>\r
+\r
+</beans:beans>
\ No newline at end of file
diff --git a/security/modules/org.argeo.security.services/META-INF/spring/services.xml b/security/modules/org.argeo.security.services/META-INF/spring/services.xml
new file mode 100644 (file)
index 0000000..dbf6489
--- /dev/null
@@ -0,0 +1,10 @@
+<?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="securityService" class="org.argeo.security.core.DefaultSecurityService">
+               <property name="securityDao" ref="securityDao" />
+       </bean>
+</beans>
\ No newline at end of file