API to resolve resources based on optional 'occurrence' options 04/129304/17
authorkuldipr <kuldip.rai@amdocs.com>
Thu, 24 Mar 2022 21:13:47 +0000 (17:13 -0400)
committerJozsef Csongvai <jozsef.csongvai@bell.ca>
Tue, 24 May 2022 23:26:45 +0000 (23:26 +0000)
commit265ea7b91401e902a840ddd3f62dce5ae7ebc7c5
treea4815aa7ecbebddd0dfa634433e1aec258776307
parent414949bd6d65a46f296b3c7a0057a6a58a54db22
API to resolve resources based on optional 'occurrence' options

User can specificy options to get firstN, lastN and by the Range
(begin, end) of 'occurrence' to get the resolutions. If no options
are specified, all the resolutions are returned in decending
oder (latest on top).

Map of resolutions are returned with 'occurrence' as the key to the
corresponding list of resolutions.

Issue-ID: CCSDK-3665
Signed-off-by: kuldipr <kuldip.rai@amdocs.com>
Change-Id: I9ecbfb339bde76510e81cd695e03cc1e061396ee
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/db/ResourceResolutionDBService.kt
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/db/ResourceResolutionRepository.kt
ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/db/ResourceResolutionDBServiceTest.kt
ms/blueprintsprocessor/modules/inbounds/resource-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/resource/api/ResourceController.kt