Config for sparky-be subscription api 85/28585/1
authorricharv <richard.vondadelszen@amdocs.com>
Thu, 18 Jan 2018 21:07:57 +0000 (16:07 -0500)
committerricharv <richard.vondadelszen@amdocs.com>
Thu, 18 Jan 2018 21:09:01 +0000 (16:09 -0500)
Issue-ID: AAI-675
Change-Id: If633027f4d0dfa608340d2ee4a56de7feedfc7bd
Signed-off-by: richarv <richard.vondadelszen@amdocs.com>
sparky/appconfig/filters/subscription_object_inspector_mapping.json [new file with mode: 0644]
sparky/dynamic/conf/sparky-core-sync.xml
sparky/dynamic/conf/sparky-core-viewInspect.xml
sparky/dynamic/conf/sparky-core.xml
sparky/dynamic/routes/sparky-core-subscriptionService.route [new file with mode: 0644]

diff --git a/sparky/appconfig/filters/subscription_object_inspector_mapping.json b/sparky/appconfig/filters/subscription_object_inspector_mapping.json
new file mode 100644 (file)
index 0000000..858bc3f
--- /dev/null
@@ -0,0 +1,16 @@
+{
+    "target": "",
+    "origin": "",
+    "messageType": "",
+    "topic": "",
+    "message": {
+        "applicationName": "",
+        "payload": {
+            "action": "",
+            "params": {
+                "objectName": "",
+                "externalClassId": ""
+            }
+        }
+    }
+}
\ No newline at end of file
index 22a7c3e..4c172b7 100644 (file)
@@ -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" />
index f1c81b3..c6ddd10 100644 (file)
@@ -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"
index 017a777..473d967 100644 (file)
                </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 (file)
index 0000000..d0c78e6
--- /dev/null
@@ -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