Project

General

Profile

« Previous | Next » 

Revision 9797b698

Added by Cherian Mathew almost 8 years ago

clean up

View differences:

.gitattributes
326 326
eu.etaxonomy.taxeditor.cdmlib/lib/xstream-1.4.4.jar -text
327 327
eu.etaxonomy.taxeditor.cdmlib/lib/yjp-controller-api-redist-9.0.8.jar -text
328 328
eu.etaxonomy.taxeditor.cdmlib/pom.xml -text
329
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/config.properties -text
330
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/httpInvokerServiceClients.xml -text
331 329
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/localApplicationContext.xml -text
332
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remotingApplicationContext.xml -text
333
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remoting_persistence_security.xml -text
334
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remoting_services_security.xml -text
335
eu.etaxonomy.taxeditor.cdmlib/src/test/resources/eu/etaxonomy/cdm/cdm.datasources.xml -text
336 330
eu.etaxonomy.taxeditor.editor/.classpath -text
337 331
eu.etaxonomy.taxeditor.editor/.project -text
338 332
eu.etaxonomy.taxeditor.editor/META-INF/MANIFEST.MF -text
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/config.properties
1
serverName=localhost:8080
2
contextPath=remoting
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/httpInvokerServiceClients.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:context="http://www.springframework.org/schema/context"
5
	xmlns:tx="http://www.springframework.org/schema/tx"
6
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
8
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
9

  
10
	
11
   <bean id="agentService"
12
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
13
		<property name="serviceUrl">
14
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/agent.service</value>
15
		</property>
16
		<property name="serviceInterface">
17
			<value>eu.etaxonomy.cdm.api.service.IAgentService</value>
18
		</property>
19
		<property name="httpInvokerRequestExecutor">
20
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
21
		</property>
22
	</bean>
23

  
24
   <bean id="annotationService"
25
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
26
		<property name="serviceUrl">
27
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/annotation.service</value>
28
		</property>
29
		<property name="serviceInterface">
30
			<value>eu.etaxonomy.cdm.api.service.IAnnotationService</value>
31
		</property>
32
		<property name="httpInvokerRequestExecutor">
33
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
34
		</property>
35
	</bean>
36

  
37
   <bean id="auditeventService"
38
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
39
		<property name="serviceUrl">
40
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/auditevent.service</value>
41
		</property>
42
		<property name="serviceInterface">
43
			<value>eu.etaxonomy.cdm.api.service.IAuditEventService</value>
44
		</property>
45
		<property name="httpInvokerRequestExecutor">
46
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
47
		</property>
48
	</bean>
49

  
50
   <bean id="classificationService"
51
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
52
		<property name="serviceUrl">
53
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/classification.service</value>
54
		</property>
55
		<property name="serviceInterface">
56
			<value>eu.etaxonomy.cdm.api.service.IClassificationService</value>
57
		</property>
58
		<property name="httpInvokerRequestExecutor">
59
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
60
		</property>
61
	</bean>
62

  
63
   <bean id="collectionService"
64
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
65
		<property name="serviceUrl">
66
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/collection.service</value>
67
		</property>
68
		<property name="serviceInterface">
69
			<value>eu.etaxonomy.cdm.api.service.ICollectionService</value>
70
		</property>
71
		<property name="httpInvokerRequestExecutor">
72
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
73
		</property>
74
	</bean>
75

  
76
   <bean id="commonService"
77
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
78
		<property name="serviceUrl">
79
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/common.service</value>
80
		</property>
81
		<property name="serviceInterface">
82
			<value>eu.etaxonomy.cdm.api.service.ICommonService</value>
83
		</property>
84
		<property name="httpInvokerRequestExecutor">
85
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
86
		</property>
87
	</bean>
88

  
89
   <bean id="descriptionService"
90
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
91
		<property name="serviceUrl">
92
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/description.service</value>
93
		</property>
94
		<property name="serviceInterface">
95
			<value>eu.etaxonomy.cdm.api.service.IDescriptionService</value>
96
		</property>
97
		<property name="httpInvokerRequestExecutor">
98
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
99
		</property>
100
	</bean>
101
	
102
   <bean id="editGeoService"
103
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
104
		<property name="serviceUrl">
105
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/editgeo.service</value>
106
		</property>
107
		<property name="serviceInterface">
108
			<value>eu.etaxonomy.cdm.ext.geo.IEditGeoService</value>
109
		</property>
110
		<property name="httpInvokerRequestExecutor">
111
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
112
		</property>
113
	</bean>
114

  
115
   <bean id="featureNodeService"
