diff options
author | 2021-08-20 11:24:06 +0100 | |
---|---|---|
committer | 2021-08-25 11:25:31 +0100 | |
commit | 79e41e0794035ea8dd3ae3064f8d368b5345df95 (patch) | |
tree | 8d16f71d154195caee224407ff50cd6792610e20 /src/main/java/org/onap/cps/ncmp/dmi/service/DmiService.java | |
parent | eb26379d71b67c9e76f366665549c92d6f05b1eb (diff) |
Write data for cm handle passthrough:running
Issue-ID: CPS-574
Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I15e2ad500d2bbf7a1d408b8a852287e55bddbecb
Diffstat (limited to 'src/main/java/org/onap/cps/ncmp/dmi/service/DmiService.java')
-rw-r--r-- | src/main/java/org/onap/cps/ncmp/dmi/service/DmiService.java | 70 |
1 files changed, 39 insertions, 31 deletions
diff --git a/src/main/java/org/onap/cps/ncmp/dmi/service/DmiService.java b/src/main/java/org/onap/cps/ncmp/dmi/service/DmiService.java index 83301270..f1446084 100644 --- a/src/main/java/org/onap/cps/ncmp/dmi/service/DmiService.java +++ b/src/main/java/org/onap/cps/ncmp/dmi/service/DmiService.java @@ -42,8 +42,8 @@ public interface DmiService { ModuleSet getModulesForCmHandle(String cmHandle) throws DmiException; /** - * This method used to register the given {@code CmHandles} - * which contains list of {@code CmHandle} to cps repository. + * This method used to register the given {@code CmHandles} which contains list of {@code CmHandle} to cps + * repository. * * @param cmHandles list of cm-handles */ @@ -53,50 +53,58 @@ public interface DmiService { * Get module resources for the given cm handle and modules. * * @param cmHandle cmHandle - * @param modules a list of module data + * @param modules a list of module data * @return returns all module resources */ String getModuleResources(String cmHandle, List<ModuleReference> modules); /** - * This method use to fetch the resource data from cm handle - * for datastore pass-through operational and resource Identifier. Fields and depths query - * parameter are used to filter the response from network resource. + * This method use to fetch the resource data from cm handle for datastore pass-through operational and resource + * Identifier. Fields and depths query parameter are used to filter the response from network resource. * - * @param cmHandle cm handle identifier - * @param resourceIdentifier resource identifier - * @param acceptParam accept header parameter - * @param fieldsQuery fields query parameter - * @param depthQuery depth query parameter + * @param cmHandle cm handle identifier + * @param resourceIdentifier resource identifier + * @param acceptParam accept header parameter + * @param fieldsQuery fields query parameter + * @param depthQuery depth query parameter * @param cmHandlePropertyMap cm handle properties - * * @return {@code Object} response from network function */ Object getResourceDataOperationalForCmHandle(@NotNull String cmHandle, - @NotNull String resourceIdentifier, - String acceptParam, - String fieldsQuery, - Integer depthQuery, - Map<String, String> cmHandlePropertyMap); + @NotNull String resourceIdentifier, + String acceptParam, + String fieldsQuery, + Integer depthQuery, + Map<String, String> cmHandlePropertyMap); /** - * This method use to fetch the resource data from cm handle - * for datastore pass-through running and resource Identifier. Fields and depths query - * parameter are used to filter the response from network resource. + * This method use to fetch the resource data from cm handle for datastore pass-through running and resource + * Identifier. Fields and depths query parameter are used to filter the response from network resource. * - * @param cmHandle cm handle identifier - * @param resourceIdentifier resource identifier - * @param acceptParam accept header parameter - * @param fieldsQuery fields query parameter - * @param depthQuery depth query parameter + * @param cmHandle cm handle identifier + * @param resourceIdentifier resource identifier + * @param acceptParam accept header parameter + * @param fieldsQuery fields query parameter + * @param depthQuery depth query parameter * @param cmHandlePropertyMap cm handle properties - * * @return {@code Object} response from network function */ Object getResourceDataPassThroughRunningForCmHandle(@NotNull String cmHandle, - @NotNull String resourceIdentifier, - String acceptParam, - String fieldsQuery, - Integer depthQuery, - Map<String, String> cmHandlePropertyMap); + @NotNull String resourceIdentifier, + String acceptParam, + String fieldsQuery, + Integer depthQuery, + Map<String, String> cmHandlePropertyMap); + + /** + * Write resource data to sdnc using passthrough running. + * + * @param cmHandle cmHandle + * @param resourceIdentifier resource identifier + * @param dataType accept header parameter + * @param data request data + * @return response from sdnc + */ + String writeResourceDataPassthroughForCmHandle(String cmHandle, String resourceIdentifier, String dataType, + Object data); }
\ No newline at end of file |