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">
38 <property name="projectSettings" ref="projectSettings" />
39 <property name="documentTypeService" ref="documentTypeService" />
42 <bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
45 <bean id="slidMenu" scope="session" abstract="true">
46 <property name="projectElementService"
47 ref="projectElementService" />
48 <property name="scenarioService" ref="scenarioService" />
51 <bean id="studyMenu" class="org.splat.simer.StudyMenu"
52 scope="session" parent="slidMenu" />
54 <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
55 scope="session" parent="slidMenu" />
57 <bean id="openObject" abstract="true"
58 class="org.splat.simer.OpenObject" scope="session">
59 <property name="projectElementService"
60 ref="projectElementService" />
61 <property name="projectSettings" ref="projectSettings" />
62 <property name="knowledgeElementTypeService"
63 ref="knowledgeElementTypeService" />
66 <bean id="openStudy" class="org.splat.simer.OpenStudy"
67 parent="openObject" scope="session">
68 <property name="projectElementService"
69 ref="projectElementService" />
70 <property name="publicationService" ref="publicationService" />
71 <property name="studyService" ref="studyService" />
72 <property name="stepService" ref="stepService" />
73 <property name="repositoryService" ref="repositoryService" />
74 <property name="menu" ref="studyMenu" />
75 <property name="documentTypeService" ref="documentTypeService" />
78 <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
79 parent="openObject" scope="session">
82 <bean id="baseAction" class="org.splat.simer.Action"
83 scope="prototype" abstract="true">
84 <property name="openStudy" ref="openStudy" />
85 <property name="openKnowledge" ref="openKnowledge" />
88 <!--========= Inherited from baseAction =========-->
90 <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
91 parent="baseAction" scope="prototype">
92 <property name="simulationContextService"
93 ref="simulationContextService" />
94 <property name="studyService" ref="studyService" />
97 <bean id="newScenarioAction"
98 class="org.splat.simer.NewScenarioAction" parent="baseAction"
100 <property name="projectElementService"
101 ref="projectElementService" />
102 <property name="scenarioService" ref="scenarioService" />
103 <property name="menu" ref="newScenarioMenu" />
106 <bean id="importDocumentAction"
107 class="org.splat.simer.ImportDocumentAction" scope="prototype"
109 <property name="stepService" ref="stepService" />
110 <property name="projectSettings" ref="projectSettings" />
111 <property name="publicationService" ref="publicationService" />
112 <property name="repositoryService" ref="repositoryService" />
113 <property name="documentTypeService" ref="documentTypeService" />
116 <bean id="displayStudyStepAction"
117 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
119 <property name="studyService" ref="studyService" />
122 <!--========= Inherited from displayStudyStepAction =========-->
124 <bean id="studyPropertiesAction"
125 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
126 parent="displayStudyStepAction">
127 <property name="documentTypeService" ref="documentTypeService" />
130 <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
131 scope="prototype" parent="displayStudyStepAction">
134 <bean id="editScenarioPropertiesAction"
135 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
136 parent="displayStudyStepAction">
137 <property name="projectElementService"
138 ref="projectElementService" />
139 <property name="scenarioService" ref="scenarioService" />
142 <bean id="editSimulationContextAction"
143 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
144 parent="displayStudyStepAction">
145 <property name="stepService" ref="stepService" />
146 <property name="simulationContextService"
147 ref="simulationContextService" />
150 <bean id="editDocumentAction"
151 class="org.splat.simer.EditDocumentAction" scope="prototype"
152 parent="displayStudyStepAction">
153 <property name="stepService" ref="stepService" />
154 <property name="publicationService" ref="publicationService" />
155 <property name="repositoryService" ref="repositoryService" />
158 <bean id="editKnowledgeElementAction"
159 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
160 parent="displayStudyStepAction">
161 <property name="knowledgeElementService"
162 ref="knowledgeElementService" />
163 <property name="knowledgeElementTypeService"
164 ref="knowledgeElementTypeService" />
165 <property name="scenarioService" ref="scenarioService" />
168 <!-- End of Inherited from displayStudyStepAction -->
170 <bean id="startAction" class="org.splat.simer.StartAction"
172 <property name="applicationSettings" ref="applicationSettings" />
173 <property name="projectSettings" ref="projectSettings" />
175 <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
179 <bean id="menuAction" class="org.splat.simer.MenuAction"
183 <bean id="notYetImplementedAction"
184 class="org.splat.simer.NotYetImplementedAction" scope="prototype">
187 <bean id="searchStudyAction"
188 class="org.splat.simer.SearchStudyAction" scope="prototype">
189 <property name="projectSettings" ref="projectSettings" />
190 <property name="searchService" ref="searchService" />
191 <property name="simulationContextService"
192 ref="simulationContextService" />
195 <bean id="searchKnowledgeAction"
196 class="org.splat.simer.SearchKnowledgeAction" scope="prototype">
197 <property name="searchService" ref="searchService" />
198 <property name="simulationContextService"
199 ref="simulationContextService" />
200 <property name="knowledgeElementTypeService"
201 ref="knowledgeElementTypeService" />
204 <bean id="searchDocumentAction"
205 class="org.splat.simer.SearchDocumentAction" scope="prototype">
208 <bean id="displayKnowledgeAction"
209 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
210 <property name="knowledgeElementService"
211 ref="knowledgeElementService" />
214 <bean id="uploadAction" class="org.splat.simer.UploadAction"
216 <property name="repositoryService" ref="repositoryService" />
219 <bean id="versionDocumentAction"
220 class="org.splat.simer.VersionDocumentAction" scope="prototype">
221 <property name="projectSettings" ref="projectSettings" />
222 <property name="publicationService" ref="publicationService" />
223 <property name="stepService" ref="stepService" />
224 <property name="repositoryService" ref="repositoryService" />
227 <bean id="databaseIndexingAction"
228 class="org.splat.simer.admin.DatabaseIndexingAction"
230 <property name="studyService" ref="studyService" />
231 <property name="importedStudy" ref="importedStudy" />
232 <property name="searchService" ref="searchService" />
235 <bean id="importUserAction"
236 class="org.splat.simer.admin.ImportUserAction" scope="prototype">
237 <property name="repositoryService" ref="repositoryService" />
240 <bean id="simulationContextAction"
241 class="org.splat.simer.admin.SimulationContextAction"
243 <property name="knowledgeElementService"
244 ref="knowledgeElementService" />
245 <property name="searchService" ref="searchService" />
246 <property name="projectSettings" ref="projectSettings" />
247 <property name="simulationContextService"
248 ref="simulationContextService" />
251 <bean id="knowledgeElementAction"
252 class="org.splat.simer.admin.KnowledgeElementAction"
256 <bean id="saveDocumentAction"
257 class="org.splat.module.SaveDocumentAction" scope="prototype">
258 <property name="documentTypeService" ref="documentTypeService" />
259 <property name="publicationService" ref="publicationService" />
260 <property name="repositoryService" ref="repositoryService" />
261 <property name="scenarioService" ref="scenarioService" />
262 <property name="stepService" ref="stepService" />
263 <property name="simulationContextService"
264 ref="simulationContextService" />