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="importedStudy" class="org.splat.simer.admin.ImportedStudy"
44 <property name="searchService" ref="searchService" />
47 <bean id="slidMenu" scope="session" abstract="true">
48 <property name="projectElementService"
49 ref="projectElementService" />
50 <property name="scenarioService" ref="scenarioService" />
53 <bean id="studyMenu" class="org.splat.simer.StudyMenu"
54 scope="session" parent="slidMenu" />
56 <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
57 scope="session" parent="slidMenu" />
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" />
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" />
81 <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
82 parent="openObject" scope="session">
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" />
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" />
98 <property name="studyService" ref="studyService" />
101 <bean id="newScenarioAction"
102 class="org.splat.simer.NewScenarioAction" parent="baseAction"
104 <property name="projectElementService"
105 ref="projectElementService" />
106 <property name="scenarioService" ref="scenarioService" />
107 <property name="menu" ref="newScenarioMenu" />
110 <bean id="importDocumentAction"
111 class="org.splat.simer.ImportDocumentAction" scope="prototype"
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" />
121 <bean id="displayStudyStepAction"
122 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
124 <property name="studyService" ref="studyService" />
127 <!--========= Inherited from displayStudyStepAction ========= -->
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" />
136 <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
137 scope="prototype" parent="displayStudyStepAction">
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" />
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" />
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" />
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" />
176 <!-- End of Inherited from displayStudyStepAction -->
178 <bean id="startAction" class="org.splat.simer.StartAction"
180 <property name="applicationSettings" ref="applicationSettings" />
181 <property name="projectSettings" ref="projectSettings" />
183 <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
187 <bean id="menuAction" class="org.splat.simer.MenuAction"
191 <bean id="notYetImplementedAction"
192 class="org.splat.simer.NotYetImplementedAction" scope="prototype">
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" />
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" />
214 <bean id="searchDocumentAction"
215 class="org.splat.simer.SearchDocumentAction" scope="prototype">
218 <bean id="displayKnowledgeAction"
219 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
220 <property name="knowledgeElementService"
221 ref="knowledgeElementService" />
224 <bean id="uploadAction" class="org.splat.simer.UploadAction"
226 <property name="repositoryService" ref="repositoryService" />
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" />
237 <bean id="databaseIndexingAction"
238 class="org.splat.simer.admin.DatabaseIndexingAction"
240 <property name="importedStudy" ref="importedStudy" />
241 <property name="searchService" ref="searchService" />
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" />
250 <bean id="simulationContextAction"
251 class="org.splat.simer.admin.SimulationContextAction"
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" />
261 <bean id="knowledgeElementAction"
262 class="org.splat.simer.admin.KnowledgeElementAction"
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" />