Split assembly for service and cms config
[gpl/argeo-suite.git] / org.argeo.suite.apps / META-INF / spring / maintenance-services.xml
diff --git a/org.argeo.suite.apps/META-INF/spring/maintenance-services.xml b/org.argeo.suite.apps/META-INF/spring/maintenance-services.xml
new file mode 100644 (file)
index 0000000..2c0e515
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:util="http://www.springframework.org/schema/util" 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
+       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">\r
+\r
+\r
+       <bean id="resourcesMaintenanceService"\r
+               class="org.argeo.connect.resources.core.ResourcesMaintenanceService" />\r
+\r
+       <bean id="activitiesMaintenanceService" class="org.argeo.activities.core.ActivitiesMaintenanceService" />\r
+\r
+       <bean id="peopleMaintenanceService" class="org.argeo.people.core.PeopleMaintenanceService" />\r
+\r
+       <bean id="trackerMaintenanceService" class="org.argeo.tracker.core.TrackerMaintenanceService" />\r
+\r
+       <!-- There is no maintenance Service for the Documents App yet -->\r
+       <!-- Order is important -->\r
+       <util:list id="knownMaintenanceServices">\r
+               <ref bean="resourcesMaintenanceService" />\r
+               <ref bean="activitiesMaintenanceService" />\r
+               <ref bean="peopleMaintenanceService" />\r
+               <ref bean="trackerMaintenanceService" />\r
+       </util:list>\r
+\r
+       <!-- Make the DJ-aying between the various known Apps Maintenance -->\r
+       <bean id="suiteMaintenanceService" class="org.argeo.suite.core.DefaultSuiteMaintenanceService"\r
+               init-method="init" destroy-method="destroy">\r
+               <property name="repository" ref="repository" />\r
+               <property name="workspaceName" value="main" />\r
+               <property name="maintenanceServices" ref="knownMaintenanceServices" />\r
+       </bean>\r
+\r
+       <!-- Execute initialisation with a system authentication -->\r
+       <bean\r
+               class="org.argeo.cms.spring.AuthenticatedApplicationContextInitialization" />\r
+</beans>\r