summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-application/config/spring-beans/sparky-oxm.xml
blob: c392153f813b08ab82fd034a8b5fc52eec5b0b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
	xmlns:task="http://www.springframework.org/schema/task"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd 
		http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">

	<context:property-placeholder
		location="file:${CONFIG_HOME}/schemaIngest.properties"
		ignore-unresolvable="true" />

	<bean id="crossEntityReferenceLookup"
		class="org.onap.aai.sparky.config.oxm.CrossEntityReferenceLookup" />

	<bean id="geoEntityLookup" class="org.onap.aai.sparky.config.oxm.GeoEntityLookup" />

	<bean id="oxmEntityLookup" class="org.onap.aai.sparky.config.oxm.OxmEntityLookup" />

	<bean id="searchableEntityLookup" class="org.onap.aai.sparky.config.oxm.SearchableEntityLookup" />

	<bean id="suggestionEntityLookup" class="org.onap.aai.sparky.config.oxm.SuggestionEntityLookup">
		<constructor-arg ref="filtersConfig" />
	</bean>

	<bean id="oxmModelProcessorSet" class="org.springframework.beans.factory.config.SetFactoryBean">
		<property name="targetSetClass" value="java.util.HashSet" />
		<property name="sourceSet">
			<set>
				<ref bean="crossEntityReferenceLookup" />
				<ref bean="geoEntityLookup" />
				<ref bean="oxmEntityLookup" />
				<ref bean="searchableEntityLookup" />
				<ref bean="suggestionEntityLookup" />
			</set>
		</property>
	</bean>

	<bean id="schemaLocationsBean" class="org.onap.aai.setup.SchemaLocationsBean">
		<!-- When running with AJSC these properties must be injected directly. 
			The reason for this is unknown. -->
		<property name="nodeDirectory" value="${nodeDir}" />
		<property name="edgeDirectory" value="${edgeDir}" />
	</bean>

  <bean id="schemaVersions" class="org.onap.aai.setup.SchemaVersions"/>
  
  <bean id="oxmConfigTranslator" class="org.onap.aai.setup.AAIConfigTranslator">
    <constructor-arg ref="schemaLocationsBean" />
    <constructor-arg ref="schemaVersions" />
	</bean>
  
	<bean id="nodeIngestor" class="org.onap.aai.nodes.NodeIngestor">
		<constructor-arg ref="oxmConfigTranslator" />
	</bean>

	<bean id="searchProviderRegistry"
		class="org.onap.aai.sparky.search.registry.SearchProviderRegistry" />

	<bean id="sparkyResourceLoader" class="org.onap.aai.sparky.config.SparkyResourceLoader">
		<property name="configHomeEnvVar" value="CONFIG_HOME" />
	</bean>

	<bean id="unifiedSearchProcessor" class="org.onap.aai.sparky.search.UnifiedSearchProcessor">
		<property name="searchProviderRegistry" ref="searchProviderRegistry" />
	</bean>

	<bean id="pairingHashMap" class="org.springframework.beans.factory.config.MapFactoryBean">
		<property name="targetMapClass">
			<value>java.util.HashMap</value>
		</property>
		<property name="sourceMap">
			<map key-type="java.lang.String" value-type="java.lang.String">
				<entry key="volume-group-id" value="called" />
				<entry key="volume-group-name" value="called" />
				<entry key="physical-location-id" value="called" />
				<entry key="data-center-code" value="called" />
				<entry key="complex-name" value="called" />
				<entry key="tenant-id" value="called" />
				<entry key="tenant-name" value="called" />
				<entry key="vserver-id" value="called" />
				<entry key="vserver-name" value="called" />
				<entry key="vserver-name2" value="called" />
				<entry key="hostname" value="called" />
				<entry key="pserver-name2" value="called" />
				<entry key="pserver-id" value="called" />
				<entry key="global-customer-id" value="called" />
				<entry key="subscriber-name" value="called" />
				<entry key="service-instance-id" value="called" />
				<entry key="service-instance-name" value="called" />
				<entry key="link-name" value="called" />
				<entry key="vpn-id" value="called" />
				<entry key="vpn-name" value="called" />
				<entry key="vpe-id" value="called" />
				<entry key="vnf-id" value="called" />
				<entry key="vnf-name" value="called" />
				<entry key="vnf-name2" value="called" />
				<entry key="vnfc-name" value="called" />
				<entry key="network-id" value="called" />
				<entry key="network-name" value="called" />
				<entry key="network-policy-id" value="called" />
				<entry key="vf-module-id" value="called" />
				<entry key="vf-module-name" value="called" />
				<entry key="vnf-id2" value="called" />
				<entry key="pnf-name" value="called" />
				<entry key="circuit-id" value="called" />
				<entry key="id" value="called" />
				<entry key="group-id" value="called" />
				<entry key="group-name" value="called" />
				<entry key="street1" value="at" />
				<entry key="street2" value="at" />
				<entry key="code" value="at" />
				<entry key="ipv4-oam-address" value="at" />
				<entry key="network-policy-fqdn" value="at" />
			</map>
		</property>
	</bean>

	<bean id="suggestiveSearchConfigs" class="org.onap.aai.sparky.search.config.SuggestionConfig">
		<property name="defaultPairingValue" value="with" />
		<property name="pairingList" ref="pairingHashMap"></property>
		<property name="stopWords">
			<list value-type="java.lang.String">
				<value>a</value>
				<value>an</value>
				<value>and</value>
				<value>are</value>
				<value>as</value>
				<value>at</value>
				<value>be</value>
				<value>but</value>
				<value>by</value>
				<value>called</value>
				<value>for</value>
				<value>if</value>
				<value>in</value>
				<value>into</value>
				<value>is</value>
				<value>it</value>
				<value>no</value>
				<value>not</value>
				<value>of</value>
				<value>on</value>
				<value>or</value>
				<value>such</value>
				<value>that</value>
				<value>the</value>
				<value>their</value>
				<value>then</value>
				<value>there</value>
				<value>these</value>
				<value>they</value>
				<value>this</value>
				<value>to</value>
				<value>was</value>
				<value>will</value>
				<value>with</value>
			</list>
		</property>

	</bean>

</beans>