fe6b79184e9e11725431778dbe0ab4e138832d9e
[gpl/argeo-suite.git] / org.argeo.suite.core / META-INF / spring / services.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
5 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
6
7 <bean id="userAdminService" class="org.argeo.connect.UserAdminServiceImpl"
8 scope="singleton" lazy-init="false">
9 <property name="userTransaction" ref="userTransaction" />
10 <property name="userAdmin" ref="userAdmin" />
11 <property name="userAdminServiceReference" ref="userAdmin" />
12 </bean>
13
14 <!-- MAINTENANCE SERVICES -->
15 <bean id="resourcesMaintenanceService"
16 class="org.argeo.connect.resources.core.ResourcesMaintenanceService" />
17
18 <bean id="activitiesMaintenanceService"
19 class="org.argeo.connect.activities.core.ActivitiesMaintenanceService" />
20
21 <bean id="peopleMaintenanceService" class="org.argeo.connect.people.core.PeopleMaintenanceService" />
22
23 <bean id="trackerMaintenanceService"
24 class="org.argeo.connect.tracker.core.TrackerMaintenanceService" />
25
26 <!-- There is no maintenance Service for the Documents App yet -->
27 <!-- Order is important -->
28 <util:list id="knownMaintenanceServices">
29 <ref bean="resourcesMaintenanceService" />
30 <ref bean="activitiesMaintenanceService" />
31 <ref bean="peopleMaintenanceService" />
32 <ref bean="trackerMaintenanceService" />
33 </util:list>
34
35 <!-- Make the DJ-aying between the various known Apps Maintenance -->
36 <bean id="suiteMaintenanceService" class="org.argeo.suite.core.DefaultSuiteMaintenanceService"
37 init-method="init" destroy-method="destroy">
38 <property name="repository" ref="repository" />
39 <property name="workspaceName" value="main" />
40 <property name="maintenanceServices" ref="knownMaintenanceServices" />
41 </bean>
42
43 <!-- APP SERVICES (backends) -->
44 <bean id="resourcesService" class="org.argeo.connect.resources.core.ResourcesServiceImpl" />
45
46 <bean id="activitiesService" class="org.argeo.connect.activities.core.ActivitiesServiceImpl">
47 <property name="userAdminService" ref="userAdminService" />
48 <property name="resourcesService" ref="resourcesService" />
49 </bean>
50
51 <bean id="peopleService" class="org.argeo.connect.people.core.PeopleServiceImpl"
52 init-method="init">
53 <property name="resourcesService" ref="resourcesService" />
54 </bean>
55
56 <bean id="trackerService" class="org.argeo.connect.tracker.core.TrackerServiceImpl">
57 <property name="activitiesService" ref="activitiesService" />
58 </bean>
59
60 <bean id="documentsService" class="org.argeo.connect.documents.DocumentsService" />
61
62 <bean id="suiteAppService" class="org.argeo.suite.core.DefaultSuiteAppService">
63 <property name="resourcesService" ref="resourcesService" />
64 <property name="activitiesService" ref="activitiesService" />
65 <property name="peopleService" ref="peopleService" />
66 <property name="trackerService" ref="trackerService" />
67 <property name="documentsService" ref="documentsService" />
68 </bean>
69
70 <!-- VARIOUS -->
71
72 <!-- Execute initialization with a system authentication -->
73 <bean
74 class="org.argeo.cms.spring.AuthenticatedApplicationContextInitialization" />
75 </beans>