From 6f4d12b7cd5c64a5797a560325a54bb9ac1884ab Mon Sep 17 00:00:00 2001 From: Brinda Santh Date: Wed, 5 Sep 2018 01:22:04 -0400 Subject: 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 --- .../resource/dict/service/ResourceDefinitionRepoService.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/resource-dict/src/main') 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 d51338ca..370e1ec8 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) -- cgit 1.2.3-korg