From 37e6d19d137f924626413aad8931f273cd2ababa Mon Sep 17 00:00:00 2001 From: Shiwei Tian Date: Wed, 7 Mar 2018 20:15:39 +0800 Subject: modify rest api response filed Issue-ID: HOLMES-104 Change-Id: I1bfe4455f1bbfa62ea7431952ddc5edd456279ff Signed-off-by: Shiwei Tian --- .../java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java | 3 +-- .../src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'rulemgt/src/main/java/org') 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 39e1bb6..a3ef7e8 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 @@ -15,7 +15,6 @@ */ package org.onap.holmes.rulemgt.bean.response; -import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; import lombok.Setter; @@ -33,5 +32,5 @@ public class RuleResult4API { private Date updateTime; private String modifier; private int enabled; - private String closedControlLoopName; + private String loopControlName; } 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 9e324e6..484fb5f 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,7 +235,7 @@ public class RuleMgtWrapper { ruleResult4API.setUpdateTime(correlationRule.getUpdateTime()); ruleResult4API.setModifier(correlationRule.getModifier()); ruleResult4API.setEnabled(correlationRule.getEnabled()); - ruleResult4API.setClosedControlLoopName(correlationRule.getClosedControlLoopName()); + ruleResult4API.setLoopControlName(correlationRule.getClosedControlLoopName()); ruleResult4APIs.add(ruleResult4API); } return ruleResult4APIs; -- cgit 1.2.3-korg