116
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
117
		<property name="serviceUrl">
118
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/featurenode.service</value>
119
		</property>
120
		<property name="serviceInterface">
121
			<value>eu.etaxonomy.cdm.api.service.IFeatureNodeService</value>
122
		</property>
123
		<property name="httpInvokerRequestExecutor">
124
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
125
		</property>
126
	</bean>
127

  
128
   <bean id="featureTreeService"
129
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
130
		<property name="serviceUrl">
131
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/featuretree.service</value>
132
		</property>
133
		<property name="serviceInterface">
134
			<value>eu.etaxonomy.cdm.api.service.IFeatureTreeService</value>
135
		</property>
136
		<property name="httpInvokerRequestExecutor">
137
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
138
		</property>
139
	</bean>
140

  
141
   <bean id="groupService"
142
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
143
		<property name="serviceUrl">
144
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/group.service</value>
145
		</property>
146
		<property name="serviceInterface">
147
			<value>eu.etaxonomy.cdm.api.service.IGroupService</value>
148
		</property>
149
		<property name="httpInvokerRequestExecutor">
150
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
151
		</property>
152
	</bean>
153

  
154
   <bean id="identificationKeyService"
155
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
156
		<property name="serviceUrl">
157
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/identificationkey.service</value>
158
		</property>
159
		<property name="serviceInterface">
160
			<value>eu.etaxonomy.cdm.api.service.IIdentificationKeyService</value>
161
		</property>
162
		<property name="httpInvokerRequestExecutor">
163
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
164
		</property>
165
	</bean>
166

  
167
   <bean id="locationService"
168
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
169
		<property name="serviceUrl">
170
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/location.service</value>
171
		</property>
172
		<property name="serviceInterface">
173
			<value>eu.etaxonomy.cdm.api.service.ILocationService</value>
174
		</property>
175
		<property name="httpInvokerRequestExecutor">
176
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
177
		</property>
178
	</bean>
179

  
180
   <bean id="markerService"
181
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
182
		<property name="serviceUrl">
183
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/marker.service</value>
184
		</property>
185
		<property name="serviceInterface">
186
			<value>eu.etaxonomy.cdm.api.service.IMarkerService</value>
187
		</property>
188
		<property name="httpInvokerRequestExecutor">
189
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
190
		</property>
191
	</bean>
192

  
193
   <bean id="mediaService"
194
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
195
		<property name="serviceUrl">
196
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/media.service</value>
197
		</property>
198
		<property name="serviceInterface">
199
			<value>eu.etaxonomy.cdm.api.service.IMediaService</value>
200
		</property>
201
		<property name="httpInvokerRequestExecutor">
202
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
203
		</property>
204
	</bean>
205

  
206
   <bean id="nameService"
207
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
208
		<property name="serviceUrl">
209
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/name.service</value>
210
		</property>
211
		<property name="serviceInterface">
212
			<value>eu.etaxonomy.cdm.api.service.INameService</value>
213
		</property>
214
		<property name="httpInvokerRequestExecutor">
215
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
216
		</property>
217
	</bean>
218

  
219
   <bean id="occurrenceService"
220
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
221
		<property name="serviceUrl">
222
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/occurrence.service</value>
223
		</property>
224
		<property name="serviceInterface">
225
			<value>eu.etaxonomy.cdm.api.service.IOccurrenceService</value>
226
		</property>
227
		<property name="httpInvokerRequestExecutor">
228
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
229
		</property>
230
	</bean>
231

  
232
   <bean id="polytomousKeyNodeService"
233
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
234
		<property name="serviceUrl">
235
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/polytomouskeynode.service</value>
236
		</property>
237
		<property name="serviceInterface">
238
			<value>eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService</value>
239
		</property>
240
		<property name="httpInvokerRequestExecutor">
241
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
242
		</property>
243
	</bean>
244

  
245
   <bean id="polytomousKeyService"
246
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
247
		<property name="serviceUrl">
248
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/polytomouskey.service</value>
249
		</property>
250
		<property name="serviceInterface">
251
			<value>eu.etaxonomy.cdm.api.service.IPolytomousKeyService</value>
252
		</property>
253
		<property name="httpInvokerRequestExecutor">
254
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
255
		</property>
256
	</bean>
257

  
258
   <bean id="referenceService"
259
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
260
		<property name="serviceUrl">
261
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/reference.service</value>
262
		</property>
263
		<property name="serviceInterface">
264
			<value>eu.etaxonomy.cdm.api.service.IReferenceService</value>
265
		</property>
266
		<property name="httpInvokerRequestExecutor">
