Salome HOME
The bug related to the end of session is fixed. redirectOnEndOfSession interceptor...
[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         </bean>
86
87         <bean id="openStudy" class="org.splat.simer.OpenStudy"
88                 parent="openObject" scope="session">
89                 <property name="projectElementService"
90                         ref="projectElementService" />
91                 <property name="publicationService" ref="publicationService" />
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         </bean>
156
157         <!--========= Inherited from displayStudyStepAction ========= -->
158
159         <bean id="studyPropertiesAction"
160                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
161                 parent="displayStudyStepAction">
162                 <property name="documentTypeService" ref="documentTypeService" />
163                 <property name="userService" ref="userService" />
164         </bean>
165
166         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
167                 scope="prototype" parent="displayStudyStepAction">
168         </bean>
169
170         <bean id="editScenarioPropertiesAction"
171                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
172                 parent="displayStudyStepAction">
173                 <property name="projectElementService"
174                         ref="projectElementService" />
175                 <property name="scenarioService" ref="scenarioService" />
176         </bean>
177
178         <bean id="editSimulationContextAction"
179                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
180                 parent="displayStudyStepAction">
181                 <property name="stepService" ref="stepService" />
182                 <property name="simulationContextService"
183                         ref="simulationContextService" />
184                 <property name="simulationContextTypeService"
185                         ref="simulationContextTypeService" />
186         </bean>
187
188         <bean id="editDocumentAction"
189                 class="org.splat.simer.EditDocumentAction" scope="prototype"
190                 parent="displayStudyStepAction">
191                 <property name="stepService" ref="stepService" />
192                 <property name="publicationService" ref="publicationService" />
193                 <property name="repositoryService" ref="repositoryService" />
194         </bean>
195
196         <bean id="editKnowledgeElementAction"
197                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
198                 parent="displayStudyStepAction">
199                 <property name="knowledgeElementService"
200                         ref="knowledgeElementService" />
201                 <property name="knowledgeElementTypeService"
202                         ref="knowledgeElementTypeService" />
203                 <property name="scenarioService" ref="scenarioService" />
204         </bean>
205
206         <!-- End of Inherited from displayStudyStepAction -->
207
208         <bean id="startAction" class="org.splat.simer.StartAction"
209                 scope="prototype" parent="baseAction">
210                 <property name="applicationSettings" ref="applicationSettings" />
211                 <property name="projectSettings" ref="projectSettings" />
212         </bean>
213         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
214                 scope="prototype" parent="baseAction">
215         </bean>
216
217         <bean id="menuAction" class="org.splat.simer.MenuAction"
218                 scope="prototype" parent="baseAction">
219         </bean>
220
221         <bean id="notYetImplementedAction"
222                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
223                 parent="baseAction">
224         </bean>
225
226         <bean id="searchStudyAction"
227                 class="org.splat.simer.SearchStudyAction" scope="prototype"
228                 parent="baseAction">
229                 <property name="projectSettings" ref="projectSettings" />
230                 <property name="searchService" ref="searchService" />
231                 <property name="simulationContextService"
232                         ref="simulationContextService" />
233                 <property name="userService" ref="userService" />
234         </bean>
235
236         <bean id="searchKnowledgeAction"
237                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
238                 parent="baseAction">
239                 <property name="searchService" ref="searchService" />
240                 <property name="simulationContextService"
241                         ref="simulationContextService" />
242                 <property name="knowledgeElementTypeService"
243                         ref="knowledgeElementTypeService" />
244                 <property name="userService" ref="userService" />
245         </bean>
246
247         <bean id="searchDocumentAction"
248                 class="org.splat.simer.SearchDocumentAction" scope="prototype">
249         </bean>
250
251         <bean id="displayKnowledgeAction"
252                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
253                 parent="baseAction">
254                 <property name="knowledgeElementService"
255                         ref="knowledgeElementService" />
256         </bean>
257
258         <bean id="uploadAction" class="org.splat.simer.UploadAction"
259                 scope="prototype" parent="baseAction">
260                 <property name="repositoryService" ref="repositoryService" />
261         </bean>
262
263         <bean id="uploadStudyAction"
264                 class="org.splat.simer.UploadStudyAction" scope="prototype"
265                 parent="baseAction">
266         </bean>
267
268         <bean id="versionDocumentAction"
269                 class="org.splat.simer.VersionDocumentAction" scope="prototype"
270                 parent="baseAction">
271                 <property name="projectSettings" ref="projectSettings" />
272                 <property name="publicationService" ref="publicationService" />
273                 <property name="stepService" ref="stepService" />
274                 <property name="repositoryService" ref="repositoryService" />
275         </bean>
276
277         <bean id="databaseIndexingAction"
278                 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
279                 parent="baseAction">
280                 <property name="searchService" ref="searchService" />
281         </bean>
282
283         <bean id="importUserAction"
284                 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
285                 parent="baseAction">
286                 <property name="repositoryService" ref="repositoryService" />
287                 <property name="userService" ref="userService" />
288         </bean>
289
290         <bean id="simulationContextAction"
291                 class="org.splat.simer.admin.SimulationContextAction"
292                 scope="prototype" parent="baseAction">
293                 <property name="knowledgeElementService"
294                         ref="knowledgeElementService" />
295                 <property name="searchService" ref="searchService" />
296                 <property name="projectSettings" ref="projectSettings" />
297                 <property name="simulationContextService"
298                         ref="simulationContextService" />
299         </bean>
300
301         <bean id="knowledgeElementAction"
302                 class="org.splat.simer.admin.KnowledgeElementAction"
303                 scope="prototype">
304         </bean>
305
306 </beans>