From 14228d0f16f403981f64b1925ba37ac21af847b6 Mon Sep 17 00:00:00 2001 From: Abhai Singh Date: Thu, 4 Jan 2018 18:00:25 +0530 Subject: Fix ProcessDaoZusammenImpl Fixed reported sonar issues Change-Id: Id53e3ab1d70e17dd1a7a10cca3c9ee627fef4771 Issue-ID: SDC-343 Signed-off-by: Abhai Singh --- .../dao/impl/zusammen/ProcessDaoZusammenImpl.java | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/ProcessDaoZusammenImpl.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/ProcessDaoZusammenImpl.java index d74900bdf6..3ec31ea33d 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/ProcessDaoZusammenImpl.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/impl/zusammen/ProcessDaoZusammenImpl.java @@ -45,7 +45,7 @@ public class ProcessDaoZusammenImpl implements ProcessDao { @Override public void registerVersioning(String versionableEntityType) { - + // registerVersioning not implemented for ProcessDaoZusammenImpl } @Override @@ -120,18 +120,6 @@ public class ProcessDaoZusammenImpl implements ProcessDao { Optional optionalElement = zusammenAdaptor.getElementByName(context, elementContext, new Id(processEntity.getComponentId()), ElementType.Processes.name()); - /* ZusammenElement aggregatedElement = - buildStructuralElement(ElementType.Processes, Action.DELETE); - - if (processEntity.getComponentId() != null) { - ZusammenElement componentElement = createParentElement(processEntity); - aggregatedElement = VspaggregateElements(componentElement, - aggregatedElement); - } - - zusammenAdaptor.saveElement(context, elementContext, aggregatedElement, "Delete All - processes");*/ - if (optionalElement.isPresent()) { Element processesElement = optionalElement.get(); Collection processes = processesElement.getSubElements(); @@ -147,11 +135,6 @@ public class ProcessDaoZusammenImpl implements ProcessDao { @Override public void deleteVspAll(String vspId, Version version) { - /* ProcessEntity processEntity = new ProcessEntity(); - processEntity.setVersion(version); - processEntity.setVspId(vspId); - deleteAll(processEntity); */ - SessionContext context = createSessionContext(); ElementContext elementContext = new ElementContext(vspId, version.getId()); -- cgit 1.2.3-korg