aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib
diff options
context:
space:
mode:
authorAbhai Singh <Abhai.Singh@amdocs.com>2018-01-04 18:00:25 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-01-04 15:00:18 +0000
commit14228d0f16f403981f64b1925ba37ac21af847b6 (patch)
tree37e3dc5510e800d5974f1b10edeb04c85f7b4fb1 /openecomp-be/lib
parent77eba1b3a0c7f6e04e5557be354a93bb7300a468 (diff)
Fix ProcessDaoZusammenImpl
Fixed reported sonar issues Change-Id: Id53e3ab1d70e17dd1a7a10cca3c9ee627fef4771 Issue-ID: SDC-343 Signed-off-by: Abhai Singh <Abhai.Singh@amdocs.com>
Diffstat (limited to 'openecomp-be/lib')
-rw-r--r--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.java19
1 files changed, 1 insertions, 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<Element> 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<Element> 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());