diff options
author | franciscovila <javier.paradela.vila@est.tech> | 2022-05-26 10:23:13 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-05-31 14:27:16 +0000 |
commit | ccd6a2c2037610d13769e2759ea5653babf5cacb (patch) | |
tree | 04f7105c492a44a845e2c1531ebb911ba301fc69 /openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main | |
parent | b43eb22f91ffdc1e2ba5d82b3dc1a2c4250d06e0 (diff) |
Delete VSP - Ensure complete deletion of VSP from DB
Delete data from tables still containing the
deleted VSP id
Issue-ID: SDC-4023
Signed-off-by: franciscovila <javier.paradela.vila@est.tech>
Change-Id: I0b389d22ccba1b888005a5bf3f1af000867e32c1
Diffstat (limited to 'openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main')
2 files changed, 7 insertions, 0 deletions
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/VendorSoftwareProductManager.java b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/VendorSoftwareProductManager.java index 6a92dbb209..5e59e795e6 100644 --- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/VendorSoftwareProductManager.java +++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/VendorSoftwareProductManager.java @@ -58,6 +58,8 @@ public interface VendorSoftwareProductManager { PackageInfo createPackage(String vspId, Version version) throws IOException; + void updatePackage(PackageInfo packageInfo); + List<PackageInfo> listPackages(String category, String subCategory); File getTranslatedFile(String vspId, Version version); diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java index bf173a28be..234ee43f05 100644 --- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java +++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java @@ -539,6 +539,11 @@ public class VendorSoftwareProductManagerImpl implements VendorSoftwareProductMa } @Override + public void updatePackage(PackageInfo packageInfo) { + packageInfoDao.update(packageInfo); + } + + @Override public PackageInfo createPackage(final String vspId, final Version version) throws IOException { final ToscaServiceModel toscaServiceModel = enrichedServiceModelDao.getServiceModel(vspId, version); final VspDetails vspDetails = vspInfoDao.get(new VspDetails(vspId, version)); |