Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	   xmlns:p="http://www.springframework.org/schema/p"
4
	   xmlns:http="http://cxf.apache.org/transports/http/configuration"
5
	   xmlns="http://www.springframework.org/schema/beans"
6
	   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
7

    
8

    
9
                                    http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
10

    
11
	<bean id="oaiCollectorPlugin" class="eu.dnetlib.data.collector.plugins.oai.OaiCollectorPlugin"
12
		p:oaiIteratorFactory-ref="oaiIteratorFactory">
13
		<property name="protocolDescriptor">
14
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="OAI">
15
				<property name="params">
16
					<list>
17
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
18
							p:name="format" />
19
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
20
							p:name="set" p:populateFunction-ref="listOaiSetsFunction" p:type="LIST" p:optional="true" />					
21
					</list>
22
				</property>			
23
			</bean>
24
		</property>
25
	</bean>
26
		
27
	<bean id="oaiSetsCollectorPlugin" class="eu.dnetlib.data.collector.plugins.oaisets.OaiSetsCollectorPlugin"
28
		p:oaiSetsIteratorFactory-ref="oaiSetsIteratorFactory">
29
		<property name="protocolDescriptor">
30
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="oai_sets" />
31
		</property>
32
	</bean>
33

    
34
	<bean id="httpCollectorPlugin" class="eu.dnetlib.data.collector.plugins.HttpCollectorPlugin">
35
		<property name="protocolDescriptor">
36
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="http">
37
				<property name="params">
38
					<list>
39
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
40
							p:name="splitOnElement" />
41
					</list>
42
				</property>			
43
			</bean>
44
		</property>
45
	</bean>
46
	
47
	<bean id="fileCollectorPlugin" class="eu.dnetlib.data.collector.plugins.FileCollectorPlugin">
48
		<property name="protocolDescriptor">
49
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="file">
50
				<property name="params">
51
					<list>
52
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
53
							p:name="splitOnElement" />
54
					</list>
55
				</property>			
56
			</bean>
57
		</property>
58
	</bean>
59
	
60
	<bean id="classpathCollectorPlugin" class="eu.dnetlib.data.collector.plugins.ClasspathCollectorPlugin">
61
		<property name="protocolDescriptor">
62
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="classpath">
63
				<property name="params">
64
					<list>
65
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
66
							p:name="splitOnElement" />
67
					</list>
68
				</property>			
69
			</bean>
70
		</property>
71
	</bean>
72
	
73
	<bean id="csvFileCollectorPlugin" class="eu.dnetlib.data.collector.plugins.FileCSVCollectorPlugin">
74
		<property name="protocolDescriptor">
75
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="fileCSV">
76
				<property name="params">
77
					<list>
78
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
79
							p:name="header" />
80
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
81
							p:name="separator" />
82
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
83
							p:name="identifier" />
84
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
85
							p:name="quote" />
86
					</list>
87
				</property>			
88
			</bean>
89
		</property>
90
	</bean>
91
	
92
	<bean id="httpCSVCollectorPlugin" class="eu.dnetlib.data.collector.plugins.HttpCSVCollectorPlugin">
93
		<property name="protocolDescriptor">
94
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="httpCSV">
95
				<property name="params">
96
					<list>
97
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
98
							p:name="separator" />					
99
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
100
							p:name="identifier" />					
101
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
102
							p:name="quote" />					
103
					</list>
104
				</property>			
105
			</bean>
106
		</property>
107
	</bean>
108

    
109
	<bean id="ftp2CollectorPlugin" class="eu.dnetlib.data.collector.plugins.ftp.FtpCollectorPlugin"
110
		  p:ftpIteratorFactory-ref="ftpIteratorFactory">
111
		<property name="protocolDescriptor">
112
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="ftp">
113
				<property name="params">
114
					<list>
115
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
116
							p:name="username" />					
117
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
118
							p:name="password" />					
119
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
120
							p:name="recursive" p:type="BOOLEAN" />
121
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
122
							p:name="extensions" p:type="LIST" />					
123
					</list>
124
				</property>
125
			</bean>
126
		</property>
127
	</bean>
128

    
129
	<bean id="sftpCollectorPlugin" class="eu.dnetlib.data.collector.plugins.sftp.SftpCollectorPlugin"
