]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/src/spring/applicationContext.xml
Salome HOME
Preliminary version of the "Remove study" action 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                         </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         </bean>
158
159     <bean id="removeStudyAction" class="org.splat.simer.RemoveStudyAction"
160         scope="prototype" parent="baseAction">
161         <property name="studyService" ref="studyService" />
162     </bean>
163
164         <!--========= Inherited from displayStudyStepAction ========= -->
165
166         <bean id="studyPropertiesAction"
167                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
168                 parent="displayStudyStepAction">
169                 <property name="documentTypeService" ref="documentTypeService" />
170                 <property name="userService" ref="userService" />
171         </bean>
172
173     <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
174         scope="prototype" parent="displayStudyStepAction">
175     </bean>
176     
177         <bean id="editScenarioPropertiesAction"
178                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
179                 parent="displayStudyStepAction">
180                 <property name="projectElementService"
181                         ref="projectElementService" />
182                 <property name="scenarioService" ref="scenarioService" />
183         </bean>
184
185         <bean id="editSimulationContextAction"
186                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
187                 parent="displayStudyStepAction">
188                 <property name="stepService" ref="stepService" />
189                 <property name="simulationContextService"
190                         ref="simulationContextService" />
191                 <property name="simulationContextTypeService"
192                         ref="simulationContextTypeService" />
193         </bean>
194
195         <bean id="editDocumentAction"
196                 class="org.splat.simer.EditDocumentAction" scope="prototype"
197                 parent="displayStudyStepAction">
198                 <property name="stepService" ref="stepService" />
199                 <property name="publicationService" ref="publicationService" />
200                 <property name="repositoryService" ref="repositoryService" />
201         </bean>
202
203         <bean id="editKnowledgeElementAction"
204                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
205                 parent="displayStudyStepAction">
206                 <property name="knowledgeElementService"
207                         ref="knowledgeElementService" />
208                 <property name="knowledgeElementTypeService"
209                         ref="knowledgeElementTypeService" />
210                 <property name="scenarioService" ref="scenarioService" />
211         </bean>
212         
213         <bean id="editStepCommentAction"
214         class="org.splat.simer.EditStepCommentAction" scope="prototype"
215         parent="displayStudyStepAction">
216         <property name="stepService" ref="stepService" />
217     </bean>
218     
219     <bean id="editStudyDescriptionAction"
220         class="org.splat.simer.EditStudyDescriptionAction" scope="prototype"
221         parent="displayStudyStepAction">
222     </bean>
223     
224     
225     <!-- bean id="CompareStudyAction"
226         class="org.splat.simer.CompareStudyAction" scope="prototype"
227         parent="displayStudyStepAction">
228         <property name="studyService" ref="studyService" />
229     </bean-->
230
231         <!-- End of Inherited from displayStudyStepAction -->
232
233         <bean id="startAction" class="org.splat.simer.StartAction"
234                 scope="prototype" parent="baseAction">
235                 <property name="applicationSettings" ref="applicationSettings" />
236                 <property name="projectSettings" ref="projectSettings" />
237         </bean>
238         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
239                 scope="prototype" parent="baseAction">
240         </bean>
241
242         <bean id="menuAction" class="org.splat.simer.MenuAction"
243                 scope="prototype" parent="baseAction">
244         </bean>
245
246         <bean id="notYetImplementedAction"
247                 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
248                 parent="baseAction">
249         </bean>
250
251         <bean id="searchStudyAction"
252                 class="org.splat.simer.SearchStudyAction" scope="prototype"
253                 parent="baseAction">
254                 <property name="projectSettings" ref="projectSettings" />
255                 <property name="searchService" ref="searchService" />
256                 <property name="simulationContextService"
257                         ref="simulationContextService" />
258                 <property name="userService" ref="userService" />
259         </bean>
260
261         <bean id="searchKnowledgeAction"
262                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
263                 parent="baseAction">
264                 <property name="searchService" ref="searchService" />
265                 <property name="simulationContextService"
266                         ref="simulationContextService" />
267                 <property name="knowledgeElementTypeService"
268                         ref="knowledgeElementTypeService" />
269                 <property name="userService" ref="userService" />
270         </bean>
271
272         <bean id="searchDocumentAction"
273                 class="org.splat.simer.SearchDocumentAction" scope="prototype">
274         </bean>
275
276         <bean id="displayKnowledgeAction"
277                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
278                 parent="baseAction">
279                 <property name="knowledgeElementService"
280                         ref="knowledgeElementService" />
281         </bean>
282
283         <bean id="uploadAction" class="org.splat.simer.UploadAction"
284                 scope="prototype" parent="baseAction">
285                 <property name="repositoryService" ref="repositoryService" />
286         </bean>
287
288         <bean id="uploadStudyAction"
289                 class="org.splat.simer.UploadStudyAction" scope="prototype"
290                 parent="baseAction">
291         </bean>
292
293         <bean id="versionDocumentAction"
294                 class="org.splat.simer.VersionDocumentAction" scope="prototype"
295                 parent="baseAction">
296                 <property name="projectSettings" ref="projectSettings" />
297                 <property name="publicationService" ref="publicationService" />
298                 <property name="stepService" ref="stepService" />
299         <property name="studyService" ref="studyService" />
300                 <property name="repositoryService" ref="repositoryService" />
301         </bean>
302
303         <bean id="databaseIndexingAction"
304                 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
305                 parent="baseAction">
306                 <property name="searchService" ref="searchService" />
307         </bean>
308
309         <bean id="importUserAction"
310                 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
311                 parent="baseAction">
312                 <property name="repositoryService" ref="repositoryService" />
313                 <property name="userService" ref="userService" />
314         </bean>
315
316         <bean id="simulationContextAction"
317                 class="org.splat.simer.admin.SimulationContextAction"
318                 scope="prototype" parent="baseAction">
319                 <property name="knowledgeElementService"
320                         ref="knowledgeElementService" />
321                 <property name="searchService" ref="searchService" />
322                 <property name="projectSettings" ref="projectSettings" />
323                 <property name="simulationContextService"
324                         ref="simulationContextService" />
325         </bean>
326
327         <bean id="knowledgeElementAction"
328                 class="org.splat.simer.admin.KnowledgeElementAction"
329                 scope="prototype">
330         </bean>
331
332 </beans>