]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman/src/spring/applicationContext.xml
Salome HOME
Reindex of studies is fixed.
[tools/siman.git] / Workspace / Siman / src / spring / applicationContext.xml
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">
12
13
14         <context:property-placeholder
15                 location="classpath:siman.properties,classpath:jdbc.properties"
16                 ignore-unresolvable="true" />
17
18         <!-- configuration i18n -->
19         <bean id="i18nUtils" class="org.splat.i18n.I18nUtils">
20                 <property name="resourceBundleMessageSource"
21                         ref="messageSource" />
22         </bean>
23
24         <bean id="messageSource"
25                 class="org.springframework.context.support.ResourceBundleMessageSource">
26                 <property name="basenames">
27                         <list>
28                                 <value>application</value>
29                                 <value>log-messages</value>
30                         </list>
31                 </property>
32         </bean>
33         <!-- ref 'baseMessageSource' into Siman-common\src\spring\globalContext.xml -->
34         <!-- property name="parentMessageSource" ref="baseMessageSource"/ -->
35
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" />
40         </bean>
41
42         <bean id="importedStudy" class="org.splat.simer.admin.ImportedStudy"
43                 scope="prototype">
44                 <property name="searchService" ref="searchService" />
45         </bean>
46
47         <bean id="slidMenu" scope="session" abstract="true">
48                 <property name="projectElementService"
49                         ref="projectElementService" />
50                 <property name="scenarioService" ref="scenarioService" />
51         </bean>
52
53         <bean id="studyMenu" class="org.splat.simer.StudyMenu"
54                 scope="session" parent="slidMenu" />
55
56         <bean id="newScenarioMenu" class="org.splat.simer.NewScenarioMenu"
57                 scope="session" parent="slidMenu" />
58
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" />
66         </bean>
67
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" />
79         </bean>
80
81         <bean id="openKnowledge" class="org.splat.simer.OpenKnowledge"
82                 parent="openObject" scope="session">
83         </bean>
84
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" />
89         </bean>
90
91         <!--========= Inherited from baseAction ========= -->
92
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" />
99         </bean>
100
101         <bean id="newScenarioAction"
102                 class="org.splat.simer.NewScenarioAction" parent="baseAction"
103                 scope="prototype">
104                 <property name="projectElementService"
105                         ref="projectElementService" />
106                 <property name="scenarioService" ref="scenarioService" />
107                 <property name="menu" ref="newScenarioMenu" />
108         </bean>
109
110         <bean id="importDocumentAction"
111                 class="org.splat.simer.ImportDocumentAction" scope="prototype"
112                 parent="baseAction">
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" />
118         </bean>
119
120         <bean id="displayStudyStepAction"
121                 class="org.splat.simer.DisplayStudyStepAction" parent="baseAction"
122                 scope="prototype">
123                 <property name="studyService" ref="studyService" />
124         </bean>
125
126         <!--========= Inherited from displayStudyStepAction ========= -->
127
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" />
133         </bean>
134
135         <bean id="editStudyAction" class="org.splat.simer.EditStudyAction"
136                 scope="prototype" parent="displayStudyStepAction">
137         </bean>
138
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" />
145         </bean>
146
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         </bean>
154
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" />
161         </bean>
162
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" />
171         </bean>
172
173         <!-- End of Inherited from displayStudyStepAction -->
174
175         <bean id="startAction" class="org.splat.simer.StartAction"
176                 scope="prototype">
177                 <property name="applicationSettings" ref="applicationSettings" />
178                 <property name="projectSettings" ref="projectSettings" />
179         </bean>
180         <bean id="connectionAction" class="org.splat.simer.ConnectionAction"
181                 scope="prototype">
182         </bean>
183
184         <bean id="menuAction" class="org.splat.simer.MenuAction"
185                 scope="prototype">
186         </bean>
187
188         <bean id="notYetImplementedAction"
189                 class="org.splat.simer.NotYetImplementedAction" scope="prototype">
190         </bean>
191
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" />
199         </bean>
200
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" />
209         </bean>
210
211         <bean id="searchDocumentAction"
212                 class="org.splat.simer.SearchDocumentAction" scope="prototype">
213         </bean>
214
215         <bean id="displayKnowledgeAction"
216                 class="org.splat.simer.DisplayKnowledgeAction" scope="prototype">
217                 <property name="knowledgeElementService"
218                         ref="knowledgeElementService" />
219         </bean>
220
221         <bean id="uploadAction" class="org.splat.simer.UploadAction"
222                 scope="prototype">
223                 <property name="repositoryService" ref="repositoryService" />
224         </bean>
225
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" />
232         </bean>
233
234         <bean id="databaseIndexingAction"
235                 class="org.splat.simer.admin.DatabaseIndexingAction"
236                 scope="prototype">
237                 <property name="importedStudy" ref="importedStudy" />
238                 <property name="searchService" ref="searchService" />
239         </bean>
240
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" />
245         </bean>
246
247         <bean id="simulationContextAction"
248                 class="org.splat.simer.admin.SimulationContextAction"
249                 scope="prototype">
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" />
256         </bean>
257
258         <bean id="knowledgeElementAction"
259                 class="org.splat.simer.admin.KnowledgeElementAction"
260                 scope="prototype">
261         </bean>
262
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" />
272         </bean>
273
274 </beans>