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">
14 <context:property-placeholder
15 location="classpath:siman.properties,classpath:jdbc.properties"
16 ignore-unresolvable="true" />
18 <!-- configuration i18n -->
19 <bean id="i18nUtils" class="org.splat.i18n.I18nUtils">
20 <property name="resourceBundleMessageSource"
21 ref="messageSource" />
24 <bean id="messageSource"
25 class="org.springframework.context.support.ResourceBundleMessageSource">
26 <property name="basenames">
28 <value>application</value>
29 <value>log-messages</value>
33 <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
34 <!-- property name="parentMessageSource" ref="baseMessageSource"/ -->
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" />
42 <bean id="menuBarSettings" class="org.splat.simer.MenuBarSettings"
46 <bean id="titleBarSettings" class="org.splat.simer.TitleBarSettings"
50 <bean id="toolBarSettings"
51 class="org.splat.simer.ToolBarSettings" scope="session">
54 <bean id="leftMenuSettings"
55 class="org.splat.simer.LeftMenuSettings" scope="session">
58 <bean id="slidMenu" scope="session" abstract="true">
59 <property name="projectElementService"
60 ref="projectElementService" />
61 <property name="scenarioService" ref="scenarioService" />
64 <bean id="studyMenu" class="org.splat.simer.StudyMenu"
65 scope="session" parent="slidMenu" />
67 <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
68 scope="session" parent="slidMenu" />
70 <bean id="openObject" abstract="true"
71 class="org.splat.simer.AbstractOpenObject" scope="session">
72 <property name="applicationSettings" ref="applicationSettings" />
73 <property name="projectElementService"
74 ref="projectElementService" />
75 <property name="projectSettings" ref="projectSettings" />
76 <property name="knowledgeElementTypeService"
77 ref="knowledgeElementTypeService" />
80 <bean id="openStudy" class="org.splat.simer.OpenStudy"
81 parent="openObject" scope="session">
82 <property name="projectElementService"
83 ref="projectElementService" />
84 <property name="publicationService" ref="publicationService" />
85 <property name="studyService" ref="studyService" />
86 <property name="stepService" ref="stepService" />
87 <property name="repositoryService" ref="repositoryService" />
88 <property name="menu" ref="studyMenu" />
89 <property name="documentTypeService" ref="documentTypeService" />
90 <property name="documentService" ref="documentService" />
93 <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
94 parent="openObject" scope="session">
97 <bean id="baseAction" class="org.splat.simer.Action"
98 scope="prototype" abstract="true">
99 <property name="applicationSettings" ref="applicationSettings" />
100 <property name="openStudy" ref="openStudy" />
101 <property name="openKnowledge" ref="openKnowledge" />
102 <property name="menuBarSettings" ref="menuBarSettings" />
103 <property name="titleBarSettings" ref="titleBarSettings" />
104 <property name="toolBarSettings" ref="toolBarSettings" />
105 <property name="leftMenuSettings" ref="leftMenuSettings" />
108 <!--========= Inherited from baseAction ========= -->
110 <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
111 parent="baseAction" scope="prototype">
112 <property name="simulationContextService"
113 ref="simulationContextService" />
114 <property name="scenarioService" ref="scenarioService" />
117 <bean id="newScenarioAction"
118 class="org.splat.simer.NewScenarioAction" parent="baseAction"
120 <property name="projectElementService"
121 ref="projectElementService" />
122 <property name="scenarioService" ref="scenarioService" />
123 <property name="menu" ref="newScenarioMenu" />
126 <bean id="importDocumentAction"
127 class="org.splat.simer.ImportDocumentAction" scope="prototype"
129 <property name="stepService" ref="stepService" />
130 <property name="projectSettings" ref="projectSettings" />
131 <property name="publicationService" ref="publicationService" />
132 <property name="repositoryService" ref="repositoryService" />
133 <property name="documentService" ref="documentService" />
134 <property name="documentTypeService" ref="documentTypeService" />
137 <bean id="displayStudyStepAction"
138 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
140 <property name="studyService" ref="studyService" />
143 <!--========= Inherited from displayStudyStepAction ========= -->
145 <bean id="studyPropertiesAction"
146 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
147 parent="displayStudyStepAction">
148 <property name="documentTypeService" ref="documentTypeService" />
149 <property name="userService" ref="userService" />
152 <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
153 scope="prototype" parent="displayStudyStepAction">
156 <bean id="editScenarioPropertiesAction"
157 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
158 parent="displayStudyStepAction">
159 <property name="projectElementService"
160 ref="projectElementService" />
161 <property name="scenarioService" ref="scenarioService" />
164 <bean id="editSimulationContextAction"
165 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
166 parent="displayStudyStepAction">
167 <property name="stepService" ref="stepService" />
168 <property name="simulationContextService"
169 ref="simulationContextService" />
170 <property name="simulationContextTypeService"
171 ref="simulationContextTypeService" />
174 <bean id="editDocumentAction"
175 class="org.splat.simer.EditDocumentAction" scope="prototype"
176 parent="displayStudyStepAction">
177 <property name="stepService" ref="stepService" />
178 <property name="publicationService" ref="publicationService" />
179 <property name="repositoryService" ref="repositoryService" />
182 <bean id="editKnowledgeElementAction"
183 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
184 parent="displayStudyStepAction">
185 <property name="knowledgeElementService"
186 ref="knowledgeElementService" />
187 <property name="knowledgeElementTypeService"
188 ref="knowledgeElementTypeService" />
189 <property name="scenarioService" ref="scenarioService" />
192 <!-- End of Inherited from displayStudyStepAction -->
194 <bean id="startAction" class="org.splat.simer.StartAction"
195 scope="prototype" parent="baseAction">
196 <property name="applicationSettings" ref="applicationSettings" />
197 <property name="projectSettings" ref="projectSettings" />
199 <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
200 scope="prototype" parent="baseAction">
203 <bean id="menuAction" class="org.splat.simer.MenuAction"
207 <bean id="notYetImplementedAction"
208 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
212 <bean id="searchStudyAction"
213 class="org.splat.simer.SearchStudyAction" scope="prototype"
215 <property name="projectSettings" ref="projectSettings" />
216 <property name="searchService" ref="searchService" />
217 <property name="simulationContextService"
218 ref="simulationContextService" />
219 <property name="userService" ref="userService" />
222 <bean id="searchKnowledgeAction"
223 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
225 <property name="searchService" ref="searchService" />
226 <property name="simulationContextService"
227 ref="simulationContextService" />
228 <property name="knowledgeElementTypeService"
229 ref="knowledgeElementTypeService" />
230 <property name="userService" ref="userService" />
233 <bean id="searchDocumentAction"
234 class="org.splat.simer.SearchDocumentAction" scope="prototype">
237 <bean id="displayKnowledgeAction"
238 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
240 <property name="knowledgeElementService"
241 ref="knowledgeElementService" />
244 <bean id="uploadAction" class="org.splat.simer.UploadAction"
245 scope="prototype" parent="baseAction">
246 <property name="repositoryService" ref="repositoryService" />
249 <bean id="uploadStudyAction"
250 class="org.splat.simer.UploadStudyAction" scope="prototype"
254 <bean id="versionDocumentAction"
255 class="org.splat.simer.VersionDocumentAction" scope="prototype"
257 <property name="projectSettings" ref="projectSettings" />
258 <property name="publicationService" ref="publicationService" />
259 <property name="stepService" ref="stepService" />
260 <property name="repositoryService" ref="repositoryService" />
263 <bean id="databaseIndexingAction"
264 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
266 <property name="searchService" ref="searchService" />
269 <bean id="importUserAction"
270 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
272 <property name="repositoryService" ref="repositoryService" />
273 <property name="userService" ref="userService" />
276 <bean id="simulationContextAction"
277 class="org.splat.simer.admin.SimulationContextAction"
278 scope="prototype" parent="baseAction">
279 <property name="knowledgeElementService"
280 ref="knowledgeElementService" />
281 <property name="searchService" ref="searchService" />
282 <property name="projectSettings" ref="projectSettings" />
283 <property name="simulationContextService"
284 ref="simulationContextService" />
287 <bean id="knowledgeElementAction"
288 class="org.splat.simer.admin.KnowledgeElementAction"
292 <bean id="saveDocumentAction"
293 class="org.splat.module.SaveDocumentAction" scope="prototype">
294 <property name="documentTypeService" ref="documentTypeService" />
295 <property name="publicationService" ref="publicationService" />
296 <property name="repositoryService" ref="repositoryService" />
297 <property name="scenarioService" ref="scenarioService" />
298 <property name="stepService" ref="stepService" />
299 <property name="simulationContextService"
300 ref="simulationContextService" />