Salome HOME
Refactoring continues: UserService is created instead of UserDirectory. Database...
[tools/siman.git] / Workspace / Siman / src / spring / applicationContext.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
4         xmlns:context="http://www.springframework.org/schema/context"
5         xsi:schemaLocation="http://www.springframework.org/schema/beans  
6 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
7 http://www.springframework.org/schema/aop  
8 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
9 http://www.springframework.org/schema/context
10 http://www.springframework.org/schema/context/spring-context-3.0.xsd">
11
12
13         <context:property-placeholder
14                 location="classpath:siman.properties,classpath:jdbc.properties"
15                 ignore-unresolvable="true" />
16
17         <!-- configuration i18n -->
18         <bean id="i18nUtils" class="org.splat.i18n.I18nUtils">
19                 <property name="resourceBundleMessageSource" ref="messageSource" />
20         </bean>
21
22         <bean id="messageSource"
23                 class="org.springframework.context.support.ResourceBundleMessageSource">
24                 <property name="basenames">
25                         <list>
26                                 <value>application</value>
27                                 <value>log-messages</value>
28                         </list>
29                 </property>
30         </bean>
31         <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
32         <!-- property name="parentMessageSource" ref="baseMessageSource"/ -->
33
34         <bean id="applicationSettings" class="org.splat.simer.ApplicationSettings"
35                 factory-method="getMe">
36                 <property name="projectSettings" ref="projectSettings" />
37                 <property name="documentTypeService" ref="documentTypeService" />
38         </bean>
39
40         <bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
41                 scope="prototype" />
42
43         <bean id="slidMenu" scope="session" abstract="true">
44                 <property name="projectElementService" ref="projectElementService" />
45                 <property name="scenarioService" ref="scenarioService" />
46         </bean>
47
48         <bean id="studyMenu" class="org.splat.simer.StudyMenu" scope="session"
49                 parent="slidMenu" />
50
51         <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
52                 scope="session" parent="slidMenu" />
53
54         <bean id="openObject" abstract="true" class="org.splat.simer.OpenObject"
55                 scope="session">
56                 <property name="projectElementService" ref="projectElementService" />
57                 <property name="projectSettings" ref="projectSettings" />
58                 <property name="knowledgeElementTypeService" ref="knowledgeElementTypeService" />
59         </bean>
60
61         <bean id="openStudy" class="org.splat.simer.OpenStudy" parent="openObject"
62                 scope="session">
63                 <property name="projectElementService" ref="projectElementService" />
64                 <property name="publicationService" ref="publicationService" />
65                 <property name="studyService" ref="studyService" />
66                 <property name="stepService" ref="stepService" />
67                 <property name="repositoryService" ref="repositoryService" />
68                 <property name="menu" ref="studyMenu" />
69                 <property name="documentTypeService" ref="documentTypeService" />
70         <property name="documentService" ref="documentService" />
71         </bean>
72
73         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
74                 parent="openObject" scope="session">
75         </bean>
76
77         <bean id="baseAction" class="org.splat.simer.Action" scope="prototype"
78                 abstract="true">
79                 <property name="openStudy" ref="openStudy" />
80                 <property name="openKnowledge" ref="openKnowledge" />
81         </bean>
82
83         <!--========= Inherited from baseAction ========= -->
84
85         <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
86                 parent="baseAction" scope="prototype">
87                 <property name="simulationContextService" ref="simulationContextService" />
88                 <property name="scenarioService" ref="scenarioService" />
89                 <property name="studyService" ref="studyService" />
90         </bean>
91
92         <bean id="newScenarioAction" class="org.splat.simer.NewScenarioAction"
93                 parent="baseAction" scope="prototype">
94                 <property name="projectElementService" ref="projectElementService" />
95                 <property name="scenarioService" ref="scenarioService" />
96                 <property name="menu" ref="newScenarioMenu" />
97         </bean>
98
99         <bean id="importDocumentAction" class="org.splat.simer.ImportDocumentAction"
100                 scope="prototype" parent="baseAction">
101                 <property name="stepService" ref="stepService" />
102                 <property name="projectSettings" ref="projectSettings" />
103                 <property name="publicationService" ref="publicationService" />
104                 <property name="repositoryService" ref="repositoryService" />
105                 <property name="documentTypeService" ref="documentTypeService" />
106         </bean>
107
108         <bean id="displayStudyStepAction" class="org.splat.simer.DisplayStudyStepAction"
109                 parent="baseAction" scope="prototype">
110                 <property name="studyService" ref="studyService" />
111         </bean>
112
113         <!--========= Inherited from displayStudyStepAction ========= -->
114
115         <bean id="studyPropertiesAction" class="org.splat.simer.StudyPropertiesAction"
116                 scope="prototype" parent="displayStudyStepAction">
117                 <property name="documentTypeService" ref="documentTypeService" />
118         <property name="userService" ref="userService" />
119         </bean>
120
121         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
122                 scope="prototype" parent="displayStudyStepAction">
123         </bean>
124
125         <bean id="editScenarioPropertiesAction" class="org.splat.simer.EditScenarioPropertiesAction"
126                 scope="prototype" parent="displayStudyStepAction">
127                 <property name="projectElementService" ref="projectElementService" />
128                 <property name="scenarioService" ref="scenarioService" />
129         </bean>
130
131         <bean id="editSimulationContextAction" class="org.splat.simer.EditSimulationContextAction"
132                 scope="prototype" parent="displayStudyStepAction">
133                 <property name="stepService" ref="stepService" />
134                 <property name="simulationContextService" ref="simulationContextService" />
135         </bean>
136
137         <bean id="editDocumentAction" class="org.splat.simer.EditDocumentAction"
138                 scope="prototype" parent="displayStudyStepAction">
139                 <property name="stepService" ref="stepService" />
140                 <property name="publicationService" ref="publicationService" />
141                 <property name="repositoryService" ref="repositoryService" />
142         </bean>
143
144         <bean id="editKnowledgeElementAction" class="org.splat.simer.EditKnowledgeElementAction"
145                 scope="prototype" parent="displayStudyStepAction">
146                 <property name="knowledgeElementService" ref="knowledgeElementService" />
147                 <property name="knowledgeElementTypeService" ref="knowledgeElementTypeService" />
148                 <property name="scenarioService" ref="scenarioService" />
149         </bean>
150
151         <!-- End of Inherited from displayStudyStepAction -->
152
153         <bean id="startAction" class="org.splat.simer.StartAction" scope="prototype">
154                 <property name="applicationSettings" ref="applicationSettings" />
155                 <property name="projectSettings" ref="projectSettings" />
156         </bean>
157         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
158                 scope="prototype">
159         </bean>
160
161         <bean id="menuAction" class="org.splat.simer.MenuAction" scope="prototype">
162         </bean>
163
164         <bean id="notYetImplementedAction" class="org.splat.simer.NotYetImplementedAction"
165                 scope="prototype">
166         </bean>
167
168         <bean id="searchStudyAction" class="org.splat.simer.SearchStudyAction"
169                 scope="prototype">
170                 <property name="projectSettings" ref="projectSettings" />
171                 <property name="searchService" ref="searchService" />
172                 <property name="simulationContextService" ref="simulationContextService" />
173         <property name="userService" ref="userService" />
174         </bean>
175
176         <bean id="searchKnowledgeAction" class="org.splat.simer.SearchKnowledgeAction"
177                 scope="prototype">
178                 <property name="searchService" ref="searchService" />
179                 <property name="simulationContextService" ref="simulationContextService" />
180                 <property name="knowledgeElementTypeService" ref="knowledgeElementTypeService" />
181         <property name="userService" ref="userService" />
182         </bean>
183
184         <bean id="searchDocumentAction" class="org.splat.simer.SearchDocumentAction"
185                 scope="prototype">
186         </bean>
187
188         <bean id="displayKnowledgeAction" class="org.splat.simer.DisplayKnowledgeAction"
189                 scope="prototype">
190                 <property name="knowledgeElementService" ref="knowledgeElementService" />
191         </bean>
192
193         <bean id="uploadAction" class="org.splat.simer.UploadAction"
194                 scope="prototype">
195                 <property name="repositoryService" ref="repositoryService" />
196         </bean>
197
198         <bean id="versionDocumentAction" class="org.splat.simer.VersionDocumentAction"
199                 scope="prototype">
200                 <property name="projectSettings" ref="projectSettings" />
201                 <property name="publicationService" ref="publicationService" />
202                 <property name="stepService" ref="stepService" />
203                 <property name="repositoryService" ref="repositoryService" />
204         </bean>
205
206         <bean id="databaseIndexingAction" class="org.splat.simer.admin.DatabaseIndexingAction"
207                 scope="prototype">
208                 <property name="studyService" ref="studyService" />
209                 <property name="importedStudy" ref="importedStudy" />
210                 <property name="searchService" ref="searchService" />
211         </bean>
212
213         <bean id="importUserAction" class="org.splat.simer.admin.ImportUserAction"
214                 scope="prototype">
215                 <property name="repositoryService" ref="repositoryService" />
216         <property name="userService" ref="userService" />
217         </bean>
218
219         <bean id="simulationContextAction" class="org.splat.simer.admin.SimulationContextAction"
220                 scope="prototype">
221                 <property name="knowledgeElementService" ref="knowledgeElementService" />
222                 <property name="searchService" ref="searchService" />
223                 <property name="projectSettings" ref="projectSettings" />
224                 <property name="simulationContextService" ref="simulationContextService" />
225         </bean>
226
227         <bean id="knowledgeElementAction" class="org.splat.simer.admin.KnowledgeElementAction"
228                 scope="prototype">
229         </bean>
230
231         <bean id="saveDocumentAction" class="org.splat.module.SaveDocumentAction"
232                 scope="prototype">
233                 <property name="documentTypeService" ref="documentTypeService" />
234                 <property name="publicationService" ref="publicationService" />
235                 <property name="repositoryService" ref="repositoryService" />
236                 <property name="scenarioService" ref="scenarioService" />
237                 <property name="stepService" ref="stepService" />
238                 <property name="simulationContextService" ref="simulationContextService" />
239         </bean>
240
241 </beans>