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