From 46f9fd57f24428f6a6fd0d290b0463e188975231 Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Thu, 10 Aug 2017 12:08:45 +0300 Subject: [SDC] code sync Change-Id: Ia33a7874802b8ac2f49aed9199e109ea509e950e Signed-off-by: Michael Lando --- .../main/java/org/openecomp/sdc/be/model/CsarInfo.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'catalog-model/src/main/java/org') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/CsarInfo.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/CsarInfo.java index 575cc68f7f..9d231a7d27 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/CsarInfo.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/CsarInfo.java @@ -5,21 +5,28 @@ import java.util.Map; import java.util.PriorityQueue; import java.util.Queue; +import org.yaml.snakeyaml.Yaml; + public class CsarInfo { String vfResourceName; User modifier; String csarUUID; Map csar; + String mainTemplateContent; + Map mappedToscaMainTemplate; Map createdNodesToscaResourceNames; Queue cvfcToCreateQueue; boolean isUpdate; Map createdNodes; - public CsarInfo(String vfResourceName, User modifier, String csarUUID, Map csar, boolean isUpdate){ + @SuppressWarnings("unchecked") + public CsarInfo(String vfResourceName, User modifier, String csarUUID, Map csar, String mainTemplateContent, boolean isUpdate){ this.vfResourceName = vfResourceName; this.modifier = modifier; this.csarUUID = csarUUID; this.csar = csar; + this.mainTemplateContent = mainTemplateContent; + this.mappedToscaMainTemplate = (Map) new Yaml().load(mainTemplateContent); this.createdNodesToscaResourceNames = new HashMap<>(); this.cvfcToCreateQueue = new PriorityQueue<>(); this.isUpdate = isUpdate; @@ -58,6 +65,14 @@ public class CsarInfo { this.csar = csar; } + public String getMainTemplateContent() { + return mainTemplateContent; + } + + public Map getMappedToscaMainTemplate() { + return mappedToscaMainTemplate; + } + public Map getCreatedNodesToscaResourceNames() { return createdNodesToscaResourceNames; } -- cgit 1.2.3-korg