aboutsummaryrefslogtreecommitdiffstats
path: root/intentanalysis
diff options
context:
space:
mode:
authorKeguang He <hekeguang@chinamobile.com>2023-05-25 10:09:26 +0000
committerGerrit Code Review <gerrit@onap.org>2023-05-25 10:09:26 +0000
commitefb0c85f42c653d183c8fb4b7ce969405ba95023 (patch)
treea291b9a04c77a45948ff252744240c2cb4d96db1 /intentanalysis
parente004e125398130e92119ad4a5809cc0d55c0fc65 (diff)
parentcbbfd002769895c08cb203abe1a8733bccefff9a (diff)
Merge "Update the operation type string."
Diffstat (limited to 'intentanalysis')
-rw-r--r--intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/dcae/dmaap/DCAENotificationCallback.java4
-rw-r--r--intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/policy/dmaap/PolicyNotificationCallback.java4
2 files changed, 6 insertions, 2 deletions
diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/dcae/dmaap/DCAENotificationCallback.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/dcae/dmaap/DCAENotificationCallback.java
index 3c387a1..c35b2fa 100644
--- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/dcae/dmaap/DCAENotificationCallback.java
+++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/dcae/dmaap/DCAENotificationCallback.java
@@ -32,6 +32,8 @@ import org.springframework.beans.factory.annotation.Autowired;
public class DCAENotificationCallback implements NotificationCallback {
private static final Logger logger = LoggerFactory.getLogger(DCAENotificationCallback.class);
+ private static final String IntentOperation = "Assurance";
+
@Autowired
ComponentNotificationService componentNotificationService;
@@ -40,7 +42,7 @@ public class DCAENotificationCallback implements NotificationCallback {
logger.info("Received event from DCAE: \n" + msg);
NotificationEventModel event = (new Gson()).fromJson(msg, NotificationEventModel.class);
FulfillmentOperation info = new FulfillmentOperation();
- info.setOperation(event.getEntity().getOperation());
+ info.setOperation(IntentOperation);
info.setFulfillmentStatus(FulfillmentStatus.NOT_FULFILLED);
List<String> instances = new ArrayList<>();
instances.add(event.getEntity().getId());
diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/policy/dmaap/PolicyNotificationCallback.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/policy/dmaap/PolicyNotificationCallback.java
index 429f952..2230574 100644
--- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/policy/dmaap/PolicyNotificationCallback.java
+++ b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/adapters/policy/dmaap/PolicyNotificationCallback.java
@@ -32,6 +32,8 @@ public class PolicyNotificationCallback implements NotificationCallback {
private static final Logger logger = LoggerFactory.getLogger(PolicyNotificationCallback.class);
+ //only Assurance support . Delivery will be supported next release.
+ private static final String IntentOperation = "Assurance";
@Autowired
ComponentNotificationService componentNotificationService;
@@ -40,7 +42,7 @@ public class PolicyNotificationCallback implements NotificationCallback {
logger.info("Received event from Policy: \n" + msg);
NotificationEventModel event = (new Gson()).fromJson(msg, NotificationEventModel.class);
FulfillmentOperation info = new FulfillmentOperation();
- info.setOperation(event.getEntity().getOperation());
+ info.setOperation(IntentOperation);
info.setFulfillmentStatus(FulfillmentStatus.NOT_FULFILLED);
List<String> instances = new ArrayList<>();
instances.add(event.getEntity().getId());