e0ab32b584f03632749497ccfdc435fdd6a0ac5b
[oom.git] / kubernetes / aai / charts / aai-gizmo / resources / config / crud-beans.xml
1 <!--
2 # Copyright © 2018 Amdocs, Bell Canada, AT&T
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 -->
16
17 <beans xmlns="http://www.springframework.org/schema/beans"
18          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19          xmlns:util="http://www.springframework.org/schema/util"
20          xsi:schemaLocation="
21                 http://www.springframework.org/schema/beans
22                 http://www.springframework.org/schema/beans/spring-beans.xsd
23                http://www.springframework.org/schema/util
24                 http://www.springframework.org/schema/util/spring-util.xsd
25                 ">
26
27      <bean id="champDao" class="org.onap.crud.dao.champ.ChampDao">
28          <constructor-arg name="champUrl" value="https://aai-champ.{{.Release.Namespace}}:9522/services/champ-service/v1/"/>
29          <constructor-arg name="certPassword" value="OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10"/>
30      </bean>
31
32          <bean id="dataRouterDAO" class="org.onap.crud.dao.DataRouterDAO">
33          <constructor-arg name="url" value="https://data-router.{{.Release.Namespace}}:9502/services/champ-service/v1/"/>
34          <constructor-arg name="certPassword" value="OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10"/>
35      </bean>
36
37      <!-- Synchronous Mode -->
38      <bean id="graphDataService" class="org.onap.crud.service.CrudGraphDataService" >
39          <constructor-arg name="dao" ref="champDao" />
40          <constructor-arg name="daoForGet" ref="champDao" /> <!--  Using champ for both types of API for now -->
41      </bean>
42
43      <bean id="crudRestService" class="org.onap.crud.service.CrudRestService" init-method="startup" >
44          <constructor-arg name="graphDataService" ref="graphDataService" />
45      </bean>
46
47 </beans>