267
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
268
		</property>
269
	</bean>
270
	
271
<!-- 
272
   <bean id="serviceService"
273
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
274
		<property name="serviceUrl">
275
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/service.service</value>
276
		</property>
277
		<property name="serviceInterface">
278
			<value>eu.etaxonomy.cdm.api.service.IService</value>
279
		</property>
280
	</bean>
281
 -->
282
 
283
   <bean id="taxonNodeService"
284
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
285
		<property name="serviceUrl">
286
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/taxonnode.service</value>
287
		</property>
288
		<property name="serviceInterface">
289
			<value>eu.etaxonomy.cdm.api.service.ITaxonNodeService</value>
290
		</property>
291
		<property name="httpInvokerRequestExecutor">
292
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
293
		</property>
294
	</bean>
295

  
296
   <bean id="taxonService"
297
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
298
		<property name="serviceUrl">
299
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/taxon.service</value>
300
		</property>
301
		<property name="serviceInterface">
302
			<value>eu.etaxonomy.cdm.api.service.ITaxonService</value>
303
		</property>
304
		<property name="httpInvokerRequestExecutor">
305
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
306
		</property>
307
	</bean>
308

  
309
   <bean id="termService"
310
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
311
		<property name="serviceUrl">
312
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/term.service</value>
313
		</property>
314
		<property name="serviceInterface">
315
			<value>eu.etaxonomy.cdm.api.service.ITermService</value>
316
		</property>
317
		<property name="httpInvokerRequestExecutor">
318
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
319
		</property>
320
	</bean>
321

  
322
   <bean id="userService"
323
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
324
		<property name="serviceUrl">
325
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/user.service</value>
326
		</property>
327
		<property name="serviceInterface">
328
			<value>eu.etaxonomy.cdm.api.service.IUserService</value>
329
		</property>
330
		<property name="httpInvokerRequestExecutor">
331
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
332
		</property>
333
	</bean>
334

  
335
   <bean id="vocabularyService"
336
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
337
		<property name="serviceUrl">
338
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/vocabulary.service</value>
339
		</property>
340
		<property name="serviceInterface">
341
			<value>eu.etaxonomy.cdm.api.service.IVocabularyService</value>
342
		</property>
343
		<property name="httpInvokerRequestExecutor">
344
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
345
		</property>
346
	</bean>
347

  
348
   <bean id="workingSetService"
349
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
350
		<property name="serviceUrl">
351
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/workingset.service</value>
352
		</property>
353
		<property name="serviceInterface">
354
			<value>eu.etaxonomy.cdm.api.service.IWorkingSetService</value>
355
		</property>
356
		<property name="httpInvokerRequestExecutor">
357
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
358
		</property>
359
	</bean>
360
	
361
   <bean id="grantedAuthorityService"
362
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
363
		<property name="serviceUrl">
364
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/grantedauthority.service</value>
365
		</property>
366
		<property name="serviceInterface">
367
			<value>eu.etaxonomy.cdm.api.service.IGrantedAuthorityService</value>
368
		</property>
369
		<property name="httpInvokerRequestExecutor">
370
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
371
		</property>
372
	</bean>
373
	
374
   <bean id="databaseService"
375
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
376
		<property name="serviceUrl">
377
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/database.service</value>
378
		</property>
379
		<property name="serviceInterface">
380
			<value>eu.etaxonomy.cdm.api.service.IDatabaseService</value>
381
		</property>
382
		<property name="httpInvokerRequestExecutor">
383
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
384
		</property>
385
	</bean>
386
	
387
   <bean id="lsidAuthorityService"
388
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
389
		<property name="serviceUrl">
390
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsidauthoruty.service</value>
391
		</property>
392
		<property name="serviceInterface">
393
			<value>eu.etaxonomy.cdm.api.service.lsid.LSIDAuthorityService</value>
394
		</property>
395
		<property name="httpInvokerRequestExecutor">
396
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
397
		</property>
398
	</bean>
399
	
400
   <bean id="lsidMetadataService"
401
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
402
		<property name="serviceUrl">
403
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsidmetadata.service</value>
404
		</property>
405
		<property name="serviceInterface">
406
			<value>eu.etaxonomy.cdm.api.service.lsid.LSIDMetadataService</value>
407
		</property>
408
		<property name="httpInvokerRequestExecutor">
409
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
410
		</property>
411
	</bean>
412
	
413
   <bean id="lsiDataService"
414
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
415
		<property name="serviceUrl">
416
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsiddata.service</value>
417
		</property>
418
		<property name="serviceInterface">
