mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge with master
This commit is contained in:
commit
5c03b3befc
@ -22,21 +22,10 @@ import java.util.List;
|
|||||||
|
|
||||||
public class ConfigOperation extends Operation {
|
public class ConfigOperation extends Operation {
|
||||||
|
|
||||||
private final List<Property> properties;
|
|
||||||
|
|
||||||
public ConfigOperation() {
|
public ConfigOperation() {
|
||||||
properties = new ArrayList<>();
|
|
||||||
setControl(Control.REPEAT);
|
setControl(Control.REPEAT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Property> getConfigProperties() {
|
|
||||||
return properties;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void addConfigProperty(String name, Object value, Class<?> type) {
|
|
||||||
properties.add(new Property(name, value, type));
|
|
||||||
}
|
|
||||||
|
|
||||||
public Type getType() {
|
public Type getType() {
|
||||||
return Type.CONFIG;
|
return Type.CONFIG;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,9 +68,7 @@ public class MDMAndroidOperationUtil {
|
|||||||
WebApplication webApplication = new WebApplication();
|
WebApplication webApplication = new WebApplication();
|
||||||
webApplication.setUrl(application.getLocation());
|
webApplication.setUrl(application.getLocation());
|
||||||
webApplication.setName(application.getName());
|
webApplication.setName(application.getName());
|
||||||
// webApplication.setType(application.getType().toString());
|
webApplication.setType(application.getType().toString());
|
||||||
// Hard-corded "type" to "webapp". Some agent versions accept only "webapp" as the type.
|
|
||||||
webApplication.setType("webapp");
|
|
||||||
webApplication.setProperties(application.getProperties());
|
webApplication.setProperties(application.getProperties());
|
||||||
operation.setPayLoad(webApplication.toJSON());
|
operation.setPayLoad(webApplication.toJSON());
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user