From f99bbe36deb9945de191e02fa64901cdd919370c Mon Sep 17 00:00:00 2001 From: Kaveesha Date: Thu, 19 Nov 2020 17:28:24 +0530 Subject: [PATCH] Improve Input class in policy ui Configuration --- .../mgt/common/policy/mgt/ui/Input.java | 30 +++++++++++++++++++ .../device/mgt/common/policy/mgt/ui/Item.java | 10 +++++++ 2 files changed, 40 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/Input.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Input.java index 6aaa54a8e34..3deb7893fbb 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Input.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Input.java @@ -28,6 +28,9 @@ public class Input { private String type; private String placeholderValue; private List rules; + private String apiUrl; + private String arrayPath; + private String dataKey; @XmlElement(name = "Type") public String getType() { @@ -52,4 +55,31 @@ public class Input { public List getRules() { return rules; } public void setRules(List rules) { this.rules = rules; } + + @XmlElement(name = "Url") + public String getUrl() { + return apiUrl; + } + + public void setUrl(String url) { + this.apiUrl = url; + } + + @XmlElement(name = "ArrayPath") + public String getArrayPath() { + return arrayPath; + } + + public void setArrayPath(String arrayPath) { + this.arrayPath = arrayPath; + } + + @XmlElement(name = "DataKey") + public String getDataKey() { + return dataKey; + } + + public void setDataKey(String dataKey) { + this.dataKey = dataKey; + } } diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Item.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Item.java index 99ac1e397fc..faf97d7e113 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Item.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/policy/mgt/ui/Item.java @@ -45,6 +45,7 @@ public class Item { private InputList inputList; private String nullableValue; private String divider; + private boolean isHidden; @XmlElement(name = "Label") public String getLabel() { @@ -207,4 +208,13 @@ public class Item { public void setDivider(String divider) { this.divider = divider; } + + @XmlElement(name = "Hidden") + public boolean isHidden() { + return isHidden; + } + + public void setHidden(boolean hidden) { + isHidden = hidden; + } }