419
			<value>eu.etaxonomy.cdm.api.service.lsid.LSIDDataService</value>
420
		</property>
421
		<property name="httpInvokerRequestExecutor">
422
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
423
		</property>
424
	</bean>
425

  
426
	<bean id="providerManager"
427
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
428
		<property name="serviceUrl">
429
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/authenticationManager.service</value>
430
		</property>
431
		<property name="serviceInterface">
432
			<value>org.springframework.security.authentication.AuthenticationManager</value>
433
		</property>
434
		<property name="httpInvokerRequestExecutor">
435
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
436
		</property>
437
	</bean>
438
	
439
	<bean id="primerService"
440
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
441
		<property name="serviceUrl">
442
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/primer.service</value>
443
		</property>
444
		<property name="serviceInterface">
445
			<value>eu.etaxonomy.cdm.api.service.molecular.IPrimerService</value>
446
		</property>
447
		<property name="httpInvokerRequestExecutor">
448
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
449
		</property>
450
	</bean>
451
	
452
	<bean id="amplificationService"
453
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
454
		<property name="serviceUrl">
455
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/amplification.service</value>
456
		</property>
457
		<property name="serviceInterface">
458
			<value>eu.etaxonomy.cdm.api.service.molecular.IAmplificationService</value>
459
		</property>
460
		<property name="httpInvokerRequestExecutor">
461
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
462
		</property>
463
	</bean>
464
	
465
	<bean id="sequenceService"
466
		class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
467
		<property name="serviceUrl">
468
			<value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/sequence.service</value>
469
		</property>
470
		<property name="serviceInterface">
471
			<value>eu.etaxonomy.cdm.api.service.molecular.ISequenceService</value>
472
		</property>
473
		<property name="httpInvokerRequestExecutor">
474
			<bean class="org.springframework.security.remoting.httpinvoker.AuthenticationSimpleHttpInvokerRequestExecutor" />
475
		</property>
476
	</bean>
477

  
478

  
479

  
480
</beans>
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/localApplicationContext.xml
27 27
    <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.remote\.controller\..*Portal.*" /> 
28 28
  </context:component-scan>
29 29
  
30
  <context:component-scan base-package="eu/etaxonomy/taxeditor/remoting/session/mock" />
30 31

  
31 32
</beans>
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remotingApplicationContext.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:context="http://www.springframework.org/schema/context"
5
	xmlns:tx="http://www.springframework.org/schema/tx"
6
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
8
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
9
	
10
	
11
    <!--  <bean id="remoteTermInitializer" class="eu.etaxonomy.cdm.remote.service.RemoteTermInitializer"/>-->
12
        
13
	<context:annotation-config/>
14
    
15
    <import resource="classpath:/eu/etaxonomy/cdm/httpInvokerServiceClients.xml"/>
16
    
17
    <bean id="cdmApplicationRemoteConfiguration" class="eu.etaxonomy.cdm.api.application.CdmApplicationRemoteConfiguration"/>    
18
    
19
	<import resource="classpath:/eu/etaxonomy/cdm/remoting_services_security.xml"/> 	
20
	
21
	<bean id="cdmTermCacher" class="eu.etaxonomy.cdm.api.cache.CdmTermCacher"/>
22
	
23
	
24
	<!-- EditGeoService was moved to ext. Therefore it will not be found by the default component scan.
25
	We added it here because the Editor needs it. However, this is only a temporary solution.
26
	In the future we want to pass in an application context with the editor. -->
27

  
28

  
29
	<!-- <bean id="conversationHolder" class="eu.etaxonomy.cdm.api.conversation.ConversationHolder" scope="prototype"/> -->
30

  
31
	<!-- TODO move to io -->
32
<!-- 
33
	<context:component-scan base-package="eu/etaxonomy/cdm/io">
34
		<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
35
	</context:component-scan>
36
 -->
37
	<!-- enable the configuration of transactional behavior based on annotations -->
38
	<!-- <tx:annotation-driven transaction-manager="transactionManager"/> -->
39

  
40
</beans>
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remoting_persistence_security.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" xmlns:context="http://www.springframework.org/schema/context"
4
  xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
5
  xsi:schemaLocation="http://www.springframework.org/schema/beans
6
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
7
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
8
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
9
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
10
    ">
11

  
12

  
13
    <!--
14
      ============================== SECURITY ==============================
15
    -->
16
    <bean id="accessDecisionManager" class="eu.etaxonomy.cdm.persistence.hibernate.permission.UnanimousBasedUnrevokable">
17
        <property name="decisionVoters">
18
            <list>
19
                <bean class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.GrantAlwaysVoter" />
