summaryrefslogtreecommitdiffstats
path: root/openecomp-be
diff options
context:
space:
mode:
authoramitjai <amitjai@amdocs.com>2018-02-28 11:44:39 +0530
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-03-04 09:33:08 +0000
commitd1ff60acd2c3a416cc9c86a47d87aee99d8dd840 (patch)
treec0f86b621528680bbb66d7f6dc4e2b630f57731b /openecomp-be
parent313dce44ae1ab2328c33a6448e87b3fbb81b15f0 (diff)
EP UUIDs are not same in vlm.xml
EP UUIDs in the vendor-license-model.xml are not same each time we create new VSP version new UUID is assigned. Change-Id: I8d98652e2474d6096b4e24fb4b121533f5578a95 Issue-ID: SDC-1064 Signed-off-by: amitjai <amitjai@amdocs.com>
Diffstat (limited to 'openecomp-be')
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/healing/impl/SimpleHealingServiceImpl.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/healing/impl/SimpleHealingServiceImpl.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/healing/impl/SimpleHealingServiceImpl.java
index 76635b3132..cc2f8acb97 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/healing/impl/SimpleHealingServiceImpl.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/healing/impl/SimpleHealingServiceImpl.java
@@ -23,6 +23,8 @@ import org.openecomp.sdc.vendorlicense.dao.LicenseKeyGroupDaoFactory;
import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity;
import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyGroupEntity;
import org.openecomp.sdc.vendorlicense.healing.HealingService;
+import org.openecomp.sdc.versioning.VersioningManager;
+import org.openecomp.sdc.versioning.VersioningManagerFactory;
import org.openecomp.sdc.versioning.dao.types.VersionableEntity;
import java.util.UUID;
@@ -32,6 +34,9 @@ public class SimpleHealingServiceImpl implements HealingService {
EntitlementPoolDaoFactory.getInstance().createInterface();
private static final LicenseKeyGroupDao licenseKeyGroupDao =
LicenseKeyGroupDaoFactory.getInstance().createInterface();
+ private static final VersioningManager VERSIONING_MANAGER =
+ VersioningManagerFactory.getInstance().createInterface();
+
@Override
public VersionableEntity heal(VersionableEntity toHeal) {
return handleMissingVersionId(toHeal);
@@ -61,6 +66,9 @@ public class SimpleHealingServiceImpl implements HealingService {
throw new UnsupportedOperationException(
"Unsupported operation for 1610 release/1607->1610 migration.");
}
+
+ VERSIONING_MANAGER.publish(toHeal.getFirstClassCitizenId(), toHeal.getVersion(), "Add missing version_uuid on ep/lkg");
+
return toHeal;
}
}