2c0e5151911f57f5b9eb5d743eee83f73e476b55
[gpl/argeo-suite.git] / org.argeo.suite.apps / META-INF / spring / maintenance-services.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <beans xmlns="http://www.springframework.org/schema/beans"\r
3         xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
4         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
5        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">\r
6 \r
7 \r
8         <bean id="resourcesMaintenanceService"\r
9                 class="org.argeo.connect.resources.core.ResourcesMaintenanceService" />\r
10 \r
11         <bean id="activitiesMaintenanceService" class="org.argeo.activities.core.ActivitiesMaintenanceService" />\r
12 \r
13         <bean id="peopleMaintenanceService" class="org.argeo.people.core.PeopleMaintenanceService" />\r
14 \r
15         <bean id="trackerMaintenanceService" class="org.argeo.tracker.core.TrackerMaintenanceService" />\r
16 \r
17         <!-- There is no maintenance Service for the Documents App yet -->\r
18         <!-- Order is important -->\r
19         <util:list id="knownMaintenanceServices">\r
20                 <ref bean="resourcesMaintenanceService" />\r
21                 <ref bean="activitiesMaintenanceService" />\r
22                 <ref bean="peopleMaintenanceService" />\r
23                 <ref bean="trackerMaintenanceService" />\r
24         </util:list>\r
25 \r
26         <!-- Make the DJ-aying between the various known Apps Maintenance -->\r
27         <bean id="suiteMaintenanceService" class="org.argeo.suite.core.DefaultSuiteMaintenanceService"\r
28                 init-method="init" destroy-method="destroy">\r
29                 <property name="repository" ref="repository" />\r
30                 <property name="workspaceName" value="main" />\r
31                 <property name="maintenanceServices" ref="knownMaintenanceServices" />\r
32         </bean>\r
33 \r
34         <!-- Execute initialisation with a system authentication -->\r
35         <bean\r
36                 class="org.argeo.cms.spring.AuthenticatedApplicationContextInitialization" />\r
37 </beans>\r