Upgrade APPC to use common mariadb galera charts
[oom.git] / kubernetes / aai / charts / aai-sparky-be / resources / config / spring-beans / sparky-core-aggregateVnfSearchProvider.xml
1 <!--
2
3 # Copyright © 2018 Amdocs, Bell Canada, AT&T
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 -->
17
18 <beans xmlns="http://www.springframework.org/schema/beans"
19   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20   xsi:schemaLocation="
21          http://www.springframework.org/schema/beans
22          http://www.springframework.org/schema/beans/spring-beans.xsd">
23
24          <bean id="aggregateVnfSearchProvider"
25             class="org.onap.aai.sparky.aggregatevnf.search.AggregateVnfSearchProvider">
26             <constructor-arg ref="searchServiceAdapter"/>
27             <constructor-arg name="autoSuggestIndexName" value="entityautosuggestindex"/>
28             <constructor-arg name="vnfSearchSuggestionRoute" value="vnfSearch"/>
29           </bean>
30
31           <bean id="aggregateSummaryProcessor"
32             class="org.onap.aai.sparky.aggregatevnf.search.AggregateSummaryProcessor">
33             <constructor-arg ref="elasticSearchAdapter"/>
34             <constructor-arg ref="filtersConfig"/>
35             <property name="vnfAggregationIndexName" value="aggregate_generic-vnf_index"/>
36           </bean>
37
38           <bean id="registerAggregateVnfSearchProvider"
39             class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
40             <property name="targetObject" ref="searchProviderRegistry"/>
41             <property name="targetMethod">
42               <value>addSearchProviders</value>
43             </property>
44             <property name="arguments">
45               <list value-type="org.onap.aai.sparky.search.api.SearchProvider">
46                 <ref bean="aggregateVnfSearchProvider"/>
47               </list>
48             </property>
49           </bean>
50 </beans>