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"
|
5
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
6
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
|
7
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
|
8
|
|
9
|
<import resource="classpath:/eu/etaxonomy/cdm/httpInvokerServiceClients.xml" />
|
10
|
|
11
|
<bean id="cdmEntitySessionManager"
|
12
|
class="eu.etaxonomy.taxeditor.session.CdmEntitySessionManager" />
|
13
|
|
14
|
<bean id="cdmApplicationRemoteConfiguration"
|
15
|
class="eu.etaxonomy.cdm.api.application.CdmApplicationRemoteConfiguration" />
|
16
|
|
17
|
<bean id="cdmServiceRequestExecutor"
|
18
|
class="eu.etaxonomy.taxeditor.service.CdmServiceRequestExecutor" />
|
19
|
|
20
|
<bean id="cachedCommonService"
|
21
|
class="eu.etaxonomy.taxeditor.service.CachedCommonServiceImpl" />
|
22
|
|
23
|
<bean id="defaultExport"
|
24
|
class="eu.etaxonomy.cdm.io.common.CdmApplicationAwareDefaultExport" />
|
25
|
|
26
|
<bean id="jaxbExport"
|
27
|
class="eu.etaxonomy.cdm.io.jaxb.JaxbExport" />
|
28
|
|
29
|
<bean id="accessDecisionManager"
|
30
|
class="eu.etaxonomy.cdm.persistence.hibernate.permission.UnanimousBasedUnrevokable" >
|
31
|
|
32
|
<property name="decisionVoters">
|
33
|
<list>
|
34
|
<bean
|
35
|
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.GrantAlwaysVoter" />
|
36
|
<bean
|
37
|
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.TaxonNodeVoter" />
|
38
|
<bean
|
39
|
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.TaxonBaseVoter" />
|
40
|
<bean
|
41
|
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.DescriptionBaseVoter" />
|
42
|
<bean
|
43
|
class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.DescriptionElementVoter" />
|
44
|
</list>
|
45
|
</property>
|
46
|
</bean>
|
47
|
|
48
|
<!-- CdmPermissionEvaluator.hasPermissions() evaluates the CdmPermissions
|
49
|
like TAXONNODE.UPDATE{20c8f083-5870-4cbd-bf56-c5b2b98ab6a7} -->
|
50
|
<bean id="cdmPermissionEvaluator"
|
51
|
class="eu.etaxonomy.cdm.persistence.hibernate.permission.CdmPermissionEvaluator">
|
52
|
<property name="accessDecisionManager" ref="accessDecisionManager" />
|
53
|
</bean>
|
54
|
|
55
|
<bean id="authenticationManager"
|
56
|
class="org.springframework.security.authentication.ProviderManager">
|
57
|
<property name="providers">
|
58
|
<list>
|
59
|
<ref local="daoAuthenticationProvider" />
|
60
|
</list>
|
61
|
</property>
|
62
|
</bean>
|
63
|
|
64
|
<bean id="daoAuthenticationProvider"
|
65
|
class="org.springframework.security.authentication.dao.DaoAuthenticationProvider">
|
66
|
<property name="userDetailsService" ref="userService" />
|
67
|
<property name="saltSource" ref="saltSource" />
|
68
|
<property name="passwordEncoder" ref="passwordEncoder" />
|
69
|
</bean>
|
70
|
|
71
|
<bean id="passwordEncoder"
|
72
|
class="org.springframework.security.authentication.encoding.Md5PasswordEncoder" />
|
73
|
|
74
|
<bean id="saltSource"
|
75
|
class="org.springframework.security.authentication.dao.ReflectionSaltSource">
|
76
|
<property name="userPropertyToUse" value="getUsername" />
|
77
|
</bean>
|
78
|
|
79
|
</beans>
|