1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
|
xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:p="http://www.springframework.org/schema/p"
|
4
|
xmlns:http="http://cxf.apache.org/transports/http/configuration" xmlns="http://www.springframework.org/schema/beans"
|
5
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
6
|
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
|
7
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
|
8
|
|
9
|
<bean id="datasourceManagerService"
|
10
|
class="eu.dnetlib.enabling.datasources.DatasourceManagerServiceImpl">
|
11
|
<property name="browsableFields">
|
12
|
<list>
|
13
|
<bean class="eu.dnetlib.enabling.datasources.XmlBrowsableField"
|
14
|
p:id="country" p:label="Datasource countries" p:xpath="../../COUNTRY/text()"
|
15
|
p:vocabulary="dnet:countries"/>
|
16
|
<bean class="eu.dnetlib.enabling.datasources.XmlBrowsableField"
|
17
|
p:id="type" p:label="API typologies" p:xpath="@typology/string()"
|
18
|
p:vocabulary="dnet:datasource_typologies"/>
|
19
|
<bean class="eu.dnetlib.enabling.datasources.XmlBrowsableField"
|
20
|
p:id="protocol" p:label="API protocols" p:xpath="ACCESS_PROTOCOL/text()"
|
21
|
p:vocabulary="dnet:protocols"/>
|
22
|
<bean class="eu.dnetlib.enabling.datasources.XmlBrowsableField"
|
23
|
p:id="compliance" p:label="API compatibility levels"
|
24
|
p:xpath="concat(substring(./INTERFACE_EXTRA_FIELD[@name='overriding_compliance'], 1, number(boolean(./INTERFACE_EXTRA_FIELD[@name='overriding_compliance'])) * string-length(./INTERFACE_EXTRA_FIELD[@name='overriding_compliance'])), substring(@compliance, 1, number(not(boolean(./INTERFACE_EXTRA_FIELD[@name='overriding_compliance']))) * string-length(@compliance)))"
|
25
|
p:vocabulary="dnet:compatibilityLevel"/>
|
26
|
</list>
|
27
|
</property>
|
28
|
</bean>
|
29
|
|
30
|
<!-- endpoints -->
|
31
|
<jaxws:endpoint id="datasourceManagerServiceEndpoint"
|
32
|
implementor="#datasourceManagerService"
|
33
|
implementorClass="eu.dnetlib.enabling.datasources.rmi.DatasourceManagerService"
|
34
|
address="/datasourceManager"/>
|
35
|
|
36
|
|
37
|
</beans>
|