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="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" />
155 <bean id="editDocumentAction"
156 class="org.splat.simer.EditDocumentAction" scope="prototype"
157 parent="displayStudyStepAction">
158 <property name="stepService" ref="stepService" />
159 <property name="publicationService" ref="publicationService" />
160 <property name="repositoryService" ref="repositoryService" />
163 <bean id="editKnowledgeElementAction"
164 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
165 parent="displayStudyStepAction">
166 <property name="knowledgeElementService"
167 ref="knowledgeElementService" />
168 <property name="knowledgeElementTypeService"
169 ref="knowledgeElementTypeService" />
170 <property name="scenarioService" ref="scenarioService" />
173 <!-- End of Inherited from displayStudyStepAction -->
175 <bean id="startAction" class="org.splat.simer.StartAction"
177 <property name="applicationSettings" ref="applicationSettings" />
178 <property name="projectSettings" ref="projectSettings" />
180 <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
184 <bean id="menuAction" class="org.splat.simer.MenuAction"
188 <bean id="notYetImplementedAction"
189 class="org.splat.simer.NotYetImplementedAction" scope="prototype">
192 <bean id="searchStudyAction"
193 class="org.splat.simer.SearchStudyAction" scope="prototype">
194 <property name="projectSettings" ref="projectSettings" />
195 <property name="searchService" ref="searchService" />
196 <property name="simulationContextService"
197 ref="simulationContextService" />
198 <property name="userService" ref="userService" />
201 <bean id="searchKnowledgeAction"
202 class="org.splat.simer.SearchKnowledgeAction" scope="prototype">
203 <property name="searchService" ref="searchService" />
204 <property name="simulationContextService"
205 ref="simulationContextService" />
206 <property name="knowledgeElementTypeService"
207 ref="knowledgeElementTypeService" />
208 <property name="userService" ref="userService" />
211 <bean id="searchDocumentAction"
212 class="org.splat.simer.SearchDocumentAction" scope="prototype">
215 <bean id="displayKnowledgeAction"
216 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
217 <property name="knowledgeElementService"
218 ref="knowledgeElementService" />
221 <bean id="uploadAction" class="org.splat.simer.UploadAction"
223 <property name="repositoryService" ref="repositoryService" />
226 <bean id="versionDocumentAction"
227 class="org.splat.simer.VersionDocumentAction" scope="prototype">
228 <property name="projectSettings" ref="projectSettings" />
229 <property name="publicationService" ref="publicationService" />
230 <property name="stepService" ref="stepService" />
231 <property name="repositoryService" ref="repositoryService" />
234 <bean id="databaseIndexingAction"
235 class="org.splat.simer.admin.DatabaseIndexingAction"
237 <property name="importedStudy" ref="importedStudy" />
238 <property name="searchService" ref="searchService" />
241 <bean id="importUserAction"
242 class="org.splat.simer.admin.ImportUserAction" scope="prototype">
243 <property name="repositoryService" ref="repositoryService" />
244 <property name="userService" ref="userService" />
247 <bean id="simulationContextAction"
248 class="org.splat.simer.admin.SimulationContextAction"
250 <property name="knowledgeElementService"
251 ref="knowledgeElementService" />
252 <property name="searchService" ref="searchService" />
253 <property name="projectSettings" ref="projectSettings" />
254 <property name="simulationContextService"
255 ref="simulationContextService" />
258 <bean id="knowledgeElementAction"
259 class="org.splat.simer.admin.KnowledgeElementAction"
263 <bean id="saveDocumentAction"
264 class="org.splat.module.SaveDocumentAction" scope="prototype">
265 <property name="documentTypeService" ref="documentTypeService" />
266 <property name="publicationService" ref="publicationService" />
267 <property name="repositoryService" ref="repositoryService" />
268 <property name="scenarioService" ref="scenarioService" />
269 <property name="stepService" ref="stepService" />
270 <property name="simulationContextService"
271 ref="simulationContextService" />