Salome HOME
Fix for mantis #0022093: To exclude the "In-Draft" state from drop-down list during...
[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                         </list>
30                 </property>
31         </bean>
32         <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
33         <!-- property name="parentMessageSource" ref="baseMessageSource"/ -->
34
35         <bean id="exceptionAction" class="org.splat.simer.ExceptionAction"
36                 scope="prototype" />
37
38         <bean id="applicationSettings"
39                 class="org.splat.simer.ApplicationSettings" scope="session">
40                 <property name="projectSettings" ref="projectSettings" />
41                 <property name="documentTypeService" ref="documentTypeService" />
42         </bean>
43
44         <bean id="redirectOnEndOfSessionInterceptor"
45                 class="org.splat.simer.SimanRedirectOnEndOfSessionInterceptor">
46                 <property name="globalResult" value="home" />
47         </bean>
48
49         <bean id="menuBarSettings" class="org.splat.simer.MenuBarSettings"
50                 scope="session">
51         </bean>
52
53         <bean id="titleBarSettings" class="org.splat.simer.TitleBarSettings"
54                 scope="session">
55         </bean>
56
57         <bean id="toolBarSettings" class="org.splat.simer.ToolBarSettings"
58                 scope="session">
59         </bean>
60
61         <bean id="leftMenuSettings" class="org.splat.simer.LeftMenuSettings"
62                 scope="session">
63         </bean>
64
65         <bean id="slidMenu" scope="session" abstract="true">
66                 <property name="projectElementService"
67                         ref="projectElementService" />
68                 <property name="scenarioService" ref="scenarioService" />
69         </bean>
70
71         <bean id="studyMenu" class="org.splat.simer.StudyMenu"
72                 scope="session" parent="slidMenu" />
73
74         <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
75                 scope="session" parent="slidMenu" />
76
77         <bean id="openObject" abstract="true"
78                 class="org.splat.simer.AbstractOpenObject" scope="session">
79                 <property name="applicationSettings" ref="applicationSettings" />
80                 <property name="projectElementService"
81                         ref="projectElementService" />
82                 <property name="projectSettings" ref="projectSettings" />
83                 <property name="knowledgeElementTypeService"
84                         ref="knowledgeElementTypeService" />
85         <property name="publicationService" ref="publicationService" />
86         </bean>
87
88         <bean id="openStudy" class="org.splat.simer.OpenStudy"
89                 parent="openObject" scope="session">
90                 <property name="projectElementService"
91                         ref="projectElementService" />
92                 <property name="studyService" ref="studyService" />
93                 <property name="stepService" ref="stepService" />
94                 <property name="repositoryService" ref="repositoryService" />
95                 <property name="menu" ref="studyMenu" />
96                 <property name="documentTypeService" ref="documentTypeService" />
97                 <property name="documentService" ref="documentService" />
98         </bean>
99
100         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
101                 parent="openObject" scope="session">
102         </bean>
103
104     <bean id="invalidateAction" class="org.splat.simer.InvalidateAction"/>
105     
106     <bean id="baseAction" class="org.splat.simer.Action"
107                 scope="prototype" abstract="true">
108                 <property name="applicationSettings" ref="applicationSettings" />
109                 <property name="openStudy" ref="openStudy" />
110                 <property name="openKnowledge" ref="openKnowledge" />
111                 <property name="menuBarSettings" ref="menuBarSettings" />
112                 <property name="titleBarSettings" ref="titleBarSettings" />
113                 <property name="toolBarSettings" ref="toolBarSettings" />
114                 <property name="leftMenuSettings" ref="leftMenuSettings" />
115         </bean>
116
117         <!--========= Inherited from baseAction ========= -->
118
119         <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
120                 parent="baseAction" scope="prototype">
121                 <property name="simulationContextService"
122                         ref="simulationContextService" />
123                 <property name="scenarioService" ref="scenarioService" />
124         </bean>
125
126         <bean id="newScenarioAction"
127                 class="org.splat.simer.NewScenarioAction" parent="baseAction"
128                 scope="prototype">
129                 <property name="projectElementService"
130                         ref="projectElementService" />
131                 <property name="scenarioService" ref="scenarioService" />
132                 <property name="menu" ref="newScenarioMenu" />
133         </bean>
134
135         <bean id="checkoutAction" class="org.splat.simer.CheckoutAction"
136                 scope="prototype">
137                 <property name="scenarioService" ref="scenarioService" />
138         </bean>
139
140         <bean id="importDocumentAction"
141                 class="org.splat.simer.ImportDocumentAction" scope="prototype"
142                 parent="baseAction">
143         <property name="studyService" ref="studyService" />
144                 <property name="stepService" ref="stepService" />
145                 <property name="projectSettings" ref="projectSettings" />
146                 <property name="publicationService" ref="publicationService" />
147                 <property name="repositoryService" ref="repositoryService" />
148                 <property name="documentService" ref="documentService" />
149                 <property name="documentTypeService" ref="documentTypeService" />
150         </bean>
151
152         <bean id="displayStudyStepAction"
153                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
154                 scope="prototype">
155                 <property name="studyService" ref="studyService" />
156                 <property name="stepService" ref="stepService" />
157         </bean>
158
159         <!--========= Inherited from displayStudyStepAction ========= -->
160
161         <bean id="studyPropertiesAction"
162                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
163                 parent="displayStudyStepAction">
164                 <property name="documentTypeService" ref="documentTypeService" />
165                 <property name="userService" ref="userService" />
166         </bean>
167
168         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
169                 scope="prototype" parent="displayStudyStepAction">
170                 <property name="studyService" ref="studyService" />
171         </bean>
172
173         <bean id="editScenarioPropertiesAction"
174                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
175                 parent="displayStudyStepAction">
176                 <property name="projectElementService"
177                         ref="projectElementService" />
178                 <property name="scenarioService" ref="scenarioService" />
179         </bean>
180
181         <bean id="editSimulationContextAction"
182                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
183                 parent="displayStudyStepAction">
184                 <property name="stepService" ref="stepService" />
185                 <property name="simulationContextService"
186                         ref="simulationContextService" />
187                 <property name="simulationContextTypeService"
188                         ref="simulationContextTypeService" />
189         </bean>
190
191         <bean id="editDocumentAction"
192                 class="org.splat.simer.EditDocumentAction" scope="prototype"
193                 parent="displayStudyStepAction">
194                 <property name="stepService" ref="stepService" />
195                 <property name="publicationService" ref="publicationService" />
196                 <property name="repositoryService" ref="repositoryService" />
197         </bean>
198
199         <bean id="editKnowledgeElementAction"
200                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
201                 parent="displayStudyStepAction">
202                 <property name="knowledgeElementService"
203                         ref="knowledgeElementService" />
204                 <property name="knowledgeElementTypeService"
205                         ref="knowledgeElementTypeService" />
206                 <property name="scenarioService" ref="scenarioService" />
207         </bean>
208         
209         <bean id="editStepCommentAction"
210         class="org.splat.simer.EditStepCommentAction" scope="prototype"
211         parent="displayStudyStepAction">
212     </bean>
213     
214     <!-- bean id="CompareStudyAction"
215         class="org.splat.simer.CompareStudyAction" scope="prototype"
216         parent="displayStudyStepAction">
217         <property name="studyService" ref="studyService" />
218     </bean-->
219
220         <!-- End of Inherited from displayStudyStepAction -->
221
222         <bean id="startAction" class="org.splat.simer.StartAction"
223                 scope="prototype" parent="baseAction">
224                 <property name="applicationSettings" ref="applicationSettings" />
225                 <property name="projectSettings" ref="projectSettings" />
226         </bean>
227         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
228                 scope="prototype" parent="baseAction">
229         </bean>
230
231         <bean id="menuAction" class="org.splat.simer.MenuAction"
232                 scope="prototype" parent="baseAction">
233         </bean>
234
235         <bean id="notYetImplementedAction"
236                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
237                 parent="baseAction">
238         </bean>
239
240         <bean id="searchStudyAction"
241                 class="org.splat.simer.SearchStudyAction" scope="prototype"
242                 parent="baseAction">
243                 <property name="projectSettings" ref="projectSettings" />
244                 <property name="searchService" ref="searchService" />
245                 <property name="simulationContextService"
246                         ref="simulationContextService" />
247                 <property name="userService" ref="userService" />
248         </bean>
249
250         <bean id="searchKnowledgeAction"
251                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
252                 parent="baseAction">
253                 <property name="searchService" ref="searchService" />
254                 <property name="simulationContextService"
255                         ref="simulationContextService" />
256                 <property name="knowledgeElementTypeService"
257                         ref="knowledgeElementTypeService" />
258                 <property name="userService" ref="userService" />
259         </bean>
260
261         <bean id="searchDocumentAction"
262                 class="org.splat.simer.SearchDocumentAction" scope="prototype">
263         </bean>
264
265         <bean id="displayKnowledgeAction"
266                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
267                 parent="baseAction">
268                 <property name="knowledgeElementService"
269                         ref="knowledgeElementService" />
270         </bean>
271
272         <bean id="uploadAction" class="org.splat.simer.UploadAction"
273                 scope="prototype" parent="baseAction">
274                 <property name="repositoryService" ref="repositoryService" />
275         </bean>
276
277         <bean id="uploadStudyAction"
278                 class="org.splat.simer.UploadStudyAction" scope="prototype"
279                 parent="baseAction">
280         </bean>
281
282         <bean id="versionDocumentAction"
283                 class="org.splat.simer.VersionDocumentAction" scope="prototype"
284                 parent="baseAction">
285         <property name="studyService" ref="studyService" />
286                 <property name="projectSettings" ref="projectSettings" />
287                 <property name="publicationService" ref="publicationService" />
288                 <property name="stepService" ref="stepService" />
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         </bean>
320
321 </beans>