aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-02-17 17:53:17 +0100
committersebdet <sebastien.determe@intl.att.com>2021-02-19 10:09:31 +0100
commitc427e6459d066859e6da068bf50c78a0d120080a (patch)
treeb3b63a7919175a3500f2c26eb02c7cd9a6475ce0 /src/main/java/org/onap
parenta0a3a03686a386bf6def6f7da6de4d3f6a11ce61 (diff)
Add code in UI to create new policy version
Add code to call the policy create backend endpoint + alert box to show status of the creation + Fix backend + Issue-ID: POLICY-2928 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia8f2506ecc692ad68111ebe7a55a92579b951908
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r--src/main/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMerger.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMerger.java b/src/main/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMerger.java
index cf3c1656c..44b11119b 100644
--- a/src/main/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMerger.java
+++ b/src/main/java/org/onap/policy/clamp/policy/pdpgroup/PoliciesPdpMerger.java
@@ -105,9 +105,11 @@ public class PoliciesPdpMerger {
/**
* This method removes the pdp States added for one policy.
*
- * @param policyJsonNode The policy node in Json
+ * @param policyJsonNode The policy node Json as String
+ * @return The Json with pdp group info removed
*/
public static JsonObject removePdpStatesOnePolicy(JsonObject policyJsonNode) {
+ //JsonObject policyJson = JsonUtils.GSON.fromJson(policyJsonNode, JsonObject.class);
// Simply remove the nodes we have added.
policyJsonNode.remove(PdpGroupsAnalyzer.ASSIGNED_PDP_GROUPS_INFO);
policyJsonNode.remove(PdpGroupsAnalyzer.SUPPORTED_PDP_GROUPS_INFO);