Skip to content

Commit

Permalink
dcm4che/dcm4chee-arc-light#2101 : RESTful service: List Web Applicati…
Browse files Browse the repository at this point in the history
…ons - Suppress Keycloak Client ID for local Web Services
  • Loading branch information
vrindanayak committed Jul 30, 2019
1 parent 1d11cac commit a53a41a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,17 @@ public void writeTo(ApplicationEntityInfo aetInfo, JsonGenerator gen) {
}

public void writeTo(WebApplicationInfo webappInfo, JsonGenerator gen) {
writeTo(webappInfo, gen, webappInfo.getKeycloakClientID());
}

public void writeTo(WebApplicationInfo webappInfo, JsonGenerator gen, String keycloakClientID) {
JsonWriter writer = new JsonWriter(gen);
gen.writeStartObject();
writer.writeNotNullOrDef("dicomDeviceName", webappInfo.getDeviceName(), null);
writer.writeNotNullOrDef("dcmWebAppName", webappInfo.getApplicationName(), null);
writer.writeNotNullOrDef("dicomDescription", webappInfo.getDescription(), null);
writer.writeNotNullOrDef("dcmWebServicePath", webappInfo.getServicePath(), null);
writer.writeNotNullOrDef("dcmKeycloakClientID", webappInfo.getKeycloakClientID(), null);
writer.writeNotNullOrDef("dcmKeycloakClientID", keycloakClientID, null);
writer.writeNotEmpty("dcmWebServiceClass", webappInfo.getServiceClasses());
writer.writeNotNullOrDef("dicomAETitle", webappInfo.getAETitle(), null);
writer.writeNotEmpty("dicomApplicationCluster", webappInfo.getApplicationClusters());
Expand Down

0 comments on commit a53a41a

Please sign in to comment.