Project

General

Profile

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:cxf="http://cxf.apache.org/core"
6
       xmlns:jaxws="http://cxf.apache.org/jaxws"
7
       xmlns:p="http://http://www.springframework.org/schema/p"
8
       xmlns:template="http://dnetlib.eu/springbeans/template"
9
       xmlns:t="http://dnetlib.eu/springbeans/t"
10

    
11
       xsi:schemaLocation="
12
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
13
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
14
        http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
15
        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
16
	http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd"
17
       default-autowire="byName">
18
    <!--Un comment in order to run the tests / Comment to deploy-->
19
    <!--<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">-->
20
        <!--<property name="locations" value="classpath:eu/dnetlib/data/claims/migration/springContext-claimsDemo.properties"/>-->
21
    <!--</bean>-->
22
    <bean id="directIndexHandler" class="eu.dnetlib.data.claims.migration.handler.DirectIndexHandler">
23
        <property name="directClaimAPIUrl"  value="${services.claims.directClaimAPIUrl}"/>
24
    </bean>
25
    <bean id="fetchClaimHandler" class="eu.dnetlib.data.claims.migration.handler.FetchClaimHandler">
26
        <property name="sqlDAO" ref="sqlDao"/>
27
        <property name="queryGenerator" ref="queryGenerator"/>
28

    
29
    </bean>
30
    <bean id="claimHandler" class="eu.dnetlib.data.claims.migration.handler.ClaimHandler">
31
        <property name="sqlDAO" ref="sqlDao"/>
32
        <property name="queryGenerator" ref="queryGenerator"/>
33
        <property name="dmfContextHandler" ref="dmfContextHandler"/>
34
        <property name="projectHandler" ref="projectHandler"/>
35
        <property name="resultHandler" ref="resultHandler"/>
36
        <property name="claimValidation" ref="claimValidation"/>
37
        <property name="useProductionIndex" value="${services.claimsDemo.useProductionIndex}"/>
38
    </bean>
39
    <bean id="externalRecordHandler" class="eu.dnetlib.data.claims.migration.handler.ExternalRecordHandler">
40
        <property name="searchUtils" ref="searchUtils"/>
41
        <property name="externalRecordParser" ref="externalRecordParser"/>
42
    </bean>
43
    <bean id="dmfResultHandler" class="eu.dnetlib.data.claims.migration.handler.DMFResultHandler">
44
        <property name="sqlDAO" ref="sqlDao"/>
45
        <property name="queryGenerator" ref="queryGenerator"/>
46
        <property name="dmfParser" ref="dmfParser"/>
47
    </bean>
48
    <bean id="dmfContextHandler" class="eu.dnetlib.data.claims.migration.handler.DMFContextHandler">
49
        <property name="sqlDAO" ref="sqlDao"/>
50
        <property name="queryGenerator" ref="queryGenerator"/>
51
        <property name="dmfParser" ref="dmfParser"/>
52
    </bean>
53
    <bean id="fetchProjectHandler" class="eu.dnetlib.data.claims.migration.handler.FetchProjectHandler">
54
        <property name="sqlDAO" ref="sqlDao"/>
55
        <property name="queryGenerator" ref="queryGenerator"/>
56

    
57
    </bean>
58

    
59
    <bean id="projectHandler" class="eu.dnetlib.data.claims.migration.handler.ProjectHandler">
60
        <property name="searchUtils" ref="searchUtils"/>
61
        <property name="oafParser" ref="oafParser"/>
62
        <property name="queryGenerator" ref="queryGenerator"/>
63
        <property name="sqlDAO" ref="sqlDao"/>
64
    </bean>
65

    
66
    <bean id="fetchNotificationHandler" class="eu.dnetlib.data.claims.migration.handler.FetchNotificationHandler">
67
        <property name="sqlDAO" ref="sqlDao"/>
68
        <property name="queryGenerator" ref="queryGenerator"/>
69

    
70
    </bean>
71

    
72
    <bean id="notificationHandler" class="eu.dnetlib.data.claims.migration.handler.NotificationHandler">
73
        <property name="queryGenerator" ref="queryGenerator"/>
74
        <property name="sqlDAO" ref="sqlDao"/>
75
    </bean>
76

    
77
    <bean id="fetchContextHandler" class="eu.dnetlib.data.claims.migration.handler.FetchContextHandler">
78
        <property name="sqlDAO" ref="sqlDao"/>
79
        <property name="queryGenerator" ref="queryGenerator"/>
80

    
81
    </bean>
82

    
83
    <bean id="contextRelationHandler" class="eu.dnetlib.data.claims.migration.handler.ContextRelationHandler">
84
        <property name="sqlDAO" ref="sqlDao"/>
85
        <property name="queryGenerator" ref="queryGenerator"/>
86
        <property name="dmfParser" ref="dmfParser"/>
87
    </bean>