20
                <bean class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.TaxonNodeVoter" />
21
                <bean class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.TaxonBaseVoter" />
22
                <bean class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.DescriptionBaseVoter" />
23
                <bean class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.DescriptionElementVoter" />
24
            </list>
25
        </property>
26
    </bean>
27

  
28
    <!--
29
        CdmPermissionEvaluator.hasPermissions() evaluates the CdmPermissions like TAXONNODE.UPDATE{20c8f083-5870-4cbd-bf56-c5b2b98ab6a7}
30
    -->
31
    <bean id="cdmPermissionEvaluator" class="eu.etaxonomy.cdm.persistence.hibernate.permission.CdmPermissionEvaluator">
32
        <property name="accessDecisionManager" ref="accessDecisionManager" />
33
    </bean>
34

  
35
    <!-- The CdmSecurityHibernateInterceptor checks onSave() and on flushDirty() if the currently authenticated principal or token  has
36
    sufficient permissions on the entity to be persisted -->
37
    <bean id="securityHibernateInterceptor" class="eu.etaxonomy.cdm.persistence.hibernate.CdmSecurityHibernateInterceptor">
38
        <property name="permissionEvaluator" ref="cdmPermissionEvaluator" />
39
    </bean>
40

  
41
</beans>
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remoting_services_security.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:context="http://www.springframework.org/schema/context"
5
  xmlns:security="http://www.springframework.org/schema/security"
6
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
7
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
8
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
9
    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd"
10
    >
11

  
12
    <import resource="classpath:/eu/etaxonomy/cdm/remoting_persistence_security.xml"/>
13
    <!--
14
        ======================================================================
15
          security specific configuration
16
        ======================================================================
17
     -->
18
    <security:global-method-security pre-post-annotations="enabled" run-as-manager-ref="runAsManager" >
19
        <security:expression-handler ref="expressionHandler" />
20
    </security:global-method-security>
21

  
22
    <!--
23
        To use "hasPermission()" in the Spring EL method annotations like @PreAuthorize we explicitly configure the permissionEvaluator
24
        the cdmPermissionEvaluator is already defined in the persistence security context
25
    -->
26
    <bean id="expressionHandler" class="org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler">
27
        <property name="permissionEvaluator" ref="cdmPermissionEvaluator" />
28
    </bean>
29

  
30
    <bean id="authenticationManager" class="org.springframework.security.authentication.ProviderManager">
31
        <property name="providers">
32
            <list>
33
                <ref local="daoAuthenticationProvider"/>
34
            </list>
35
        </property>
36
    </bean>
37

  
38
    <bean id="daoAuthenticationProvider" class="org.springframework.security.authentication.dao.DaoAuthenticationProvider">
39
        <property name="userDetailsService" ref="userService"/>
40
        <property name="saltSource" ref="saltSource"/>
41
        <property name="passwordEncoder" ref="passwordEncoder"/>
42
    </bean>
43

  
44
    <bean id="passwordEncoder" class="org.springframework.security.authentication.encoding.Md5PasswordEncoder"/>
45

  
46
    <bean id="saltSource" class="org.springframework.security.authentication.dao.ReflectionSaltSource">
47
        <property name="userPropertyToUse" value="getUsername"/>
48
    </bean>
49

  
50
    <!--
51
        Run-As Authentication Replacement for system operations
52
        as e.g. performed by the eu.etaxonomy.cdm.api.application.FirstDataInserter
53

  
54
        the key must match FirstDataInserter.RUN_AS_KEY
55
     -->
56
    <bean id="runAsManager"
57
        class="org.springframework.security.access.intercept.RunAsManagerImpl">
58
      <property name="key" value="TtlCx3pgKC4l"/>
59
    </bean>
60

  
61

  
62
</beans>
eu.etaxonomy.taxeditor.cdmlib/src/test/resources/eu/etaxonomy/cdm/cdm.datasources.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:context="http://www.springframework.org/schema/context"
5
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
6
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7
    http://www.springframework.org/schema/context
8
    http://www.springframework.org/schema/context/spring-context-2.5.xsd">
9

  
10
  	<bean id="defaultRemoteSource">
11
        <property name="server" value="127.0.0.1"/>
12
        <property name="port" value="8080"/>
13
        <property name="contextPath" value=""/>
14
    </bean>	    
15
    
16
    <bean id="incompleteRemoteSource">
17
        <property name="server" value="127.0.0.1"/>
18
        <property name="contextPath" value=""/>
19
    </bean>	  
20
	
21
</beans>

Also available in: Unified diff