]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/META-INF/spring/backend.xml
Move CMS to Commons
[lgpl/argeo-commons.git] / org.argeo.cms / META-INF / spring / backend.xml
diff --git a/org.argeo.cms/META-INF/spring/backend.xml b/org.argeo.cms/META-INF/spring/backend.xml
new file mode 100644 (file)
index 0000000..c32676f
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:p="http://www.springframework.org/schema/p"
+       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">
+
+       <!-- BACKEND -->
+
+       <bean id="cmsRepository" class="org.argeo.jackrabbit.JackrabbitWrapper"
+               init-method="init" destroy-method="destroy">
+               <property name="cndFiles">
+                       <list>
+                               <value>/org/argeo/cms/cms.cnd</value>
+                       </list>
+               </property>
+               <property name="repository" ref="repository" />
+               <property name="bundleContext" ref="bundleContext" />
+       </bean>
+
+       <!-- Execute initialization with a system authentication -->
+       <bean
+               class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
+               <property name="authenticationManager" ref="authenticationManager" />
+               <property name="beanNames">
+                       <list>
+                               <value>cmsRepository</value>
+                       </list>
+               </property>
+       </bean>
+</beans>
\ No newline at end of file