130
		  p:sftpIteratorFactory-ref="sftpIteratorFactory">
131
		<property name="protocolDescriptor">
132
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="sftp">
133
				<property name="params">
134
					<list>
135
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
136
							  p:name="username"/>
137
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
138
							  p:name="password"/>
139
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
140
							  p:name="recursive" p:type="BOOLEAN"/>
141
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
142
							  p:name="extensions" p:type="LIST"/>
143
					</list>
144
				</property>
145
			</bean>
146
		</property>
147
	</bean>
148
	
149
	<bean id="filesystemCollectorPlugin" class="eu.dnetlib.data.collector.plugins.filesystem.FilesystemCollectorPlugin">
150
		<property name="protocolDescriptor">
151
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="filesystem">
152
				<property name="params">
153
					<list>
154
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
155
							p:name="extensions" p:type="LIST" p:optional="true"/>
156
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
157
						      p:name="fileFormat" p:optional="true" />
158
					</list>
159
				</property>			
160
			</bean>
161
		</property>
162
	</bean>
163
	
164
	
165
	<bean id="filesFromMetadataCollectorPlugin" class="eu.dnetlib.data.collector.plugins.filesfrommetadata.FilesFromMetadataCollectorPlugin">
166
		<property name="protocolDescriptor">
167
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="files_from_metadata">
168
				<property name="params">
169
					<list>
170
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
171
						      p:name="basePath" p:optional="false">
172
							<property name="populateFunction">
173
								<bean class="eu.dnetlib.data.collector.plugins.filesfrommetadata.PopulateFileDownloadBasePath"/>
174
							</property>
175
						</bean>
176
					</list>
177
				</property>			
178
			</bean>
179
		</property>
180
	</bean>
181

    
182

    
183
	<bean id="filesFromMDStoreCollectorPlugin" class="eu.dnetlib.data.collector.plugins.filesfrommetadata.FilesFromMetadataCollectorPlugin">
184
		<property name="protocolDescriptor">
185
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="files_from_mdstore">
186
				<property name="params">
187
					<list>
188
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
189
						      p:name="basePath" p:optional="true">
190
							<property name="populateFunction">
191
								<bean class="eu.dnetlib.data.collector.plugins.filesfrommetadata.PopulateFileDownloadBasePath"/>
192
							</property>
193
						</bean>
194
					</list>
195
				</property>
196
			</bean>
197
		</property>
198
	</bean>
199
	
200
	
201
	<bean id="mongoImportPlugin" class="eu.dnetlib.data.collector.plugins.mongo.MongoDumpPlugin">
202
		<property name="protocolDescriptor">
203
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="mongoDump" />
204
				
205
			
206
		</property>
207
	</bean>
208
	
209
	<bean id="targzCollectorPlugin" class="eu.dnetlib.data.collector.plugins.archive.targz.TarGzCollectorPlugin">
210
		<property name="protocolDescriptor">
211
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="targz" />
212
				
213
		</property>
214
	</bean>
215
	
216
	<bean id="zipCollectorPlugin" class="eu.dnetlib.data.collector.plugins.archive.zip.ZipCollectorPlugin">
217
		<property name="protocolDescriptor">
218
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="zip" />
219
		</property>
220
	</bean>
221
	
222
	<bean id="gzipFileCollectorPlugin" class="eu.dnetlib.data.collector.plugins.FileGZipCollectorPlugin">
223
		<property name="protocolDescriptor">
224
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="fileGzip">
225
				<property name="params">
226
					<list>
227
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
228
							p:name="splitOnElement" />
229
					</list>
230
				</property>			
231
			</bean>
232
		</property>
233
	</bean>
234
	
235
	<bean id="httpListCollectorPlugin" class="eu.dnetlib.data.collector.plugins.httplist.HttpListCollectorPlugin">
236
		<property name="protocolDescriptor">
237
			<bean class="eu.dnetlib.data.collector.rmi.ProtocolDescriptor" p:name="httpList">
238
				<property name="params">
239
					<list>
240
						<bean class="eu.dnetlib.data.collector.rmi.ProtocolParameter"
241
							p:name="listUrl" />
242
					</list>
243
				</property>			
244
			</bean>
245
		</property>
246
	</bean>
247
</beans>
(2-2/2)