1 |
1942
|
vassilis.s
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
|
3 |
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
4 |
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
5 |
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
6 |
|
|
xmlns:cxf="http://cxf.apache.org/core"
|
7 |
|
|
xmlns:jaxws="http://cxf.apache.org/jaxws"
|
8 |
|
|
xmlns:p="http://http://www.springframework.org/schema/p"
|
9 |
3107
|
antonis.le
|
xmlns:template="http://dnetlib.eu/springbeans/template"
|
10 |
|
|
xmlns:t="http://dnetlib.eu/springbeans/t"
|
11 |
1942
|
vassilis.s
|
|
12 |
|
|
xsi:schemaLocation="
|
13 |
27179
|
katerina.i
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
14 |
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
|
15 |
1942
|
vassilis.s
|
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
|
16 |
3107
|
antonis.le
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
|
17 |
|
|
http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd"
|
18 |
1942
|
vassilis.s
|
default-autowire="byName">
|
19 |
|
|
|
20 |
25725
|
antonis.le
|
<alias name="indexServiceLocator" alias="service.indexServiceLocator" />
|
21 |
|
|
<alias name="resultSetFactory" alias="service.resultSetFactory" />
|
22 |
|
|
|
23 |
|
|
<alias name="${services.search.indexMode}.indexServiceLocator" alias="search.indexServiceLocator" />
|
24 |
|
|
<alias name="${services.search.indexMode}.resultSetFactory" alias="search.resultSetFactory" />
|
25 |
|
|
|
26 |
3188
|
vassilis.s
|
<!-- query rewrite rules -->
|
27 |
|
|
<bean id="prefixRule" class="eu.dnetlib.data.search.app.plan.PrefixRule">
|
28 |
|
|
<property name="name" value="query prefix rule" />
|
29 |
31692
|
katerina.i
|
<property name="prefix" value="(deletedbyinference=false)" />
|
30 |
3188
|
vassilis.s
|
</bean>
|
31 |
|
|
|
32 |
|
|
<!-- field rewrite rules -->
|
33 |
|
|
<bean id="collectionRule" class="eu.dnetlib.data.search.app.plan.CollectionRewriteRule">
|
34 |
|
|
<property name="name" value="collection expand rule" />
|
35 |
|
|
<property name="fieldName" value="collection" />
|
36 |
|
|
<property name="collectionLookUp" ref="collectionLookUp" />
|
37 |
|
|
</bean>
|
38 |
|
|
|
39 |
27917
|
antonis.le
|
<bean id="blackboardHandler" class="eu.dnetlib.enabling.tools.blackboard.BlackboardHandlerImpl">
|
40 |
|
|
<property name="registryLocator" ref="cnr.registryLocator"/>
|
41 |
|
|
<property name="messageFactory">
|
42 |
|
|
<bean class="eu.dnetlib.miscutils.jaxb.JaxbFactory">
|
43 |
|
|
<constructor-arg value="eu.dnetlib.enabling.tools.blackboard.BlackboardMessageImpl" />
|
44 |
|
|
</bean>
|
45 |
|
|
</property>
|
46 |
|
|
</bean>
|
47 |
|
|
|
48 |
|
|
<bean id="searchServiceBlackboardHandler" class="eu.dnetlib.data.search.app.SearchServiceBlackboardHandler" lazy-init="true">
|
49 |
|
|
<property name="searchService" ref="searchService" />
|
50 |
|
|
<property name="lookUpServiceServiceLocator" ref="lookupServiceLocator" />
|
51 |
|
|
<property name="blackboardHandler" ref="blackboardHandler" />
|
52 |
|
|
</bean>
|
53 |
|
|
|
54 |
1942
|
vassilis.s
|
<!-- the service bean -->
|
55 |
6830
|
antonis.le
|
<bean id="searchService"
|
56 |
1942
|
vassilis.s
|
class="eu.dnetlib.data.search.app.SearchServiceImpl"
|
57 |
6830
|
antonis.le
|
autowire="no">
|
58 |
14683
|
antonis.le
|
<property name="snManager" ref="snManager" />
|
59 |
3107
|
antonis.le
|
<property name="serviceIdentity">
|
60 |
|
|
<bean class="eu.dnetlib.utils.ServiceIdentityFactory"
|
61 |
|
|
factory-method="createIdentity" >
|
62 |
6830
|
antonis.le
|
<constructor-arg value="${services.search.serviceName}" />
|
63 |
3107
|
antonis.le
|
</bean>
|
64 |
|
|
</property>
|
65 |
15459
|
antonis.le
|
<property name="mdFormat" value="${services.search.mdFormat}" />
|
66 |
27917
|
antonis.le
|
<property name="indexLayout" value="${services.search.indexLayout}" />
|
67 |
25725
|
antonis.le
|
<property name="indexLocator" ref="search.indexServiceLocator" />
|
68 |
|
|
<property name="rsFactory" ref="search.resultSetFactory" />
|
69 |
16443
|
katerina.i
|
<property name="transformerFactory" ref="transformerFactory"/>
|
70 |
27917
|
antonis.le
|
<property name="blackboardNotificationHandler" ref="searchServiceBlackboardHandler" />
|
71 |
3188
|
vassilis.s
|
<property name="queryRules">
|
72 |
|
|
<list>
|
73 |
22679
|
katerina.i
|
<ref bean="prefixRule"/>
|
74 |
3188
|
vassilis.s
|
</list>
|
75 |
|
|
</property>
|
76 |
|
|
<property name="fieldRules">
|
77 |
|
|
<list>
|
78 |
|
|
<ref bean="collectionRule" />
|
79 |
|
|
</list>
|
80 |
|
|
</property>
|
81 |
1942
|
vassilis.s
|
</bean>
|
82 |
|
|
|
83 |
|
|
<!-- The web service bean -->
|
84 |
|
|
<bean id="searchWebServiceImpl"
|
85 |
|
|
class="eu.dnetlib.clients.data.search.ws.SearchWebServiceImpl">
|
86 |
2658
|
antonis.le
|
<property name="service" ref="searchService" />
|
87 |
1942
|
vassilis.s
|
</bean>
|
88 |
|
|
|
89 |
|
|
<!-- Service endpoint -->
|
90 |
|
|
<jaxws:endpoint
|
91 |
|
|
id="searchWebService"
|
92 |
|
|
implementor="#searchWebServiceImpl"
|
93 |
|
|
implementorClass="eu.dnetlib.clients.data.search.ws.SearchWebService"
|
94 |
|
|
address="/searchWebService"/>
|
95 |
3107
|
antonis.le
|
|
96 |
4655
|
antonis.le
|
<template:instance name="nkua.serviceRegistrationManager"
|
97 |
3107
|
antonis.le
|
t:name="searchServiceRegistrationManager"
|
98 |
|
|
t:service="searchService"
|
99 |
31935
|
antonis.le
|
t:endpoint="searchWebService"
|
100 |
|
|
t:serviceRegistrator="searchServiceRegistrator"/>
|
101 |
3107
|
antonis.le
|
|
102 |
31935
|
antonis.le
|
<bean id="searchServiceRegistrator" parent="serviceRegistrator">
|
103 |
|
|
<property name="serviceProperties">
|
104 |
|
|
<map>
|
105 |
|
|
<entry key="infrastructure" value="${services.search.infrastructure}" />
|
106 |
|
|
</map>
|
107 |
|
|
</property>
|
108 |
|
|
</bean>
|
109 |
|
|
|
110 |
3107
|
antonis.le
|
<bean id="searchServiceLocator"
|
111 |
|
|
class="gr.uoa.di.driver.util.StaticServiceLocator">
|
112 |
|
|
<property name="service" ref="searchService" />
|
113 |
|
|
</bean>
|
114 |
25726
|
katerina.i
|
|
115 |
|
|
<bean id="maxResults" class="java.lang.String">
|
116 |
|
|
<constructor-arg value="${services.search.maxResults}"/>
|
117 |
|
|
</bean>
|
118 |
|
|
|
119 |
27054
|
katerina.i
|
<bean id="maxSize" class="java.lang.String">
|
120 |
|
|
<constructor-arg value="${services.search.maxSize}"/>
|
121 |
|
|
</bean>
|
122 |
|
|
|
123 |
18933
|
antonis.le
|
</beans>
|