Entry points in ToscaExportHandler for plugin use 01/108301/2
authorandre.schmid <andre.schmid@est.tech>
Mon, 25 May 2020 16:47:47 +0000 (17:47 +0100)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Thu, 28 May 2020 07:49:11 +0000 (07:49 +0000)
Open the access for two methods in ToscaExportHandler so they
can be called in a CsarEntryGenerator plugin.

Change-Id: I0ee1daab348c0fc85db56428369a5ec190cb0101
Issue-ID: SDC-3083
Signed-off-by: andre.schmid <andre.schmid@est.tech>
catalog-be/src/main/java/org/openecomp/sdc/be/tosca/ToscaExportHandler.java

index 0a51e59..92e9913 100644 (file)
@@ -244,7 +244,7 @@ public class ToscaExportHandler {
         return Either.left(fillImports.left().value().left);
     }
 
-    private Either<ToscaTemplate, ToscaError> convertToToscaTemplate(final Component component) {
+    public Either<ToscaTemplate, ToscaError> convertToToscaTemplate(final Component component) {
         if (null == DEFAULT_IMPORTS) {
             log.debug(FAILED_TO_GET_DEFAULT_IMPORTS_CONFIGURATION);
             return Either.right(ToscaError.GENERAL_ERROR);
@@ -660,7 +660,7 @@ public class ToscaExportHandler {
         return convertInterfaceNodeType(componentsCache, component, toscaNode, nodeTypes, false);
     }
 
-    private Either<ToscaTemplate, ToscaError> convertInterfaceNodeType(Map<String, Component> componentsCache,
+    public Either<ToscaTemplate, ToscaError> convertInterfaceNodeType(Map<String, Component> componentsCache,
                                                                        Component component, ToscaTemplate toscaNode,
                                                                        Map<String, ToscaNodeType> nodeTypes,
             boolean isAssociatedComponent) {