From cb44534e601539dbe1b882da257f9defad57f5f3 Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 17 Feb 2021 12:45:11 +0000 Subject: Fix 'not deleting Outputs' Change-Id: I1a5ab1dec4ab7ec381df157e9c12dc8fa00e82c4 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-3448 --- .../be/model/jsonjanusgraph/operations/ToscaOperationFacade.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'catalog-model/src/main/java') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaOperationFacade.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaOperationFacade.java index b4517e47c5..083483be1b 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaOperationFacade.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaOperationFacade.java @@ -60,6 +60,7 @@ import org.openecomp.sdc.be.dao.jsongraph.types.JsonParseFlagEnum; import org.openecomp.sdc.be.dao.jsongraph.types.VertexTypeEnum; import org.openecomp.sdc.be.dao.neo4j.GraphPropertiesDictionary; import org.openecomp.sdc.be.datatypes.elements.ArtifactDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.AttributeDataDefinition; import org.openecomp.sdc.be.datatypes.elements.CapabilityDataDefinition; import org.openecomp.sdc.be.datatypes.elements.ComponentInstanceDataDefinition; import org.openecomp.sdc.be.datatypes.elements.DataTypeDataDefinition; @@ -3060,6 +3061,12 @@ public class ToscaOperationFacade { inputsToDelete.stream().map(PropertyDataDefinition::getName).collect(Collectors.toList())); } + public StorageOperationStatus deleteComponentInstanceOutputsFromTopologyTemplate(final Component containerComponent, + final List outputsToDelete) { + return topologyTemplateOperation.deleteToscaDataElements(containerComponent.getUniqueId(), EdgeLabelEnum.OUTPUTS, + outputsToDelete.stream().map(AttributeDataDefinition::getName).collect(Collectors.toList())); + } + public StorageOperationStatus updateComponentInstanceCapabiltyProperty(Component containerComponent, String componentInstanceUniqueId, String capabilityPropertyKey, ComponentInstanceProperty property) { -- cgit 1.2.3-korg