summaryrefslogtreecommitdiffstats
path: root/sparky
diff options
context:
space:
mode:
authorricharv <richard.vondadelszen@amdocs.com>2018-01-18 16:07:57 -0500
committerricharv <richard.vondadelszen@amdocs.com>2018-01-18 16:09:01 -0500
commitdd1c2ad899dd95c28612d42e804a92fb412ec7b4 (patch)
tree6bae9d7087329c6160561a6b4960955a20306675 /sparky
parentc98976b030ed96f41a59d19d8a86717d483973b9 (diff)
Config for sparky-be subscription api
Issue-ID: AAI-675 Change-Id: If633027f4d0dfa608340d2ee4a56de7feedfc7bd Signed-off-by: richarv <richard.vondadelszen@amdocs.com>
Diffstat (limited to 'sparky')
-rw-r--r--sparky/appconfig/filters/subscription_object_inspector_mapping.json16
-rw-r--r--sparky/dynamic/conf/sparky-core-sync.xml2
-rw-r--r--sparky/dynamic/conf/sparky-core-viewInspect.xml1
-rw-r--r--sparky/dynamic/conf/sparky-core.xml22
-rw-r--r--sparky/dynamic/routes/sparky-core-subscriptionService.route4
5 files changed, 44 insertions, 1 deletions
diff --git a/sparky/appconfig/filters/subscription_object_inspector_mapping.json b/sparky/appconfig/filters/subscription_object_inspector_mapping.json
new file mode 100644
index 0000000..858bc3f
--- /dev/null
+++ b/sparky/appconfig/filters/subscription_object_inspector_mapping.json
@@ -0,0 +1,16 @@
+{
+ "target": "",
+ "origin": "",
+ "messageType": "",
+ "topic": "",
+ "message": {
+ "applicationName": "",
+ "payload": {
+ "action": "",
+ "params": {
+ "objectName": "",
+ "externalClassId": ""
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/sparky/dynamic/conf/sparky-core-sync.xml b/sparky/dynamic/conf/sparky-core-sync.xml
index 22a7c3e..4c172b7 100644
--- a/sparky/dynamic/conf/sparky-core-sync.xml
+++ b/sparky/dynamic/conf/sparky-core-sync.xml
@@ -73,7 +73,7 @@
<property name="connectTimeoutInMs" value="60000" />
<property name="readTimeoutInMs" value="30000" />
<property name="basicAuthUserName" value="AaiUI" />
- <property name="basicAuthUserPassword" value="OBF:1gfr1p571unz1p4j1gg7" />
+ <property name="basicAuthPassword" value="OBF:1gfr1p571unz1p4j1gg7" />
<property name="truststoreFileName" value="synchronizer.jks" />
<property name="validateServerCertChain" value="false" />
<property name="validateServerHostname" value="false" />
diff --git a/sparky/dynamic/conf/sparky-core-viewInspect.xml b/sparky/dynamic/conf/sparky-core-viewInspect.xml
index f1c81b3..c6ddd10 100644
--- a/sparky/dynamic/conf/sparky-core-viewInspect.xml
+++ b/sparky/dynamic/conf/sparky-core-viewInspect.xml
@@ -41,6 +41,7 @@
<constructor-arg ref="viewInspectySchemaConfig" />
<constructor-arg name="numActiveInventoryWorkers" value="5" />
<constructor-arg ref="oxmEntityLookup" />
+ <constructor-arg ref="subscriptionConfig" />
</bean>
<bean id="schemaVisualizationProcessor"
diff --git a/sparky/dynamic/conf/sparky-core.xml b/sparky/dynamic/conf/sparky-core.xml
index 017a777..473d967 100644
--- a/sparky/dynamic/conf/sparky-core.xml
+++ b/sparky/dynamic/conf/sparky-core.xml
@@ -201,5 +201,27 @@
</property>
</bean>
+
+ <bean id="subscriptionConfig"
+ class="org.onap.aai.sparky.subscription.config.SubscriptionConfig">
+ <property name="subscriptionTarget" value="" />
+ <property name="subscriptionOrigin" value="" />
+ <property name="subscriptionMessageType" value="" />
+ <property name="subscriptionTopic" value="" />
+ <property name="launchOITarget" value="" />
+ <property name="launchOIOrigin" value="" />
+ <property name="launchOIMessageType" value="" />
+ <property name="launchOITopic" value="" />
+ </bean>
+
+ <bean id="subscriptionService"
+ class="org.onap.aai.sparky.subscription.services.SubscriptionService">
+ <constructor-arg ref="subscriptionConfig" />
+ </bean>
+
+ <bean id="subscriptionServiceProcessor"
+ class="org.onap.aai.sparky.subscription.SubscriptionServiceProcessor">
+ <constructor-arg ref="subscriptionService" />
+ </bean>
</beans>
diff --git a/sparky/dynamic/routes/sparky-core-subscriptionService.route b/sparky/dynamic/routes/sparky-core-subscriptionService.route
new file mode 100644
index 0000000..d0c78e6
--- /dev/null
+++ b/sparky/dynamic/routes/sparky-core-subscriptionService.route
@@ -0,0 +1,4 @@
+<route xmlns="http://camel.apache.org/schema/spring" trace="true">
+ <from uri="restlet:/subscription/getsubscription?restletMethods=get,post" />
+ <to uri="bean:subscriptionServiceProcessor?method=getSubscription"/>
+</route> \ No newline at end of file