]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/src/spring/applicationContext.xml
Salome HOME
Fix for scenario label when creating a new study from Python.
[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="simulationContextService"
120                         ref="simulationContextService" />
121                 <property name="scenarioService" ref="scenarioService" />
122         </bean>
123
124         <bean id="newScenarioAction"
125                 class="org.splat.simer.NewScenarioAction" parent="baseAction"
126                 scope="prototype">
127                 <property name="projectElementService"
128                         ref="projectElementService" />
129                 <property name="scenarioService" ref="scenarioService" />
130                 <property name="menu" ref="newScenarioMenu" />
131         </bean>
132
133         <bean id="checkoutAction" class="org.splat.simer.CheckoutAction"
134                 scope="prototype">
135                 <property name="scenarioService" ref="scenarioService" />
136         </bean>
137
138         <bean id="importDocumentAction"
139                 class="org.splat.simer.ImportDocumentAction" scope="prototype"
140                 parent="baseAction">
141                 <property name="studyService" ref="studyService" />
142                 <property name="stepService" ref="stepService" />
143                 <property name="projectSettings" ref="projectSettings" />
144                 <property name="publicationService" ref="publicationService" />
145                 <property name="repositoryService" ref="repositoryService" />
146                 <property name="documentService" ref="documentService" />
147                 <property name="documentTypeService" ref="documentTypeService" />
148         </bean>
149
150         <bean id="displayStudyStepAction"
151                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
152                 scope="prototype">
153                 <property name="studyService" ref="studyService" />
154         </bean>
155
156         <bean id="removeStudyAction"
157                 class="org.splat.simer.RemoveStudyAction" scope="prototype"
158                 parent="baseAction">
159                 <property name="studyService" ref="studyService" />
160         </bean>
161
162         <!--========= Inherited from displayStudyStepAction ========= -->
163
164         <bean id="studyPropertiesAction"
165                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
166                 parent="displayStudyStepAction">
167                 <property name="documentTypeService" ref="documentTypeService" />
168                 <property name="userService" ref="userService" />
169         </bean>
170
171         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
172                 scope="prototype" parent="displayStudyStepAction" />
173
174         <bean id="editScenarioPropertiesAction"
175                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
176                 parent="displayStudyStepAction">
177                 <property name="projectElementService"
178                         ref="projectElementService" />
179                 <property name="scenarioService" ref="scenarioService" />
180         </bean>
181
182         <bean id="editSimulationContextAction"
183                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
184                 parent="displayStudyStepAction">
185                 <property name="stepService" ref="stepService" />
186                 <property name="simulationContextService"
187                         ref="simulationContextService" />
188                 <property name="simulationContextTypeService"
189                         ref="simulationContextTypeService" />
190         </bean>
191
192         <bean id="editDocumentAction"
193                 class="org.splat.simer.EditDocumentAction" scope="prototype"
194                 parent="displayStudyStepAction">
195                 <property name="stepService" ref="stepService" />
196                 <property name="publicationService" ref="publicationService" />
197                 <property name="repositoryService" ref="repositoryService" />
198         </bean>
199
200         <bean id="editKnowledgeElementAction"
201                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
202                 parent="displayStudyStepAction">
203                 <property name="knowledgeElementService"
204                         ref="knowledgeElementService" />
205                 <property name="knowledgeElementTypeService"
206                         ref="knowledgeElementTypeService" />
207                 <property name="scenarioService" ref="scenarioService" />
208         </bean>
209
210         <bean id="editStepCommentAction"
211                 class="org.splat.simer.EditStepCommentAction" scope="prototype"
212                 parent="displayStudyStepAction">
213                 <property name="stepService" ref="stepService" />
214         </bean>
215
216         <bean id="editStudyDescriptionAction"
217                 class="org.splat.simer.EditStudyDescriptionAction" scope="prototype"
218                 parent="displayStudyStepAction" />
219
220
221         <!-- bean id="CompareStudyAction"
222                 class="org.splat.simer.CompareStudyAction" scope="prototype"
223                 parent="displayStudyStepAction">
224                 <property name="studyService" ref="studyService" />
225                 </bean-->
226
227         <!-- End of Inherited from displayStudyStepAction -->
228
229         <bean id="startAction" class="org.splat.simer.StartAction"
230                 scope="prototype" parent="baseAction" />
231
232         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
233                 scope="prototype" parent="baseAction" />
234
235         <bean id="menuAction" class="org.splat.simer.MenuAction"
236                 scope="prototype" parent="baseAction" />
237
238         <bean id="notYetImplementedAction"
239                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
240                 parent="baseAction" />
241
242         <bean id="searchStudyAction"
243                 class="org.splat.simer.SearchStudyAction" scope="prototype"
244                 parent="baseAction">
245                 <property name="stepsConfigService" ref="stepsConfigService" />
246                 <property name="searchService" ref="searchService" />
247                 <property name="simulationContextService"
248                         ref="simulationContextService" />
249                 <property name="userService" ref="userService" />
250         </bean>
251
252         <bean id="searchKnowledgeAction"
253                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
254                 parent="baseAction">
255                 <property name="searchService" ref="searchService" />
256                 <property name="simulationContextService"
257                         ref="simulationContextService" />
258                 <property name="knowledgeElementTypeService"
259                         ref="knowledgeElementTypeService" />
260                 <property name="userService" ref="userService" />
261         </bean>
262
263         <bean id="searchDocumentAction"
264                 class="org.splat.simer.SearchDocumentAction" scope="prototype" />
265
266         <bean id="displayKnowledgeAction"
267                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
268                 parent="baseAction">
269                 <property name="knowledgeElementService"
270                         ref="knowledgeElementService" />
271         </bean>
272
273         <bean id="uploadAction" class="org.splat.simer.UploadAction"
274                 scope="prototype" parent="baseAction">
275                 <property name="repositoryService" ref="repositoryService" />
276         </bean>
277
278         <bean id="uploadStudyAction"
279                 class="org.splat.simer.UploadStudyAction" scope="prototype"
280                 parent="baseAction" />
281
282         <bean id="versionDocumentAction"
283                 class="org.splat.simer.VersionDocumentAction" scope="prototype"
284                 parent="baseAction">
285                 <property name="projectSettings" ref="projectSettings" />
286                 <property name="publicationService" ref="publicationService" />
287                 <property name="stepService" ref="stepService" />
288                 <property name="studyService" ref="studyService" />
289                 <property name="repositoryService" ref="repositoryService" />
290         </bean>
291
292         <bean id="databaseIndexingAction"
293                 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
294                 parent="baseAction">
295                 <property name="searchService" ref="searchService" />
296         </bean>
297
298         <bean id="importUserAction"
299                 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
300                 parent="baseAction">
301                 <property name="repositoryService" ref="repositoryService" />
302                 <property name="userService" ref="userService" />
303         </bean>
304
305         <bean id="simulationContextAction"
306                 class="org.splat.simer.admin.SimulationContextAction"
307                 scope="prototype" parent="baseAction">
308                 <property name="knowledgeElementService"
309                         ref="knowledgeElementService" />
310                 <property name="searchService" ref="searchService" />
311                 <property name="projectSettings" ref="projectSettings" />
312                 <property name="simulationContextService"
313                         ref="simulationContextService" />
314         </bean>
315
316         <bean id="knowledgeElementAction"
317                 class="org.splat.simer.admin.KnowledgeElementAction"
318                 scope="prototype" />
319
320 </beans>