Skip to content
Snippets Groups Projects
Commit 4354d7c3 authored by Mathéo Joseph's avatar Mathéo Joseph Committed by Mathéo Joseph
Browse files

uicustomization: add uiCustom info to response when enrolling a device

Change-Id: Idf1493f0456a551606473c9ee2d95ede120ee898
parent 13655388
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@ public class DeviceRegistrationResponse {
private Boolean upnpEnabled;
private Boolean rendezVous;
private String defaultModerators;
private String uiCustomization;
public void setCertificateChain(X509Certificate[] certificateChain){
StringBuilder stringBuilder = new StringBuilder();
......@@ -86,6 +87,7 @@ public class DeviceRegistrationResponse {
this.upnpEnabled = policy.getUpnpEnabled();
this.rendezVous = policy.getRendezVous();
this.defaultModerators = policy.getDefaultModerators();
this.uiCustomization = policy.getUiCustomization();
}
......
......@@ -24,4 +24,5 @@ public class PolicyData {
private Boolean rendezVous;
private String defaultModerators;
private Boolean allowLookup;
private String uiCustomization;
}
......@@ -176,7 +176,6 @@ public class DeviceServlet extends HttpServlet {
obj.add("TURN.password", obj.get("turnServerPassword"));
obj.remove("turnServerPassword");
}
if (obj.get("proxyEnabled") != null) {
obj.add("Account.proxyEnabled", obj.get("proxyEnabled"));
obj.remove("proxyEnabled");
......@@ -197,6 +196,10 @@ public class DeviceServlet extends HttpServlet {
obj.add("Account.defaultModerators", obj.get("defaultModerators"));
obj.remove("defaultModerators");
}
if (obj.get("uiCustomization") != null) {
obj.add("Account.uiCustomization", obj.get("uiCustomization"));
obj.remove("uiCustomization");
}
resp.getOutputStream().write((obj.toString()).getBytes());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment