Salome HOME
Studies comparison functionality is implemented.
[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     <bean id="CompareStudyAction"
221         class="org.splat.simer.CompareStudyAction" scope="prototype"
222         parent="displayStudyStepAction">
223         <property name="publicationService" ref="publicationService" />
224     </bean>
225
226         <!-- End of Inherited from displayStudyStepAction -->
227
228         <bean id="startAction" class="org.splat.simer.StartAction"
229                 scope="prototype" parent="baseAction" />
230
231         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
232                 scope="prototype" parent="baseAction" />
233
234         <bean id="menuAction" class="org.splat.simer.MenuAction"
235                 scope="prototype" parent="baseAction" />
236
237         <bean id="notYetImplementedAction"
238                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
239                 parent="baseAction" />
240
241         <bean id="searchStudyAction"
242                 class="org.splat.simer.SearchStudyAction" scope="prototype"
243                 parent="baseAction">
244                 <property name="stepsConfigService" ref="stepsConfigService" />
245                 <property name="searchService" ref="searchService" />
246                 <property name="simulationContextService"
247                         ref="simulationContextService" />
248                 <property name="userService" ref="userService" />
249         </bean>
250
251         <bean id="searchKnowledgeAction"
252                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
253                 parent="baseAction">
254                 <property name="searchService" ref="searchService" />
255                 <property name="simulationContextService"
256                         ref="simulationContextService" />
257                 <property name="knowledgeElementTypeService"
258                         ref="knowledgeElementTypeService" />
259                 <property name="userService" ref="userService" />
260         </bean>
261
262         <bean id="searchDocumentAction"
263                 class="org.splat.simer.SearchDocumentAction" scope="prototype" />
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
281         <bean id="versionDocumentAction"
282                 class="org.splat.simer.VersionDocumentAction" scope="prototype"
283                 parent="baseAction">
284                 <property name="projectSettings" ref="projectSettings" />
285                 <property name="publicationService" ref="publicationService" />
286                 <property name="stepService" ref="stepService" />
287         <property name="studyService" ref="studyService" />
288                 <property name="repositoryService" ref="repositoryService" />
289         </bean>
290
291         <bean id="databaseIndexingAction"
292                 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
293                 parent="baseAction">
294                 <property name="searchService" ref="searchService" />
295         </bean>
296
297         <bean id="importUserAction"
298                 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
299                 parent="baseAction">
300                 <property name="repositoryService" ref="repositoryService" />
301                 <property name="userService" ref="userService" />
302         </bean>
303
304         <bean id="simulationContextAction"
305                 class="org.splat.simer.admin.SimulationContextAction"
306                 scope="prototype" parent="baseAction">
307                 <property name="knowledgeElementService"
308                         ref="knowledgeElementService" />
309                 <property name="searchService" ref="searchService" />
310                 <property name="projectSettings" ref="projectSettings" />
311                 <property name="simulationContextService"
312                         ref="simulationContextService" />
313         </bean>
314
315         <bean id="knowledgeElementAction"
316                 class="org.splat.simer.admin.KnowledgeElementAction"
317                 scope="prototype" />
318
319 </beans>