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"
43 class="org.splat.simer.MenuBarSettings" scope="session">
46 <bean id="slidMenu" scope="session" abstract="true">
47 <property name="projectElementService"
48 ref="projectElementService" />
49 <property name="scenarioService" ref="scenarioService" />
52 <bean id="studyMenu" class="org.splat.simer.StudyMenu"
53 scope="session" parent="slidMenu" />
55 <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
56 scope="session" parent="slidMenu" />
58 <bean id="openObject" abstract="true"
59 class="org.splat.simer.OpenObject" scope="session">
60 <property name="projectElementService"
61 ref="projectElementService" />
62 <property name="projectSettings" ref="projectSettings" />
63 <property name="knowledgeElementTypeService"
64 ref="knowledgeElementTypeService" />
67 <bean id="openStudy" class="org.splat.simer.OpenStudy"
68 parent="openObject" scope="session">
69 <property name="projectElementService"
70 ref="projectElementService" />
71 <property name="publicationService" ref="publicationService" />
72 <property name="studyService" ref="studyService" />
73 <property name="stepService" ref="stepService" />
74 <property name="repositoryService" ref="repositoryService" />
75 <property name="menu" ref="studyMenu" />
76 <property name="documentTypeService" ref="documentTypeService" />
77 <property name="documentService" ref="documentService" />
80 <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
81 parent="openObject" scope="session">
84 <bean id="baseAction" class="org.splat.simer.Action"
85 scope="prototype" abstract="true">
86 <property name="openStudy" ref="openStudy" />
87 <property name="openKnowledge" ref="openKnowledge" />
88 <property name="menuBarSettings" ref="menuBarSettings" />
91 <!--========= Inherited from baseAction ========= -->
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" />
100 <bean id="newScenarioAction"
101 class="org.splat.simer.NewScenarioAction" parent="baseAction"
103 <property name="projectElementService"
104 ref="projectElementService" />
105 <property name="scenarioService" ref="scenarioService" />
106 <property name="menu" ref="newScenarioMenu" />
109 <bean id="importDocumentAction"
110 class="org.splat.simer.ImportDocumentAction" scope="prototype"
112 <property name="stepService" ref="stepService" />
113 <property name="projectSettings" ref="projectSettings" />
114 <property name="publicationService" ref="publicationService" />
115 <property name="repositoryService" ref="repositoryService" />
116 <property name="documentService" ref="documentService" />
117 <property name="documentTypeService" ref="documentTypeService" />
120 <bean id="displayStudyStepAction"
121 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
123 <property name="studyService" ref="studyService" />
126 <!--========= Inherited from displayStudyStepAction ========= -->
128 <bean id="studyPropertiesAction"
129 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
130 parent="displayStudyStepAction">
131 <property name="documentTypeService" ref="documentTypeService" />
132 <property name="userService" ref="userService" />
135 <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
136 scope="prototype" parent="displayStudyStepAction">
139 <bean id="editScenarioPropertiesAction"
140 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
141 parent="displayStudyStepAction">
142 <property name="projectElementService"
143 ref="projectElementService" />
144 <property name="scenarioService" ref="scenarioService" />
147 <bean id="editSimulationContextAction"
148 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
149 parent="displayStudyStepAction">
150 <property name="stepService" ref="stepService" />
151 <property name="simulationContextService"
152 ref="simulationContextService" />
153 <property name="simulationContextTypeService"
154 ref="simulationContextTypeService" />
157 <bean id="editDocumentAction"
158 class="org.splat.simer.EditDocumentAction" scope="prototype"
159 parent="displayStudyStepAction">
160 <property name="stepService" ref="stepService" />
161 <property name="publicationService" ref="publicationService" />
162 <property name="repositoryService" ref="repositoryService" />
165 <bean id="editKnowledgeElementAction"
166 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
167 parent="displayStudyStepAction">
168 <property name="knowledgeElementService"
169 ref="knowledgeElementService" />
170 <property name="knowledgeElementTypeService"
171 ref="knowledgeElementTypeService" />
172 <property name="scenarioService" ref="scenarioService" />
175 <!-- End of Inherited from displayStudyStepAction -->
177 <bean id="startAction" class="org.splat.simer.StartAction"
178 scope="prototype" parent ="baseAction">
179 <property name="applicationSettings" ref="applicationSettings" />
180 <property name="projectSettings" ref="projectSettings" />
182 <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
183 scope="prototype" parent ="baseAction">
186 <bean id="menuAction" class="org.splat.simer.MenuAction"
190 <bean id="notYetImplementedAction"
191 class="org.splat.simer.NotYetImplementedAction"
192 scope="prototype" parent ="baseAction">
195 <bean id="searchStudyAction"
196 class="org.splat.simer.SearchStudyAction"
197 scope="prototype" parent ="baseAction">
198 <property name="projectSettings" ref="projectSettings" />
199 <property name="searchService" ref="searchService" />
200 <property name="simulationContextService"
201 ref="simulationContextService" />
202 <property name="userService" ref="userService" />
205 <bean id="searchKnowledgeAction"
206 class="org.splat.simer.SearchKnowledgeAction"
207 scope="prototype" parent ="baseAction">
208 <property name="searchService" ref="searchService" />
209 <property name="simulationContextService"
210 ref="simulationContextService" />
211 <property name="knowledgeElementTypeService"
212 ref="knowledgeElementTypeService" />
213 <property name="userService" ref="userService" />
216 <bean id="searchDocumentAction"
217 class="org.splat.simer.SearchDocumentAction" scope="prototype">
220 <bean id="displayKnowledgeAction"
221 class="org.splat.simer.DisplayKnowledgeAction"
222 scope="prototype" parent ="baseAction">
223 <property name="knowledgeElementService"
224 ref="knowledgeElementService" />
227 <bean id="uploadAction" class="org.splat.simer.UploadAction"
228 scope="prototype" parent ="baseAction">
229 <property name="repositoryService" ref="repositoryService" />
232 <bean id="uploadStudyAction" class="org.splat.simer.UploadStudyAction"
233 scope="prototype" parent ="baseAction">
236 <bean id="versionDocumentAction"
237 class="org.splat.simer.VersionDocumentAction"
238 scope="prototype" parent ="baseAction">
239 <property name="projectSettings" ref="projectSettings" />
240 <property name="publicationService" ref="publicationService" />
241 <property name="stepService" ref="stepService" />
242 <property name="repositoryService" ref="repositoryService" />
245 <bean id="databaseIndexingAction"
246 class="org.splat.simer.admin.DatabaseIndexingAction"
247 scope="prototype" parent ="baseAction">
248 <property name="searchService" ref="searchService" />
251 <bean id="importUserAction"
252 class="org.splat.simer.admin.ImportUserAction"
253 scope="prototype" parent="baseAction">
254 <property name="repositoryService" ref="repositoryService" />
255 <property name="userService" ref="userService" />
258 <bean id="simulationContextAction"
259 class="org.splat.simer.admin.SimulationContextAction"
261 <property name="knowledgeElementService"
262 ref="knowledgeElementService" />
263 <property name="searchService" ref="searchService" />
264 <property name="projectSettings" ref="projectSettings" />
265 <property name="simulationContextService"
266 ref="simulationContextService" />
269 <bean id="knowledgeElementAction"
270 class="org.splat.simer.admin.KnowledgeElementAction"
274 <bean id="saveDocumentAction"
275 class="org.splat.module.SaveDocumentAction" scope="prototype">
276 <property name="documentTypeService" ref="documentTypeService" />
277 <property name="publicationService" ref="publicationService" />
278 <property name="repositoryService" ref="repositoryService" />
279 <property name="scenarioService" ref="scenarioService" />
280 <property name="stepService" ref="stepService" />
281 <property name="simulationContextService"
282 ref="simulationContextService" />