summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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