From bc95a55c61685694a930d659bef336989a04df2f Mon Sep 17 00:00:00 2001 From: Brinda Santh Date: Wed, 10 Apr 2019 18:14:44 -0400 Subject: Add grpc execution service Change-Id: Icfbd9cef8775f2f72329ec726309d14377b9188a Issue-ID: CCSDK-1215 Signed-off-by: Brinda Santh --- .../org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctions.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ms/controllerblueprints') diff --git a/ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctions.kt b/ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctions.kt index d45571cdf..72c2c1df3 100644 --- a/ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctions.kt +++ b/ms/controllerblueprints/modules/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/CustomFunctions.kt @@ -97,6 +97,10 @@ fun Map.castValue(key: String, valueType: KClass): T { } } +fun ArrayNode.asListOfString(): List { + return JacksonUtils.getListFromJsonNode(this, String::class.java) +} + /** * Convert Json to map of json node, the root fields will be map keys */ -- cgit 1.2.3-korg