Salome HOME
Show and Edit comments functionalities are 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                         </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="stepService" ref="stepService" />
144                 <property name="projectSettings" ref="projectSettings" />
145                 <property name="publicationService" ref="publicationService" />
146                 <property name="repositoryService" ref="repositoryService" />
147                 <property name="documentService" ref="documentService" />
148                 <property name="documentTypeService" ref="documentTypeService" />
149         </bean>
150
151         <bean id="displayStudyStepAction"
152                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
153                 scope="prototype">
154                 <property name="studyService" ref="studyService" />
155                 <property name="stepService" ref="stepService" />
156         </bean>
157
158         <!--========= Inherited from displayStudyStepAction ========= -->
159
160         <bean id="studyPropertiesAction"
161                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
162                 parent="displayStudyStepAction">
163                 <property name="documentTypeService" ref="documentTypeService" />
164                 <property name="userService" ref="userService" />
165         </bean>
166
167         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
168                 scope="prototype" parent="displayStudyStepAction">
169                 <property name="studyService" ref="studyService" />
170         </bean>
171
172         <bean id="editScenarioPropertiesAction"
173                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
174                 parent="displayStudyStepAction">
175                 <property name="projectElementService"
176                         ref="projectElementService" />
177                 <property name="scenarioService" ref="scenarioService" />
178         </bean>
179
180         <bean id="editSimulationContextAction"
181                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
182                 parent="displayStudyStepAction">
183                 <property name="stepService" ref="stepService" />
184                 <property name="simulationContextService"
185                         ref="simulationContextService" />
186                 <property name="simulationContextTypeService"
187                         ref="simulationContextTypeService" />
188         </bean>
189
190         <bean id="editDocumentAction"
191                 class="org.splat.simer.EditDocumentAction" scope="prototype"
192                 parent="displayStudyStepAction">
193                 <property name="stepService" ref="stepService" />
194                 <property name="publicationService" ref="publicationService" />
195                 <property name="repositoryService" ref="repositoryService" />
196         </bean>
197
198         <bean id="editKnowledgeElementAction"
199                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
200                 parent="displayStudyStepAction">
201                 <property name="knowledgeElementService"
202                         ref="knowledgeElementService" />
203                 <property name="knowledgeElementTypeService"
204                         ref="knowledgeElementTypeService" />
205                 <property name="scenarioService" ref="scenarioService" />
206         </bean>
207         
208         <bean id="editStepCommentAction"
209         class="org.splat.simer.EditStepCommentAction" scope="prototype"
210         parent="displayStudyStepAction">
211     </bean>
212     
213     <!-- bean id="CompareStudyAction"
214         class="org.splat.simer.CompareStudyAction" scope="prototype"
215         parent="displayStudyStepAction">
216         <property name="studyService" ref="studyService" />
217     </bean-->
218
219         <!-- End of Inherited from displayStudyStepAction -->
220
221         <bean id="startAction" class="org.splat.simer.StartAction"
222                 scope="prototype" parent="baseAction">
223                 <property name="applicationSettings" ref="applicationSettings" />
224                 <property name="projectSettings" ref="projectSettings" />
225         </bean>
226         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
227                 scope="prototype" parent="baseAction">
228         </bean>
229
230         <bean id="menuAction" class="org.splat.simer.MenuAction"
231                 scope="prototype" parent="baseAction">
232         </bean>
233
234         <bean id="notYetImplementedAction"
235                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
236                 parent="baseAction">
237         </bean>
238
239         <bean id="searchStudyAction"
240                 class="org.splat.simer.SearchStudyAction" scope="prototype"
241                 parent="baseAction">
242                 <property name="projectSettings" ref="projectSettings" />
243                 <property name="searchService" ref="searchService" />
244                 <property name="simulationContextService"
245                         ref="simulationContextService" />
246                 <property name="userService" ref="userService" />
247         </bean>
248
249         <bean id="searchKnowledgeAction"
250                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
251                 parent="baseAction">
252                 <property name="searchService" ref="searchService" />
253                 <property name="simulationContextService"
254                         ref="simulationContextService" />
255                 <property name="knowledgeElementTypeService"
256                         ref="knowledgeElementTypeService" />
257                 <property name="userService" ref="userService" />
258         </bean>
259
260         <bean id="searchDocumentAction"
261                 class="org.splat.simer.SearchDocumentAction" scope="prototype">
262         </bean>
263
264         <bean id="displayKnowledgeAction"
265                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
266                 parent="baseAction">
267                 <property name="knowledgeElementService"
268                         ref="knowledgeElementService" />
269         </bean>
270
271         <bean id="uploadAction" class="org.splat.simer.UploadAction"
272                 scope="prototype" parent="baseAction">
273                 <property name="repositoryService" ref="repositoryService" />
274         </bean>
275
276         <bean id="uploadStudyAction"
277                 class="org.splat.simer.UploadStudyAction" scope="prototype"
278                 parent="baseAction">
279         </bean>
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="repositoryService" ref="repositoryService" />
288         </bean>
289
290         <bean id="databaseIndexingAction"
291                 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
292                 parent="baseAction">
293                 <property name="searchService" ref="searchService" />
294         </bean>
295
296         <bean id="importUserAction"
297                 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
298                 parent="baseAction">
299                 <property name="repositoryService" ref="repositoryService" />
300                 <property name="userService" ref="userService" />
301         </bean>
302
303         <bean id="simulationContextAction"
304                 class="org.splat.simer.admin.SimulationContextAction"
305                 scope="prototype" parent="baseAction">
306                 <property name="knowledgeElementService"
307                         ref="knowledgeElementService" />
308                 <property name="searchService" ref="searchService" />
309                 <property name="projectSettings" ref="projectSettings" />
310                 <property name="simulationContextService"
311                         ref="simulationContextService" />
312         </bean>
313
314         <bean id="knowledgeElementAction"
315                 class="org.splat.simer.admin.KnowledgeElementAction"
316                 scope="prototype">
317         </bean>
318
319 </beans>