88
    <bean id="relationHandler" class="eu.dnetlib.data.claims.migration.handler.RelationHandler">
89
        <property name="sqlDAO" ref="sqlDao"/>
90
        <property name="queryGenerator" ref="queryGenerator"/>
91
        <property name="relationParser" ref="relationParser"/>
92
    </bean>
93
    <bean id="indexResultHandler" class="eu.dnetlib.data.claims.migration.handler.IndexResultHandler">
94
        <property name="searchUtils" ref="searchUtils"/>
95
    </bean>
96
    <bean id="resultHandler" class="eu.dnetlib.data.claims.migration.handler.ResultHandler">
97
        <property name="sqlDAO" ref="sqlDao"/>
98
        <property name="queryGenerator" ref="queryGenerator"/>
99
        <!--<property name="pathToSaveRecord" value="/home/argirok/claims_beta/"/>-->
100
        <property name="pathToSaveRecord" value="${services.claimsDemo.results.pathToSaveRecord}"/>
101

    
102
    </bean>
103
    <!-- End of Handlers -->
104
    <!--Parsers -->
105
    <bean id="oafParser" class="eu.dnetlib.data.claims.migration.parser.OafParser"></bean>
106
    <bean id="dmfParser" class="eu.dnetlib.data.claims.migration.parser.DMFParser"></bean>
107
    <bean id="relationParser" class="eu.dnetlib.data.claims.migration.parser.RelationParser"></bean>
108
    <bean id="externalRecordParser" class="eu.dnetlib.data.claims.migration.parser.ExternalRecordParser"></bean>
109
    <!-- end of Parsers -->
110
    <bean id="searchUtils" class="eu.dnetlib.data.claimsDemo.SearchUtils"></bean>
111

    
112
    <bean id="claimValidation" class="eu.dnetlib.data.claims.migration.ClaimValidation">
113
        <property name="pathToSaveReport" value="${services.claimsDemo.reports.pathToSaveReport}"/>
114
    </bean>
115

    
116
    <bean id="emailSender" class="eu.dnetlib.data.emailSender.EmailSender">
117
        <property name="fetchClaimHandler" ref="fetchClaimHandler"/>
118
        <property name="fetchProjectHandler" ref="fetchProjectHandler"/>
119
        <property name="fetchNotificationHandler" ref="fetchNotificationHandler"/>
120
        <property name="fetchContextHandler" ref="fetchContextHandler"/>
121
        <property name="openaireClaimsPage" value="${services.claims.mail.angularUrl}"/>
122
        <property name="username" value="${services.claims.mail.from}"/>
123
        <property name="password" value="${services.claims.mail.password}"/>
124
        <property name="host" value="${services.claims.mail.host}"/>
125
        <property name="port" value="${services.claims.mail.port}"/>
126
        <property name="from" value="${services.claims.mail.from}"/>
127
        <property name="specialRecipients" value="${services.claims.mail.specialRecipients}"/>
128
    </bean>
129

    
130
    <bean id="CommunityUtils" class="eu.dnetlib.data.claimsDemo.CommunityUtils">
131
        <property name="communityAPI" value="${services.claimsDemo.communityAPI}"/>
132
    </bean>
133
    
134
    <bean id="sqlStore" class="eu.dnetlib.data.claimsDemo.SqlStore" init-method="init" destroy-method="destroy">
135
        <property name="dbUser" value="${services.claimsDemo.db.username}"/>
136
        <property name="dbPassword" value="${services.claimsDemo.db.password}"/>
137
        <property name="dbDriver" value="${services.claimsDemo.db.driverClassName}"/>
138
        <property name="dbUrl" value="${services.claimsDemo.db.url}"/>
139
    </bean>
140

    
141
    <bean id="sqlDao" class="eu.dnetlib.data.claimsDemo.SqlDAO">
142
        <property name="sqlStore" ref="sqlStore"/>
143
    </bean>
144

    
145

    
146
    <bean id="queryGenerator" class="eu.dnetlib.data.claimsDemo.QueryGenerator">
147
        <property name="updateOnInsert" value="true"/>
148
    </bean>
149

    
150
    <bean id="beautySleep" class="java.lang.String">
151
        <constructor-arg type="String" value="86400"/>
152
    </bean>
153

    
154
    <bean id="targetHour" class="java.lang.String">
155
        <constructor-arg type="String" value="12"/>
156
    </bean>
157

    
158
    <bean id="targetMinute" class="java.lang.String">
159
        <constructor-arg type="String" value="00"/>
160
    </bean>
161

    
162
    <bean id="targetSecond" class="java.lang.String">
163
        <constructor-arg type="String" value="00"/>
164
    </bean>
165

    
166
    <bean id="defaultFrequencyInHours" class="java.lang.String">
167
        <constructor-arg type="String" value="24"/>
168
    </bean>
169
</beans>
(2-2/2)