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