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