summaryrefslogtreecommitdiffstats
path: root/champ-service
diff options
context:
space:
mode:
Diffstat (limited to 'champ-service')
-rw-r--r--champ-service/appconfig/auth/champ_policy.json18
-rw-r--r--champ-service/appconfig/auth/tomcat_keystorebin0 -> 2214 bytes
-rw-r--r--champ-service/appconfig/champ-api.properties7
-rw-r--r--champ-service/dynamic/conf/champ-beans.xml80
4 files changed, 105 insertions, 0 deletions
diff --git a/champ-service/appconfig/auth/champ_policy.json b/champ-service/appconfig/auth/champ_policy.json
new file mode 100644
index 0000000..a39a146
--- /dev/null
+++ b/champ-service/appconfig/auth/champ_policy.json
@@ -0,0 +1,18 @@
+{
+ "roles": [
+ {
+ "name": "admin",
+ "functions": [
+ {
+ "name": "champ", "methods": [ { "name": "GET" },{ "name": "DELETE" }, { "name": "PUT" }, { "name": "POST" } ]
+ }
+ ],
+
+ "users": [
+ {
+ "username": "CN=ONAP, OU=ONAP, O=ONAP, L=Ottawa, ST=Ontario, C=CA"
+ }
+ ]
+ }
+ ]
+}
diff --git a/champ-service/appconfig/auth/tomcat_keystore b/champ-service/appconfig/auth/tomcat_keystore
new file mode 100644
index 0000000..9eec841
--- /dev/null
+++ b/champ-service/appconfig/auth/tomcat_keystore
Binary files differ
diff --git a/champ-service/appconfig/champ-api.properties b/champ-service/appconfig/champ-api.properties
new file mode 100644
index 0000000..9ad9b33
--- /dev/null
+++ b/champ-service/appconfig/champ-api.properties
@@ -0,0 +1,7 @@
+Replace with your actual properties file. Should contain something like:
+
+keyName=aai-uuid
+sourceOfTruthName=source-of-truth
+createdTsName=aai-created-ts
+lastModTsName=aai-last-mod-ts
+collectionPropertiesKey=properties \ No newline at end of file
diff --git a/champ-service/dynamic/conf/champ-beans.xml b/champ-service/dynamic/conf/champ-beans.xml
new file mode 100644
index 0000000..28b4d8c
--- /dev/null
+++ b/champ-service/dynamic/conf/champ-beans.xml
@@ -0,0 +1,80 @@
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/util
+ http://www.springframework.org/schema/util/spring-util.xsd
+ ">
+
+
+ <bean id="champEventPublisher" class="com.att.ecomp.event.client.DMaaPEventPublisher">
+ <constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904"/>
+ <constructor-arg name="topic" value="champRawEventsOnap"/>
+ <constructor-arg name="username" value="test"/>
+ <constructor-arg name="password" value="test"/>
+ <constructor-arg name="maxBatchSize" value="100"/>
+ <constructor-arg name="maxAgeMs" value="250"/>
+ <constructor-arg name="delayBetweenBatchesMs" value="50"/>
+ <constructor-arg name="transportType" value="HTTPAUTH"/>
+ </bean>
+
+ <!-- Graph Implementation Configuration-->
+ <util:map id="props" map-class="java.util.HashMap" key-type="java.lang.String" value-type="java.lang.Object">
+ <entry key="champcore.event.stream.buffer.capacity" value="50" value-type="java.lang.Integer"/>
+ <entry key="champcore.event.stream.publisher-pool-size" value="10" value-type="java.lang.Integer"/>
+ <entry key="champcore.event.stream.publisher" value-ref="champEventPublisher"/>
+
+ <entry key="graph.name" value="aaigraph-onap.dev"/>
+ <entry key="storage.backend" value="hbase"/>
+ <entry key="storage.hostname" value="aai.hbase.simpledemo.onap.org"/>
+
+ <!-- Hbase Config -->
+ <entry key="storage.hbase.ext.hbase.zookeeper.property.clientPort" value="2181"/>
+ <entry key="storage.hbase.ext.zookeeper.znode.parent" value="/hbase-unsecure"/>
+
+ <!-- Cassandra Config -->
+ <entry key="storage.port" value="2181"/>
+ </util:map>
+
+ <!-- Titan Implementation -->
+ <bean id="graphBuilder" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl$Builder">
+ <constructor-arg value="aaigraph-onap.dev"/>
+ <constructor-arg ref="props" />
+ </bean>
+ <bean id="graphImpl" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl">
+ <constructor-arg ref="graphBuilder" />
+ </bean>
+
+ <!-- Janus Implementation -->
+<!--
+ <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
+ <constructor-arg value="<%= @CHAMP_GRAPH_NAME %>"/>
+ <constructor-arg ref="props"/>
+ </bean>
+ <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
+ <constructor-arg ref="graphBuilder"/>
+ </bean>
+-->
+
+ <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService">
+ <constructor-arg name="graphImpl" ref="graphImpl"/>
+ </bean>
+
+ <bean id="cache" class="org.onap.champ.service.ChampTransactionCache">
+ <constructor-arg name="txTimeOutInSec" value="600"/>
+ <constructor-arg name="graphImpl" ref="graphImpl"/>
+ </bean>
+
+ <bean id="champDataService" class="org.onap.champ.service.ChampDataService">
+ <constructor-arg name="champUUIDService" ref="champUUIDService"/>
+ <constructor-arg name="graphImpl" ref="graphImpl"/>
+ <constructor-arg name="cache" ref="cache"/>
+ </bean>
+
+ <bean id="champRestService" class="org.onap.champ.ChampRESTAPI">
+ <constructor-arg name="champDataService" ref="champDataService"/>
+ <constructor-arg name="champAsyncRequestProcessor" ref="champAsyncRequestProcessor"/>
+ </bean>
+</beans> \ No newline at end of file