summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShiwei Tian <tian.shiwei@zte.com.cn>2018-03-07 20:15:39 +0800
committerShiwei Tian <tian.shiwei@zte.com.cn>2018-03-07 20:15:39 +0800
commit37e6d19d137f924626413aad8931f273cd2ababa (patch)
treeb802d22a0b64daa00313d7b018c6345d0bdd6ac8
parentc03e6174c42abae40f72e57472fdc89208a951bf (diff)
modify rest api response filed
Issue-ID: HOLMES-104 Change-Id: I1bfe4455f1bbfa62ea7431952ddc5edd456279ff Signed-off-by: Shiwei Tian <tian.shiwei@zte.com.cn>
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java3
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java2
2 files changed, 2 insertions, 3 deletions
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;