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="slidMenu" scope="session" abstract="true">
55 <property name="projectElementService"
56 ref="projectElementService" />
57 <property name="scenarioService" ref="scenarioService" />
60 <bean id="studyMenu" class="org.splat.simer.StudyMenu"
61 scope="session" parent="slidMenu" />
63 <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
64 scope="session" parent="slidMenu" />
66 <bean id="openObject" abstract="true"
67 class="org.splat.simer.OpenObject" scope="session">
68 <property name="applicationSettings" ref="applicationSettings" />
69 <property name="projectElementService"
70 ref="projectElementService" />
71 <property name="projectSettings" ref="projectSettings" />
72 <property name="knowledgeElementTypeService"
73 ref="knowledgeElementTypeService" />
76 <bean id="openStudy" class="org.splat.simer.OpenStudy"
77 parent="openObject" scope="session">
78 <property name="projectElementService"
79 ref="projectElementService" />
80 <property name="publicationService" ref="publicationService" />
81 <property name="studyService" ref="studyService" />
82 <property name="stepService" ref="stepService" />
83 <property name="repositoryService" ref="repositoryService" />
84 <property name="menu" ref="studyMenu" />
85 <property name="documentTypeService" ref="documentTypeService" />
86 <property name="documentService" ref="documentService" />
89 <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
90 parent="openObject" scope="session">
93 <bean id="baseAction" class="org.splat.simer.Action"
94 scope="prototype" abstract="true">
95 <property name="applicationSettings" ref="applicationSettings" />
96 <property name="openStudy" ref="openStudy" />
97 <property name="openKnowledge" ref="openKnowledge" />
98 <property name="menuBarSettings" ref="menuBarSettings" />
99 <property name="titleBarSettings" ref="titleBarSettings" />
100 <property name="toolBarSettings" ref="toolBarSettings" />
103 <!--========= Inherited from baseAction ========= -->
105 <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
106 parent="baseAction" scope="prototype">
107 <property name="simulationContextService"
108 ref="simulationContextService" />
109 <property name="scenarioService" ref="scenarioService" />
112 <bean id="newScenarioAction"
113 class="org.splat.simer.NewScenarioAction" parent="baseAction"
115 <property name="projectElementService"
116 ref="projectElementService" />
117 <property name="scenarioService" ref="scenarioService" />
118 <property name="menu" ref="newScenarioMenu" />
121 <bean id="importDocumentAction"
122 class="org.splat.simer.ImportDocumentAction" scope="prototype"
124 <property name="stepService" ref="stepService" />
125 <property name="projectSettings" ref="projectSettings" />
126 <property name="publicationService" ref="publicationService" />
127 <property name="repositoryService" ref="repositoryService" />
128 <property name="documentService" ref="documentService" />
129 <property name="documentTypeService" ref="documentTypeService" />
132 <bean id="displayStudyStepAction"
133 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
135 <property name="studyService" ref="studyService" />
138 <!--========= Inherited from displayStudyStepAction ========= -->
140 <bean id="studyPropertiesAction"
141 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
142 parent="displayStudyStepAction">
143 <property name="documentTypeService" ref="documentTypeService" />
144 <property name="userService" ref="userService" />
147 <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
148 scope="prototype" parent="displayStudyStepAction">
151 <bean id="editScenarioPropertiesAction"
152 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
153 parent="displayStudyStepAction">
154 <property name="projectElementService"
155 ref="projectElementService" />
156 <property name="scenarioService" ref="scenarioService" />
159 <bean id="editSimulationContextAction"
160 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
161 parent="displayStudyStepAction">
162 <property name="stepService" ref="stepService" />
163 <property name="simulationContextService"
164 ref="simulationContextService" />
165 <property name="simulationContextTypeService"
166 ref="simulationContextTypeService" />
169 <bean id="editDocumentAction"
170 class="org.splat.simer.EditDocumentAction" scope="prototype"
171 parent="displayStudyStepAction">
172 <property name="stepService" ref="stepService" />
173 <property name="publicationService" ref="publicationService" />
174 <property name="repositoryService" ref="repositoryService" />
177 <bean id="editKnowledgeElementAction"
178 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
179 parent="displayStudyStepAction">
180 <property name="knowledgeElementService"
181 ref="knowledgeElementService" />
182 <property name="knowledgeElementTypeService"
183 ref="knowledgeElementTypeService" />
184 <property name="scenarioService" ref="scenarioService" />
187 <!-- End of Inherited from displayStudyStepAction -->
189 <bean id="startAction" class="org.splat.simer.StartAction"
190 scope="prototype" parent="baseAction">
191 <property name="applicationSettings" ref="applicationSettings" />
192 <property name="projectSettings" ref="projectSettings" />
194 <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
195 scope="prototype" parent="baseAction">
198 <bean id="menuAction" class="org.splat.simer.MenuAction"
202 <bean id="notYetImplementedAction"
203 class="org.splat.simer.NotYetImplementedAction" scope="prototype"
207 <bean id="searchStudyAction"
208 class="org.splat.simer.SearchStudyAction" scope="prototype"
210 <property name="projectSettings" ref="projectSettings" />
211 <property name="searchService" ref="searchService" />
212 <property name="simulationContextService"
213 ref="simulationContextService" />
214 <property name="userService" ref="userService" />
217 <bean id="searchKnowledgeAction"
218 class="org.splat.simer.SearchKnowledgeAction" scope="prototype"
220 <property name="searchService" ref="searchService" />
221 <property name="simulationContextService"
222 ref="simulationContextService" />
223 <property name="knowledgeElementTypeService"
224 ref="knowledgeElementTypeService" />
225 <property name="userService" ref="userService" />
228 <bean id="searchDocumentAction"
229 class="org.splat.simer.SearchDocumentAction" scope="prototype">
232 <bean id="displayKnowledgeAction"
233 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype"
235 <property name="knowledgeElementService"
236 ref="knowledgeElementService" />
239 <bean id="uploadAction" class="org.splat.simer.UploadAction"
240 scope="prototype" parent="baseAction">
241 <property name="repositoryService" ref="repositoryService" />
244 <bean id="uploadStudyAction"
245 class="org.splat.simer.UploadStudyAction" scope="prototype"
249 <bean id="versionDocumentAction"
250 class="org.splat.simer.VersionDocumentAction" scope="prototype"
252 <property name="projectSettings" ref="projectSettings" />
253 <property name="publicationService" ref="publicationService" />
254 <property name="stepService" ref="stepService" />
255 <property name="repositoryService" ref="repositoryService" />
258 <bean id="databaseIndexingAction"
259 class="org.splat.simer.admin.DatabaseIndexingAction" scope="prototype"
261 <property name="searchService" ref="searchService" />
264 <bean id="importUserAction"
265 class="org.splat.simer.admin.ImportUserAction" scope="prototype"
267 <property name="repositoryService" ref="repositoryService" />
268 <property name="userService" ref="userService" />
271 <bean id="simulationContextAction"
272 class="org.splat.simer.admin.SimulationContextAction"
273 scope="prototype" parent="baseAction">
274 <property name="knowledgeElementService"
275 ref="knowledgeElementService" />
276 <property name="searchService" ref="searchService" />
277 <property name="projectSettings" ref="projectSettings" />
278 <property name="simulationContextService"
279 ref="simulationContextService" />
282 <bean id="knowledgeElementAction"
283 class="org.splat.simer.admin.KnowledgeElementAction"
287 <bean id="saveDocumentAction"
288 class="org.splat.module.SaveDocumentAction" scope="prototype">
289 <property name="documentTypeService" ref="documentTypeService" />
290 <property name="publicationService" ref="publicationService" />
291 <property name="repositoryService" ref="repositoryService" />
292 <property name="scenarioService" ref="scenarioService" />
293 <property name="stepService" ref="stepService" />
294 <property name="simulationContextService"
295 ref="simulationContextService" />