From: Brinda Santh Date: Wed, 5 Sep 2018 05:22:04 +0000 (-0400) Subject: Controller Blueprints Microservice X-Git-Tag: 0.4.2~163^2~130 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=5996f186c7c195bf2d4e1b1874c7784cdaa00e39;p=ccsdk%2Fcds.git Controller Blueprints Microservice Add Resource Dictionary reactive repository service for dictionary validation and automap functions. Change-Id: I7cc6d7d976cfe9370f9a74cd8f2e4256de8e8995 Issue-ID: CCSDK-484 Signed-off-by: Brinda Santh --- diff --git a/components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoService.kt b/components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoService.kt index d51338caf..370e1ec8c 100644 --- a/components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoService.kt +++ b/components/resource-dict/src/main/kotlin/org/onap/ccsdk/apps/controllerblueprints/resource/dict/service/ResourceDefinitionRepoService.kt @@ -1,5 +1,6 @@ /* * Copyright © 2017-2018 AT&T Intellectual Property. + * Modifications Copyright © 2018 IBM. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +30,7 @@ import reactor.core.publisher.Mono */ interface ResourceDefinitionRepoService : BluePrintRepoService { - fun getResourceDefinition(resourceDefinitionName: String): Mono? + fun getResourceDefinition(resourceDefinitionName: String): Mono } /** @@ -51,7 +52,7 @@ open class ResourceDefinitionFileRepoService : BluePrintRepoFileService, resourceDefinitionPath = basePath.plus("/resource_dictionary") } - override fun getResourceDefinition(resourceDefinitionName: String): Mono? { + override fun getResourceDefinition(resourceDefinitionName: String): Mono { val fileName = resourceDefinitionPath.plus(BluePrintConstants.PATH_DIVIDER) .plus(resourceDefinitionName).plus(extension)