From eb107f50511ae27b328b664f239e01abe3b4b5fd Mon Sep 17 00:00:00 2001 From: Shamalka Navod Date: Fri, 12 Jun 2020 11:42:54 +0000 Subject: [PATCH] Improve policy bean classes --- .../carbon/device/mgt/common/policy/mgt/ui/Column.java | 10 ++++++++++ .../carbon/device/mgt/common/policy/mgt/ui/Upload.java | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Column.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Column.java index 5e4c419a3b..4ecdb313ae 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Column.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Column.java @@ -31,6 +31,7 @@ public class Column { private Select select; private Input input; private Upload upload; + private Checkbox checkbox; @XmlAttribute(name = "name", required = true) public String getName() { return name; } @@ -86,4 +87,13 @@ public class Column { public void setUpload(Upload upload) { this.upload = upload; } + + @XmlElement(name = "Checkbox") + public Checkbox getCheckbox() { + return checkbox; + } + + public void setCheckbox(Checkbox checkbox) { + this.checkbox = checkbox; + } } diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Upload.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Upload.java index e1bbf40a06..966df5de59 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Upload.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Upload.java @@ -24,6 +24,7 @@ import javax.xml.bind.annotation.XmlRootElement; public class Upload { private String placeholderValue; private Boolean showContent; + private Boolean setFileName; @XmlElement(name = "Placeholder") public String getPlaceholderValue() { @@ -42,4 +43,13 @@ public class Upload { public void setShowContent(Boolean showContent) { this.showContent = showContent; } + + @XmlElement(name = "SetFileName") + public Boolean getSetFileName() { + return setFileName; + } + + public void setSetFileName(Boolean setFileName) { + this.setFileName = setFileName; + } }