From 6e0f386664ef9cb20bd2bab4af4e66b9e9261c1e Mon Sep 17 00:00:00 2001 From: "tcdlpds@gmail.com" Date: Wed, 8 Apr 2020 21:05:25 +0530 Subject: [PATCH] Improve policy ui config structure --- .../device/mgt/common/policy/mgt/ui/Feature.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Feature.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Feature.java index 897abc67de..fcc61c08b3 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Feature.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Feature.java @@ -19,15 +19,13 @@ package org.wso2.carbon.device.mgt.common.policy.mgt.ui; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlRootElement; -import java.util.List; @XmlRootElement(name = "Feature") public class Feature { private String featureCode; - private List contents; + private Content content; @XmlAttribute(name = "code", required = true) public String getFeatureCode() { @@ -38,13 +36,12 @@ public class Feature { this.featureCode = featureCode; } - @XmlElementWrapper(name = "Contents") @XmlElement(name = "Content") - public List getContents() { - return contents; + public Content getContent() { + return content; } - public void setContents(List contents) { - this.contents = contents; + public void setContent(Content content) { + this.content = content; } }