Salome HOME
Fix:
[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"
4         xmlns:aop="http://www.springframework.org/schema/aop"
5         xmlns:context="http://www.springframework.org/schema/context"
6         xsi:schemaLocation="http://www.springframework.org/schema/beans  
7 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
8 http://www.springframework.org/schema/aop  
9 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
10 http://www.springframework.org/schema/context
11 http://www.springframework.org/schema/context/spring-context-3.0.xsd">
12
13
14         <context:property-placeholder
15                 location="classpath:siman.properties,classpath:jdbc.properties"
16                 ignore-unresolvable="true" />
17
18         <!-- configuration i18n -->
19         <bean id="i18nUtils" class="org.splat.i18n.I18nUtils">
20                 <property name="resourceBundleMessageSource"
21                         ref="messageSource" />
22         </bean>
23
24         <bean id="messageSource"
25                 class="org.springframework.context.support.ResourceBundleMessageSource">
26                 <property name="basenames">
27                         <list>
28                                 <value>conf/log-messages</value>
29                                 <value>som</value>
30                                 <value>labels</value>
31                         </list>
32                 </property>
33         </bean>
34         <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
35         <!-- property name="parentMessageSource" ref="baseMessageSource"/ -->
36
37         <bean id="exceptionAction" class="org.splat.simer.ExceptionAction"
38                 scope="prototype" />
39
40         <bean id="applicationSettings"
41                 class="org.splat.simer.ApplicationSettings" scope="session">
42                 <property name="projectSettings" ref="projectSettings" />
43                 <property name="documentTypeService" ref="documentTypeService" />
44         </bean>
45
46         <bean id="redirectOnEndOfSessionInterceptor"
47                 class="org.splat.simer.SimanRedirectOnEndOfSessionInterceptor">
48                 <property name="globalResult" value="home" />
49         </bean>
50
51         <bean id="menuBarSettings" class="org.splat.simer.MenuBarSettings"
52                 scope="session" />
53
54         <bean id="titleBarSettings" class="org.splat.simer.TitleBarSettings"
55                 scope="session" />
56
57         <bean id="toolBarSettings" class="org.splat.simer.ToolBarSettings"
58                 scope="session" />
59
60         <bean id="leftMenuSettings" class="org.splat.simer.LeftMenuSettings"
61                 scope="session" />
62
63         <bean id="slidMenu" scope="session" abstract="true">
64                 <property name="projectElementService"
65                         ref="projectElementService" />
66                 <property name="scenarioService" ref="scenarioService" />
67         </bean>
68
69         <bean id="studyMenu" class="org.splat.simer.StudyMenu"
70                 scope="session" parent="slidMenu" />
71
72         <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
73                 scope="session" parent="slidMenu" />
74
75         <bean id="openObject" abstract="true"
76                 class="org.splat.simer.AbstractOpenObject" scope="session">
77                 <property name="applicationSettings" ref="applicationSettings" />
78                 <property name="projectElementService"
79                         ref="projectElementService" />
80                 <property name="projectSettings" ref="projectSettings" />
81                 <property name="knowledgeElementTypeService"
82                         ref="knowledgeElementTypeService" />
83                 <property name="publicationService" ref="publicationService" />
84         </bean>
85
86         <bean id="openStudy" class="org.splat.simer.OpenStudy"
87                 parent="openObject" scope="session">
88                 <property name="projectElementService"
89                         ref="projectElementService" />
90                 <property name="studyService" ref="studyService" />
91                 <property name="stepService" ref="stepService" />
92                 <property name="repositoryService" ref="repositoryService" />
93                 <property name="menu" ref="studyMenu" />
94                 <property name="documentTypeService" ref="documentTypeService" />
95                 <property name="documentService" ref="documentService" />
96         </bean>
97
98         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
99                 parent="openObject" scope="session" />
100
101         <bean id="invalidateAction"
102                 class="org.splat.simer.InvalidateAction" />
103
104         <bean id="baseAction" class="org.splat.simer.Action"
105                 scope="prototype" abstract="true">
106                 <property name="applicationSettings" ref="applicationSettings" />
107                 <property name="openStudy" ref="openStudy" />
108                 <property name="openKnowledge" ref="openKnowledge" />
109                 <property name="menuBarSettings" ref="menuBarSettings" />
110                 <property name="titleBarSettings" ref="titleBarSettings" />
111                 <property name="toolBarSettings" ref="toolBarSettings" />
112                 <property name="leftMenuSettings" ref="leftMenuSettings" />
113         </bean>
114
115         <!--========= Inherited from baseAction ========= -->
116
117         <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
118                 parent="baseAction" scope="prototype">
119         <property name="simanContext" value="#New_Study_.htm"/>
120                 <property name="simulationContextService"
121                         ref="simulationContextService" />
122                 <property name="scenarioService" ref="scenarioService" />
123         </bean>
124
125         <bean id="copyStudyAction" class="org.splat.simer.CopyStudyAction"
126                 parent="newStudyAction" scope="prototype">
127         <property name="searchService" ref="searchService" />
128         <property name="stepsConfigService" ref="stepsConfigService" />
129         </bean>
130
131         <bean id="newScenarioAction"
132                 class="org.splat.simer.NewScenarioAction" parent="baseAction"
133                 scope="prototype">
134                 <property name="projectElementService"
135                         ref="projectElementService" />
136         <property name="simanContext" value="#Add_Scenario.htm"/>
137                 <property name="scenarioService" ref="scenarioService" />
138                 <property name="menu" ref="newScenarioMenu" />
139         </bean>
140
141         <bean id="checkoutAction" class="org.splat.simer.CheckoutAction"
142                 scope="prototype">
143                 <property name="scenarioService" ref="scenarioService" />
144         </bean>
145
146         <bean id="importDocumentAction"
147                 class="org.splat.simer.ImportDocumentAction" scope="prototype"
148                 parent="baseAction">
149                 <property name="studyService" ref="studyService" />
150                 <property name="stepService" ref="stepService" />
151                 <property name="projectSettings" ref="projectSettings" />
152                 <property name="publicationService" ref="publicationService" />
153                 <property name="repositoryService" ref="repositoryService" />
154                 <property name="documentService" ref="documentService" />
155                 <property name="documentTypeService" ref="documentTypeService" />
156         </bean>
157
158         <bean id="displayStudyStepAction"
159                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
160                 scope="prototype">
161         <property name="simanContext" value="#Edit_Study_.htm"/>
162                 <property name="studyService" ref="studyService" />
163         </bean>
164
165         <bean id="removeStudyAction"
166                 class="org.splat.simer.RemoveStudyAction" scope="prototype"
167                 parent="baseAction">
168                 <property name="studyService" ref="studyService" />
169         </bean>
170
171         <!--========= Inherited from displayStudyStepAction ========= -->
172
173         <bean id="studyPropertiesAction"
174                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
175                 parent="displayStudyStepAction">
176         <property name="simanContext" value="#Configure_Study.htm"/>
177                 <property name="documentTypeService" ref="documentTypeService" />
178                 <property name="userService" ref="userService" />
179         </bean>
180
181         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
182                 scope="prototype" parent="displayStudyStepAction" />
183
184         <bean id="editScenarioPropertiesAction"
185                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
186                 parent="displayStudyStepAction">
187         <property name="simanContext" value="#Configure_Study.htm"/>
188                 <property name="projectElementService"
189                         ref="projectElementService" />
190                 <property name="scenarioService" ref="scenarioService" />
191         </bean>
192
193         <bean id="editSimulationContextAction"
194                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
195                 parent="displayStudyStepAction">
196                 <property name="stepService" ref="stepService" />
197                 <property name="simulationContextService"
198                         ref="simulationContextService" />
199                 <property name="simulationContextTypeService"
200                         ref="simulationContextTypeService" />
201         </bean>
202
203         <bean id="editDocumentAction"
204                 class="org.splat.simer.EditDocumentAction" scope="prototype"
205                 parent="displayStudyStepAction">
206                 <property name="stepService" ref="stepService" />
207                 <property name="publicationService" ref="publicationService" />
208                 <property name="repositoryService" ref="repositoryService" />
209         </bean>
210
211         <bean id="editKnowledgeElementAction"
212                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
213                 parent="displayStudyStepAction">
214                 <property name="knowledgeElementService"
215                         ref="knowledgeElementService" />
216                 <property name="knowledgeElementTypeService"
217                         ref="knowledgeElementTypeService" />
218                 <property name="scenarioService" ref="scenarioService" />
219         </bean>
220
221         <bean id="editStepCommentAction"
222                 class="org.splat.simer.EditStepCommentAction" scope="prototype"
223                 parent="displayStudyStepAction">
224                 <property name="stepService" ref="stepService" />
225         </bean>
226
227         <bean id="editStudyDescriptionAction"
228                 class="org.splat.simer.EditStudyDescriptionAction" scope="prototype"
229                 parent="displayStudyStepAction" />
230
231         <bean id="CompareStudyAction"
232                 class="org.splat.simer.CompareStudyAction" scope="prototype"
233                 parent="displayStudyStepAction">
234                 <property name="publicationService" ref="publicationService" />
235                 <property name="simanContext" value="#Compare_Studies.htm"/>
236         <property name="studyComparisonService" ref="studyComparisonService" />
237         </bean>
238
239         <!-- End of Inherited from displayStudyStepAction -->
240
241         <bean id="startAction" class="org.splat.simer.StartAction"
242                 scope="prototype" parent="baseAction" />
243
244         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
245                 scope="prototype" parent="baseAction">
246         <property name="simanContext" value="#User_s_Roles_.htm"/>
247         </bean>
248
249         <bean id="menuAction" class="org.splat.simer.MenuAction"
250                 scope="prototype" parent="baseAction" />
251
252         <bean id="notYetImplementedAction"
253                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
254                 parent="baseAction" />
255
256         <bean id="searchStudyAction"
257                 class="org.splat.simer.SearchStudyAction" scope="prototype"
258                 parent="baseAction">
259         <property name="simanContext" value="#Open_Study_.htm"/>
260                 <property name="stepsConfigService" ref="stepsConfigService" />
261                 <property name="searchService" ref="searchService" />
262                 <property name="simulationContextService"
263                         ref="simulationContextService" />
264                 <property name="userService" ref="userService" />
265         </bean>
266
267         <bean id="searchKnowledgeAction"
268                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
269                 parent="baseAction">
270                 <property name="searchService" ref="searchService" />
271                 <property name="simulationContextService"
272                         ref="simulationContextService" />
273                 <property name="knowledgeElementTypeService"
274                         ref="knowledgeElementTypeService" />
275                 <property name="userService" ref="userService" />
276         </bean>
277
278         <bean id="searchDocumentAction"
279                 class="org.splat.simer.SearchDocumentAction" scope="prototype" />
280
281         <bean id="displayKnowledgeAction"
282                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
283                 parent="baseAction">
284                 <property name="knowledgeElementService"
285                         ref="knowledgeElementService" />
286         </bean>
287
288         <bean id="uploadAction" class="org.splat.simer.UploadAction"
289                 scope="prototype" parent="baseAction">
290                 <property name="repositoryService" ref="repositoryService" />
291         </bean>
292
293         <bean id="uploadStudyAction"
294                 class="org.splat.simer.UploadStudyAction" scope="prototype"
295                 parent="baseAction" />
296
297         <bean id="versionDocumentAction"
298                 class="org.splat.simer.VersionDocumentAction" scope="prototype"
299                 parent="baseAction">
300                 <property name="projectSettings" ref="projectSettings" />
301                 <property name="publicationService" ref="publicationService" />
302                 <property name="stepService" ref="stepService" />
303                 <property name="studyService" ref="studyService" />
304                 <property name="repositoryService" ref="repositoryService" />
305         </bean>
306
307         <bean id="databaseIndexingAction"
308                 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
309                 parent="baseAction">
310         <property name="simanContext" value="#Database_Management.htm"/>
311                 <property name="searchService" ref="searchService" />
312         </bean>
313
314         <bean id="importUserAction"
315                 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
316                 parent="baseAction">
317         <property name="simanContext" value="#Database_Management.htm"/>
318                 <property name="repositoryService" ref="repositoryService" />
319                 <property name="userService" ref="userService" />
320         </bean>
321
322         <bean id="simulationContextAction"
323                 class="org.splat.simer.admin.SimulationContextAction"
324                 scope="prototype" parent="baseAction">
325                 <property name="knowledgeElementService"
326                         ref="knowledgeElementService" />
327                 <property name="searchService" ref="searchService" />
328                 <property name="projectSettings" ref="projectSettings" />
329                 <property name="simulationContextService"
330                         ref="simulationContextService" />
331         </bean>
332
333         <bean id="knowledgeElementAction"
334                 class="org.splat.simer.admin.KnowledgeElementAction"
335                 scope="prototype" />
336
337 </beans>