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="titleBarSettings"
47 class="org.splat.simer.TitleBarSettings" scope="session">
50 <bean id="slidMenu" scope="session" abstract="true">
51 <property name="projectElementService"
52 ref="projectElementService" />
53 <property name="scenarioService" ref="scenarioService" />
56 <bean id="studyMenu" class="org.splat.simer.StudyMenu"
57 scope="session" parent="slidMenu" />
59 <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
60 scope="session" parent="slidMenu" />
62 <bean id="openObject" abstract="true"
63 class="org.splat.simer.OpenObject" scope="session">
64 <property name="projectElementService"
65 ref="projectElementService" />
66 <property name="projectSettings" ref="projectSettings" />
67 <property name="knowledgeElementTypeService"
68 ref="knowledgeElementTypeService" />
71 <bean id="openStudy" class="org.splat.simer.OpenStudy"
72 parent="openObject" scope="session">
73 <property name="projectElementService"
74 ref="projectElementService" />
75 <property name="publicationService" ref="publicationService" />
76 <property name="studyService" ref="studyService" />
77 <property name="stepService" ref="stepService" />
78 <property name="repositoryService" ref="repositoryService" />
79 <property name="menu" ref="studyMenu" />
80 <property name="documentTypeService" ref="documentTypeService" />
81 <property name="documentService" ref="documentService" />
84 <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
85 parent="openObject" scope="session">
88 <bean id="baseAction" class="org.splat.simer.Action"
89 scope="prototype" abstract="true">
90 <property name="openStudy" ref="openStudy" />
91 <property name="openKnowledge" ref="openKnowledge" />
92 <property name="menuBarSettings" ref="menuBarSettings" />
93 <property name="titleBarSettings" ref="titleBarSettings" />
96 <!--========= Inherited from baseAction ========= -->
98 <bean id="newStudyAction" class="org.splat.simer.NewStudyAction"
99 parent="baseAction" scope="prototype">
100 <property name="simulationContextService"
101 ref="simulationContextService" />
102 <property name="scenarioService" ref="scenarioService" />
105 <bean id="newScenarioAction"
106 class="org.splat.simer.NewScenarioAction" parent="baseAction"
108 <property name="projectElementService"
109 ref="projectElementService" />
110 <property name="scenarioService" ref="scenarioService" />
111 <property name="menu" ref="newScenarioMenu" />
114 <bean id="importDocumentAction"
115 class="org.splat.simer.ImportDocumentAction" scope="prototype"
117 <property name="stepService" ref="stepService" />
118 <property name="projectSettings" ref="projectSettings" />
119 <property name="publicationService" ref="publicationService" />
120 <property name="repositoryService" ref="repositoryService" />
121 <property name="documentService" ref="documentService" />
122 <property name="documentTypeService" ref="documentTypeService" />
125 <bean id="displayStudyStepAction"
126 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
128 <property name="studyService" ref="studyService" />
131 <!--========= Inherited from displayStudyStepAction ========= -->
133 <bean id="studyPropertiesAction"
134 class="org.splat.simer.StudyPropertiesAction" scope="prototype"
135 parent="displayStudyStepAction">
136 <property name="documentTypeService" ref="documentTypeService" />
137 <property name="userService" ref="userService" />
140 <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
141 scope="prototype" parent="displayStudyStepAction">
144 <bean id="editScenarioPropertiesAction"
145 class="org.splat.simer.EditScenarioPropertiesAction" scope="prototype"
146 parent="displayStudyStepAction">
147 <property name="projectElementService"
148 ref="projectElementService" />
149 <property name="scenarioService" ref="scenarioService" />
152 <bean id="editSimulationContextAction"
153 class="org.splat.simer.EditSimulationContextAction" scope="prototype"
154 parent="displayStudyStepAction">
155 <property name="stepService" ref="stepService" />
156 <property name="simulationContextService"
157 ref="simulationContextService" />
158 <property name="simulationContextTypeService"
159 ref="simulationContextTypeService" />
162 <bean id="editDocumentAction"
163 class="org.splat.simer.EditDocumentAction" scope="prototype"
164 parent="displayStudyStepAction">
165 <property name="stepService" ref="stepService" />
166 <property name="publicationService" ref="publicationService" />
167 <property name="repositoryService" ref="repositoryService" />
170 <bean id="editKnowledgeElementAction"
171 class="org.splat.simer.EditKnowledgeElementAction" scope="prototype"
172 parent="displayStudyStepAction">
173 <property name="knowledgeElementService"
174 ref="knowledgeElementService" />
175 <property name="knowledgeElementTypeService"
176 ref="knowledgeElementTypeService" />
177 <property name="scenarioService" ref="scenarioService" />
180 <!-- End of Inherited from displayStudyStepAction -->
182 <bean id="startAction" class="org.splat.simer.StartAction"
183 scope="prototype" parent ="baseAction">
184 <property name="applicationSettings" ref="applicationSettings" />
185 <property name="projectSettings" ref="projectSettings" />
187 <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
188 scope="prototype" parent ="baseAction">
191 <bean id="menuAction" class="org.splat.simer.MenuAction"
195 <bean id="notYetImplementedAction"
196 class="org.splat.simer.NotYetImplementedAction"
197 scope="prototype" parent ="baseAction">
200 <bean id="searchStudyAction"
201 class="org.splat.simer.SearchStudyAction"
202 scope="prototype" parent ="baseAction">
203 <property name="projectSettings" ref="projectSettings" />
204 <property name="searchService" ref="searchService" />
205 <property name="simulationContextService"
206 ref="simulationContextService" />
207 <property name="userService" ref="userService" />
210 <bean id="searchKnowledgeAction"
211 class="org.splat.simer.SearchKnowledgeAction"
212 scope="prototype" parent ="baseAction">
213 <property name="searchService" ref="searchService" />
214 <property name="simulationContextService"
215 ref="simulationContextService" />
216 <property name="knowledgeElementTypeService"
217 ref="knowledgeElementTypeService" />
218 <property name="userService" ref="userService" />
221 <bean id="searchDocumentAction"
222 class="org.splat.simer.SearchDocumentAction" scope="prototype">
225 <bean id="displayKnowledgeAction"
226 class="org.splat.simer.DisplayKnowledgeAction"
227 scope="prototype" parent ="baseAction">
228 <property name="knowledgeElementService"
229 ref="knowledgeElementService" />
232 <bean id="uploadAction" class="org.splat.simer.UploadAction"
233 scope="prototype" parent ="baseAction">
234 <property name="repositoryService" ref="repositoryService" />
237 <bean id="uploadStudyAction" class="org.splat.simer.UploadStudyAction"
238 scope="prototype" parent ="baseAction">
241 <bean id="versionDocumentAction"
242 class="org.splat.simer.VersionDocumentAction"
243 scope="prototype" parent ="baseAction">
244 <property name="projectSettings" ref="projectSettings" />
245 <property name="publicationService" ref="publicationService" />
246 <property name="stepService" ref="stepService" />
247 <property name="repositoryService" ref="repositoryService" />
250 <bean id="databaseIndexingAction"
251 class="org.splat.simer.admin.DatabaseIndexingAction"
252 scope="prototype" parent ="baseAction">
253 <property name="searchService" ref="searchService" />
256 <bean id="importUserAction"
257 class="org.splat.simer.admin.ImportUserAction"
258 scope="prototype" parent="baseAction">
259 <property name="repositoryService" ref="repositoryService" />
260 <property name="userService" ref="userService" />
263 <bean id="simulationContextAction"
264 class="org.splat.simer.admin.SimulationContextAction"
266 <property name="knowledgeElementService"
267 ref="knowledgeElementService" />
268 <property name="searchService" ref="searchService" />
269 <property name="projectSettings" ref="projectSettings" />
270 <property name="simulationContextService"
271 ref="simulationContextService" />
274 <bean id="knowledgeElementAction"
275 class="org.splat.simer.admin.KnowledgeElementAction"
279 <bean id="saveDocumentAction"
280 class="org.splat.module.SaveDocumentAction" scope="prototype">
281 <property name="documentTypeService" ref="documentTypeService" />
282 <property name="publicationService" ref="publicationService" />
283 <property name="repositoryService" ref="repositoryService" />
284 <property name="scenarioService" ref="scenarioService" />
285 <property name="stepService" ref="stepService" />
286 <property name="simulationContextService"
287 ref="simulationContextService" />