update sparky with configurable features
[aai/sparky-be.git] / sparkybe-onap-application / config / spring-beans / sparky-resources.xml
1 <beans profile="resources" xmlns="http://www.springframework.org/schema/beans"
2         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="
4                http://www.springframework.org/schema/beans
5                http://www.springframework.org/schema/beans/spring-beans.xsd">
6
7         <bean id="aaiRestEndpointConfig" class="org.onap.aai.sparky.dal.rest.config.RestEndpointConfig">
8                 <property name="endpointIpAddress" value="${resources.hostname:127.0.0.1}" />
9                 <property name="endpointServerPort" value="${resources.port:8443}" />
10                 <property name="numRequestRetries" value="5" />
11                 <property name="restAuthenticationMode" value="${resources.authType:SSL_BASIC}" />
12                 <property name="connectTimeoutInMs" value="60000" />
13                 <property name="readTimeoutInMs" value="30000" />
14                 <property name="basicAuthUserName" value="${resources.basicAuthUserName:}" />
15                 <property name="basicAuthPassword" value="OBF:${resources.basicAuthPassword:}" />
16                 <property name="certFileName" value="/auth/${resources.client-cert:}" />
17                 <property name="certPassword" value="OBF:${resources.client-cert-password:}" />
18                 <property name="truststoreFileName" value="/auth/${resources.trust-store:}" />
19                 <property name="validateServerCertChain" value="false" />
20                 <property name="validateServerHostname" value="false" />
21                 <property name="resourceLoader" ref="sparkyResourceLoader" />
22         </bean>
23
24         <bean id="activeInventoryAdapter" class="org.onap.aai.sparky.dal.ActiveInventoryAdapter">
25                 <constructor-arg ref="oxmModelLoader" />
26                 <constructor-arg ref="oxmEntityLookup" />
27                 <constructor-arg ref="aaiRestEndpointConfig" />
28                 <constructor-arg name="domain" value="${resources.domain:aai}" />
29                 <property name="appPartnerName" value="${resources.appPartnerName:AAI-UI}" />
30                 <property name="syncPartnerName" value="${resources.syncPartnerName:AAI-UI-SYNC}" />
31         </bean>
32
33 </beans>