Salome HOME
Search actions have been improved. Searching by dates has been 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                         </list>
31                 </property>
32         </bean>
33         <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
34         <!-- property name="parentMessageSource" ref="baseMessageSource"/ -->
35
36         <bean id="exceptionAction" class="org.splat.simer.ExceptionAction"
37                 scope="prototype" />
38
39         <bean id="applicationSettings"
40                 class="org.splat.simer.ApplicationSettings" scope="session">
41                 <property name="projectSettings" ref="projectSettings" />
42                 <property name="documentTypeService" ref="documentTypeService" />
43         </bean>
44
45         <bean id="redirectOnEndOfSessionInterceptor"
46                 class="org.splat.simer.SimanRedirectOnEndOfSessionInterceptor">
47                 <property name="globalResult" value="home" />
48         </bean>
49
50         <bean id="menuBarSettings" class="org.splat.simer.MenuBarSettings"
51                 scope="session">
52         </bean>
53
54         <bean id="titleBarSettings" class="org.splat.simer.TitleBarSettings"
55                 scope="session">
56         </bean>
57
58         <bean id="toolBarSettings" class="org.splat.simer.ToolBarSettings"
59                 scope="session">
60         </bean>
61
62         <bean id="leftMenuSettings" class="org.splat.simer.LeftMenuSettings"
63                 scope="session">
64         </bean>
65
66         <bean id="slidMenu" scope="session" abstract="true">
67                 <property name="projectElementService"
68                         ref="projectElementService" />
69                 <property name="scenarioService" ref="scenarioService" />
70         </bean>
71
72         <bean id="studyMenu" class="org.splat.simer.StudyMenu"
73                 scope="session" parent="slidMenu" />
74
75         <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
76                 scope="session" parent="slidMenu" />
77
78         <bean id="openObject" abstract="true"
79                 class="org.splat.simer.AbstractOpenObject" scope="session">
80                 <property name="applicationSettings" ref="applicationSettings" />
81                 <property name="projectElementService"
82                         ref="projectElementService" />
83                 <property name="projectSettings" ref="projectSettings" />
84                 <property name="knowledgeElementTypeService"
85                         ref="knowledgeElementTypeService" />
86         <property name="publicationService" ref="publicationService" />
87         </bean>
88
89         <bean id="openStudy" class="org.splat.simer.OpenStudy"
90                 parent="openObject" scope="session">
91                 <property name="projectElementService"
92                         ref="projectElementService" />
93                 <property name="studyService" ref="studyService" />
94                 <property name="stepService" ref="stepService" />
95                 <property name="repositoryService" ref="repositoryService" />
96                 <property name="menu" ref="studyMenu" />
97                 <property name="documentTypeService" ref="documentTypeService" />
98                 <property name="documentService" ref="documentService" />
99         </bean>
100
101         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
102                 parent="openObject" scope="session">
103         </bean>
104
105     <bean id="invalidateAction" class="org.splat.simer.InvalidateAction"/>
106     
107     <bean id="baseAction" class="org.splat.simer.Action"
108                 scope="prototype" abstract="true">
109                 <property name="applicationSettings" ref="applicationSettings" />
110                 <property name="openStudy" ref="openStudy" />
111                 <property name="openKnowledge" ref="openKnowledge" />
112                 <property name="menuBarSettings" ref="menuBarSettings" />
113                 <property name="titleBarSettings" ref="titleBarSettings" />
114                 <property name="toolBarSettings" ref="toolBarSettings" />
115                 <property name="leftMenuSettings" ref="leftMenuSettings" />
116         </bean>
117
118         <!--========= Inherited from baseAction ========= -->
119
120         <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
121                 parent="baseAction" scope="prototype">
122                 <property name="simulationContextService"
123                         ref="simulationContextService" />
124                 <property name="scenarioService" ref="scenarioService" />
125         </bean>
126
127         <bean id="newScenarioAction"
128                 class="org.splat.simer.NewScenarioAction" parent="baseAction"
129                 scope="prototype">
130                 <property name="projectElementService"
131                         ref="projectElementService" />
132                 <property name="scenarioService" ref="scenarioService" />
133                 <property name="menu" ref="newScenarioMenu" />
134         </bean>
135
136         <bean id="checkoutAction" class="org.splat.simer.CheckoutAction"
137                 scope="prototype">
138                 <property name="scenarioService" ref="scenarioService" />
139         </bean>
140
141         <bean id="importDocumentAction"
142                 class="org.splat.simer.ImportDocumentAction" scope="prototype"
143                 parent="baseAction">
144         <property name="studyService" ref="studyService" />
145                 <property name="stepService" ref="stepService" />
146                 <property name="projectSettings" ref="projectSettings" />
147                 <property name="publicationService" ref="publicationService" />
148                 <property name="repositoryService" ref="repositoryService" />
149                 <property name="documentService" ref="documentService" />
150                 <property name="documentTypeService" ref="documentTypeService" />
151         </bean>
152
153         <bean id="displayStudyStepAction"
154                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
155                 scope="prototype">
156                 <property name="studyService" ref="studyService" />
157                 <property name="stepService" ref="stepService" />
158         </bean>
159
160         <!--========= Inherited from displayStudyStepAction ========= -->
161
162         <bean id="studyPropertiesAction"
163                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
164                 parent="displayStudyStepAction">
165                 <property name="documentTypeService" ref="documentTypeService" />
166                 <property name="userService" ref="userService" />
167         </bean>
168
169         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
170                 scope="prototype" parent="displayStudyStepAction">
171                 <property name="studyService" ref="studyService" />
172         </bean>
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     </bean>
214     
215     <!-- bean id="CompareStudyAction"
216         class="org.splat.simer.CompareStudyAction" scope="prototype"
217         parent="displayStudyStepAction">
218         <property name="studyService" ref="studyService" />
219     </bean-->
220
221         <!-- End of Inherited from displayStudyStepAction -->
222
223         <bean id="startAction" class="org.splat.simer.StartAction"
224                 scope="prototype" parent="baseAction">
225                 <property name="applicationSettings" ref="applicationSettings" />
226                 <property name="projectSettings" ref="projectSettings" />
227         </bean>
228         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
229                 scope="prototype" parent="baseAction">
230         </bean>
231
232         <bean id="menuAction" class="org.splat.simer.MenuAction"
233                 scope="prototype" parent="baseAction">
234         </bean>
235
236         <bean id="notYetImplementedAction"
237                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
238                 parent="baseAction">
239         </bean>
240
241         <bean id="searchStudyAction"
242                 class="org.splat.simer.SearchStudyAction" scope="prototype"
243                 parent="baseAction">
244                 <property name="projectSettings" ref="projectSettings" />
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         </bean>
265
266         <bean id="displayKnowledgeAction"
267                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
268                 parent="baseAction">
269                 <property name="knowledgeElementService"
270                         ref="knowledgeElementService" />
271         </bean>
272
273         <bean id="uploadAction" class="org.splat.simer.UploadAction"
274                 scope="prototype" parent="baseAction">
275                 <property name="repositoryService" ref="repositoryService" />
276         </bean>
277
278         <bean id="uploadStudyAction"
279                 class="org.splat.simer.UploadStudyAction" scope="prototype"
280                 parent="baseAction">
281         </bean>
282
283         <bean id="versionDocumentAction"
284                 class="org.splat.simer.VersionDocumentAction" scope="prototype"
285                 parent="baseAction">
286         <property name="studyService" ref="studyService" />
287                 <property name="projectSettings" ref="projectSettings" />
288                 <property name="publicationService" ref="publicationService" />
289                 <property name="stepService" ref="stepService" />
290                 <property name="repositoryService" ref="repositoryService" />
291         </bean>
292
293         <bean id="databaseIndexingAction"
294                 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
295                 parent="baseAction">
296                 <property name="searchService" ref="searchService" />
297         </bean>
298
299         <bean id="importUserAction"
300                 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
301                 parent="baseAction">
302                 <property name="repositoryService" ref="repositoryService" />
303                 <property name="userService" ref="userService" />
304         </bean>
305
306         <bean id="simulationContextAction"
307                 class="org.splat.simer.admin.SimulationContextAction"
308                 scope="prototype" parent="baseAction">
309                 <property name="knowledgeElementService"
310                         ref="knowledgeElementService" />
311                 <property name="searchService" ref="searchService" />
312                 <property name="projectSettings" ref="projectSettings" />
313                 <property name="simulationContextService"
314                         ref="simulationContextService" />
315         </bean>
316
317         <bean id="knowledgeElementAction"
318                 class="org.splat.simer.admin.KnowledgeElementAction"
319                 scope="prototype">
320         </bean>
321
322 </beans>