Added properties to platform and subscription

feature/appm-store/pbac
Chatura Dilan 8 years ago
parent 954cb3e195
commit baed4318b5

@ -18,6 +18,7 @@
*/ */
package org.wso2.carbon.device.application.mgt.core.dto; package org.wso2.carbon.device.application.mgt.core.dto;
import org.json.JSONObject;
import org.wso2.carbon.device.application.mgt.core.jaxrs.Exclude; import org.wso2.carbon.device.application.mgt.core.jaxrs.Exclude;
import java.util.List; import java.util.List;
@ -37,7 +38,7 @@ public class Platform {
private List<String> tags; private List<String> tags;
private String properties; private JSONObject descriptor;
private List<Application> applications; private List<Application> applications;
@ -81,12 +82,12 @@ public class Platform {
this.iconName = iconName; this.iconName = iconName;
} }
public String getProperties() { public JSONObject getDescriptor() {
return properties; return descriptor;
} }
public void setProperties(String properties) { public void setDescriptor(JSONObject descriptor) {
this.properties = properties; this.descriptor = descriptor;
} }
public List<String> getTags() { public List<String> getTags() {

@ -19,6 +19,7 @@
package org.wso2.carbon.device.application.mgt.core.dto; package org.wso2.carbon.device.application.mgt.core.dto;
import java.util.Date; import java.util.Date;
import java.util.Map;
public class Subscription { public class Subscription {
@ -32,6 +33,8 @@ public class Subscription {
private ApplicationRelease applicationRelease; private ApplicationRelease applicationRelease;
private Map<String, String> properties;
public String getValue() { public String getValue() {
return value; return value;
} }
@ -71,4 +74,12 @@ public class Subscription {
public void setApplicationRelease(ApplicationRelease applicationRelease) { public void setApplicationRelease(ApplicationRelease applicationRelease) {
this.applicationRelease = applicationRelease; this.applicationRelease = applicationRelease;
} }
public Map<String, String> getProperties() {
return properties;
}
public void setProperties(Map<String, String> properties) {
this.properties = properties;
}
} }

Loading…
Cancel
Save