summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/clamp/loop/components/external/DcaeComponent.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/org/onap/clamp/loop/components/external/DcaeComponent.java b/src/main/java/org/onap/clamp/loop/components/external/DcaeComponent.java
index e22b425ac..acb7190f7 100644
--- a/src/main/java/org/onap/clamp/loop/components/external/DcaeComponent.java
+++ b/src/main/java/org/onap/clamp/loop/components/external/DcaeComponent.java
@@ -165,6 +165,18 @@ public class DcaeComponent extends ExternalComponent {
return rootObject.toString();
}
+ /**
+ * Return the uninstallation payload for DCAE.
+ *
+ * @param microServicePolicy The microServicePolicy object
+ * @return The payload in string (json)
+ */
+ public static String getUndeployPayload(MicroServicePolicy policy) {
+ JsonObject rootObject = new JsonObject();
+ rootObject.addProperty(DCAE_SERVICETYPE_ID, policy.getDcaeBlueprintId());
+ return rootObject.toString();
+ }
+
@Override
public ExternalComponentState computeState(Exchange camelExchange) {