From eb500658f2bb6ae0945774ba48ea027854345378 Mon Sep 17 00:00:00 2001 From: manoj Date: Wed, 8 Apr 2015 13:27:35 +0530 Subject: [PATCH] Move payload property to operation object --- .../device/mgt/common/operation/mgt/Operation.java | 10 ++++++++++ .../mgt/core/operation/mgt/ProfileOperation.java | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/Operation.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/Operation.java index 79c9a7f001..6c52182760 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/Operation.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/Operation.java @@ -41,6 +41,7 @@ public class Operation { private String receivedTimeStamp; private String createdTimeStamp; private boolean isEnabled; + private Object payLoad; @XmlElement public String getCode() { @@ -109,4 +110,13 @@ public class Operation { this.isEnabled = isEnabled; } + public Object getPayLoad() { + return payLoad; + } + + public void setPayLoad(Object payLoad) { + this.payLoad = payLoad; + } + + } \ No newline at end of file diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/ProfileOperation.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/ProfileOperation.java index 89a9a33e5b..6c9abbed4c 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/ProfileOperation.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/ProfileOperation.java @@ -22,16 +22,6 @@ import java.io.Serializable; public class ProfileOperation extends ConfigOperation implements Serializable { - private Object payload; - - public Object getPayload() { - return payload; - } - - public void setPayload(Object payload) { - this.payload = payload; - } - public Type getType() { return Type.PROFILE; }