Project

General

Profile

Download (3.16 KB) Statistics
| Branch: | Tag: | Revision:
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
  
18
  <bean id="cdmServiceRequestExecutor" 
19
    class="eu.etaxonomy.taxeditor.service.CdmServiceRequestExecutor" />
20
    
21
  <bean id="cachedCommonService" 
22
    class="eu.etaxonomy.taxeditor.service.CachedCommonServiceImpl" />
23
  
24
  <bean id="accessDecisionManager" 
25
    class="eu.etaxonomy.cdm.persistence.hibernate.permission.UnanimousBasedUnrevokable" >
26
    
27
    <property name="decisionVoters">
28
      <list>
29
        <bean
30
          class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.GrantAlwaysVoter" />
31
        <bean
32
          class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.TaxonNodeVoter" />
33
        <bean
34
          class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.TaxonBaseVoter" />
35
        <bean
36
          class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.DescriptionBaseVoter" />
37
        <bean
38
          class="eu.etaxonomy.cdm.persistence.hibernate.permission.voter.DescriptionElementVoter" />
39
      </list>
40
    </property>
41
  </bean>
42

    
43
  <!-- CdmPermissionEvaluator.hasPermissions() evaluates the CdmPermissions 
44
    like TAXONNODE.UPDATE{20c8f083-5870-4cbd-bf56-c5b2b98ab6a7} -->
45
  <bean id="cdmPermissionEvaluator" 
46
    class="eu.etaxonomy.cdm.persistence.hibernate.permission.CdmPermissionEvaluator">
47
    <property name="accessDecisionManager" ref="accessDecisionManager" />
48
  </bean>
49

    
50
  <bean id="authenticationManager"
51
    class="org.springframework.security.authentication.ProviderManager">
52
    <property name="providers">
53
      <list>
54
        <ref local="daoAuthenticationProvider" />
55
      </list>
56
    </property>
57
  </bean>
58

    
59
  <bean id="daoAuthenticationProvider" 
60
    class="org.springframework.security.authentication.dao.DaoAuthenticationProvider">
61
    <property name="userDetailsService" ref="userService" />
62
    <property name="saltSource" ref="saltSource" />
63
    <property name="passwordEncoder" ref="passwordEncoder" />
64
  </bean>
65

    
66
  <bean id="passwordEncoder" 
67
    class="org.springframework.security.authentication.encoding.Md5PasswordEncoder" />
68

    
69
  <bean id="saltSource" 
70
    class="org.springframework.security.authentication.dao.ReflectionSaltSource">
71
    <property name="userPropertyToUse" value="getUsername" />
72
  </bean>
73

    
74
</beans>
(4-4/4)