From efee8d062b331ecbf1a0c779c6567b08bcd0fcb2 Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Mon, 16 Oct 2017 14:07:36 +0800 Subject: Fix the CSIT Problem Change-Id: I31963025037d80d295eff1e71dc1773c723a735e Issue-ID: HOLMES-76 Signed-off-by: Guangrong Fu --- .../main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java | 2 ++ .../src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java | 1 + 2 files changed, 3 insertions(+) (limited to 'rulemgt/src') diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java index c444b22..e97b94d 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java @@ -39,4 +39,6 @@ public class RuleResult4API { private Date updateTime; private String modifier; private int enabled; + @JsonProperty(value = "loopcontrolname") + private String closedControlLoopName; } diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java index 6ab7576..146e034 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java @@ -235,6 +235,7 @@ public class RuleMgtWrapper { ruleResult4API.setUpdateTime(correlationRule.getUpdateTime()); ruleResult4API.setModifier(correlationRule.getModifier()); ruleResult4API.setEnabled(correlationRule.getEnabled()); + ruleResult4API.setClosedControlLoopName(correlationRule.getClosedControlLoopName()); ruleResult4APIs.add(ruleResult4API); } return ruleResult4APIs; -- cgit 1.2.3-korg