Salome HOME
ImportDocumentAction got rid of Database class usage. EditSimulationContextAction...
[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>application</value>
29                                 <value>log-messages</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="applicationSettings"
37                 class="org.splat.simer.ApplicationSettings" factory-method="getMe">
38                 <property name="projectSettings" ref="projectSettings" />
39                 <property name="documentTypeService" ref="documentTypeService" />
40         </bean>
41
42         <bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
43                 scope="prototype">
44                 <property name="searchService" ref="searchService" />
45         </bean>
46
47         <bean id="slidMenu" scope="session" abstract="true">
48                 <property name="projectElementService"
49                         ref="projectElementService" />
50                 <property name="scenarioService" ref="scenarioService" />
51         </bean>
52
53         <bean id="studyMenu" class="org.splat.simer.StudyMenu"
54                 scope="session" parent="slidMenu" />
55
56         <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
57                 scope="session" parent="slidMenu" />
58
59         <bean id="openObject" abstract="true"
60                 class="org.splat.simer.OpenObject" scope="session">
61                 <property name="projectElementService"
62                         ref="projectElementService" />
63                 <property name="projectSettings" ref="projectSettings" />
64                 <property name="knowledgeElementTypeService"
65                         ref="knowledgeElementTypeService" />
66         </bean>
67
68         <bean id="openStudy" class="org.splat.simer.OpenStudy"
69                 parent="openObject" scope="session">
70                 <property name="projectElementService"
71                         ref="projectElementService" />
72                 <property name="publicationService" ref="publicationService" />
73                 <property name="studyService" ref="studyService" />
74                 <property name="stepService" ref="stepService" />
75                 <property name="repositoryService" ref="repositoryService" />
76                 <property name="menu" ref="studyMenu" />
77                 <property name="documentTypeService" ref="documentTypeService" />
78                 <property name="documentService" ref="documentService" />
79         </bean>
80
81         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
82                 parent="openObject" scope="session">
83         </bean>
84
85         <bean id="baseAction" class="org.splat.simer.Action"
86                 scope="prototype" abstract="true">
87                 <property name="openStudy" ref="openStudy" />
88                 <property name="openKnowledge" ref="openKnowledge" />
89         </bean>
90
91         <!--========= Inherited from baseAction ========= -->
92
93         <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
94                 parent="baseAction" scope="prototype">
95                 <property name="simulationContextService"
96                         ref="simulationContextService" />
97                 <property name="scenarioService" ref="scenarioService" />
98                 <property name="studyService" ref="studyService" />
99         </bean>
100
101         <bean id="newScenarioAction"
102                 class="org.splat.simer.NewScenarioAction" parent="baseAction"
103                 scope="prototype">
104                 <property name="projectElementService"
105                         ref="projectElementService" />
106                 <property name="scenarioService" ref="scenarioService" />
107                 <property name="menu" ref="newScenarioMenu" />
108         </bean>
109
110         <bean id="importDocumentAction"
111                 class="org.splat.simer.ImportDocumentAction" scope="prototype"
112                 parent="baseAction">
113                 <property name="stepService" ref="stepService" />
114                 <property name="projectSettings" ref="projectSettings" />
115                 <property name="publicationService" ref="publicationService" />
116                 <property name="repositoryService" ref="repositoryService" />
117         <property name="documentService" ref="documentService" />
118         <property name="documentTypeService" ref="documentTypeService" />
119         </bean>
120
121         <bean id="displayStudyStepAction"
122                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
123                 scope="prototype">
124                 <property name="studyService" ref="studyService" />
125         </bean>
126
127         <!--========= Inherited from displayStudyStepAction ========= -->
128
129         <bean id="studyPropertiesAction"
130                 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
131                 parent="displayStudyStepAction">
132                 <property name="documentTypeService" ref="documentTypeService" />
133                 <property name="userService" ref="userService" />
134         </bean>
135
136         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
137                 scope="prototype" parent="displayStudyStepAction">
138         </bean>
139
140         <bean id="editScenarioPropertiesAction"
141                 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
142                 parent="displayStudyStepAction">
143                 <property name="projectElementService"
144                         ref="projectElementService" />
145                 <property name="scenarioService" ref="scenarioService" />
146         </bean>
147
148         <bean id="editSimulationContextAction"
149                 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
150                 parent="displayStudyStepAction">
151                 <property name="stepService" ref="stepService" />
152         <property name="simulationContextService"
153             ref="simulationContextService" />
154         <property name="simulationContextTypeService"
155             ref="simulationContextTypeService" />
156         </bean>
157
158         <bean id="editDocumentAction"
159                 class="org.splat.simer.EditDocumentAction" scope="prototype"
160                 parent="displayStudyStepAction">
161                 <property name="stepService" ref="stepService" />
162                 <property name="publicationService" ref="publicationService" />
163                 <property name="repositoryService" ref="repositoryService" />
164         </bean>
165
166         <bean id="editKnowledgeElementAction"
167                 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
168                 parent="displayStudyStepAction">
169                 <property name="knowledgeElementService"
170                         ref="knowledgeElementService" />
171                 <property name="knowledgeElementTypeService"
172                         ref="knowledgeElementTypeService" />
173                 <property name="scenarioService" ref="scenarioService" />
174         </bean>
175
176         <!-- End of Inherited from displayStudyStepAction -->
177
178         <bean id="startAction" class="org.splat.simer.StartAction"
179                 scope="prototype">
180                 <property name="applicationSettings" ref="applicationSettings" />
181                 <property name="projectSettings" ref="projectSettings" />
182         </bean>
183         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
184                 scope="prototype">
185         </bean>
186
187         <bean id="menuAction" class="org.splat.simer.MenuAction"
188                 scope="prototype">
189         </bean>
190
191         <bean id="notYetImplementedAction"
192                 class="org.splat.simer.NotYetImplementedAction" scope="prototype">
193         </bean>
194
195         <bean id="searchStudyAction"
196                 class="org.splat.simer.SearchStudyAction" scope="prototype">
197                 <property name="projectSettings" ref="projectSettings" />
198                 <property name="searchService" ref="searchService" />
199                 <property name="simulationContextService"
200                         ref="simulationContextService" />
201                 <property name="userService" ref="userService" />
202         </bean>
203
204         <bean id="searchKnowledgeAction"
205                 class="org.splat.simer.SearchKnowledgeAction" scope="prototype">
206                 <property name="searchService" ref="searchService" />
207                 <property name="simulationContextService"
208                         ref="simulationContextService" />
209                 <property name="knowledgeElementTypeService"
210                         ref="knowledgeElementTypeService" />
211                 <property name="userService" ref="userService" />
212         </bean>
213
214         <bean id="searchDocumentAction"
215                 class="org.splat.simer.SearchDocumentAction" scope="prototype">
216         </bean>
217
218         <bean id="displayKnowledgeAction"
219                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
220                 <property name="knowledgeElementService"
221                         ref="knowledgeElementService" />
222         </bean>
223
224         <bean id="uploadAction" class="org.splat.simer.UploadAction"
225                 scope="prototype">
226                 <property name="repositoryService" ref="repositoryService" />
227         </bean>
228
229         <bean id="versionDocumentAction"
230                 class="org.splat.simer.VersionDocumentAction" scope="prototype">
231                 <property name="projectSettings" ref="projectSettings" />
232                 <property name="publicationService" ref="publicationService" />
233                 <property name="stepService" ref="stepService" />
234                 <property name="repositoryService" ref="repositoryService" />
235         </bean>
236
237         <bean id="databaseIndexingAction"
238                 class="org.splat.simer.admin.DatabaseIndexingAction"
239                 scope="prototype">
240                 <property name="importedStudy" ref="importedStudy" />
241                 <property name="searchService" ref="searchService" />
242         </bean>
243
244         <bean id="importUserAction"
245                 class="org.splat.simer.admin.ImportUserAction" scope="prototype">
246                 <property name="repositoryService" ref="repositoryService" />
247                 <property name="userService" ref="userService" />
248         </bean>
249
250         <bean id="simulationContextAction"
251                 class="org.splat.simer.admin.SimulationContextAction"
252                 scope="prototype">
253                 <property name="knowledgeElementService"
254                         ref="knowledgeElementService" />
255                 <property name="searchService" ref="searchService" />
256                 <property name="projectSettings" ref="projectSettings" />
257                 <property name="simulationContextService"
258                         ref="simulationContextService" />
259         </bean>
260
261         <bean id="knowledgeElementAction"
262                 class="org.splat.simer.admin.KnowledgeElementAction"
263                 scope="prototype">
264         </bean>
265
266         <bean id="saveDocumentAction"
267                 class="org.splat.module.SaveDocumentAction" scope="prototype">
268                 <property name="documentTypeService" ref="documentTypeService" />
269                 <property name="publicationService" ref="publicationService" />
270                 <property name="repositoryService" ref="repositoryService" />
271                 <property name="scenarioService" ref="scenarioService" />
272                 <property name="stepService" ref="stepService" />
273                 <property name="simulationContextService"
274                         ref="simulationContextService" />
275         </bean>
276
277 </beans>