private String toFilter(HL7ApplicationInfo keys) { if (keys == null) return "(objectclass=hl7Application)"; StringBuilder sb = new StringBuilder(); sb.append("(&(objectclass=hl7Application)"); appendFilter("hl7ApplicationName", keys.getHl7ApplicationName(), sb); appendFilter("hl7OtherApplicationName", keys.getHl7ApplicationName(), sb); appendFilter("dicomApplicationCluster", keys.getApplicationClusters(), sb); sb.append(")"); return sb.toString(); }
public void writeTo(HL7ApplicationInfo hl7AppInfo, JsonGenerator gen) { JsonWriter writer = new JsonWriter(gen); gen.writeStartObject(); writer.writeNotNullOrDef("dicomDeviceName", hl7AppInfo.getDeviceName(), null); writer.writeNotNullOrDef("hl7ApplicationName", hl7AppInfo.getHl7ApplicationName(), null); writer.writeNotEmpty("hl7OtherApplicationName", hl7AppInfo.getHl7OtherApplicationName()); writer.writeNotNullOrDef("dicomDescription", hl7AppInfo.getDescription(), null); writer.writeNotEmpty("dicomApplicationCluster", hl7AppInfo.getApplicationClusters()); writer.writeNotNull("dicomInstalled", hl7AppInfo.getInstalled()); writeNotExtendedConns(hl7AppInfo.getConnections(), writer); gen.writeEnd(); }
public void writeTo(HL7ApplicationInfo hl7AppInfo, JsonGenerator gen) { JsonWriter writer = new JsonWriter(gen); gen.writeStartObject(); writer.writeNotNullOrDef("dicomDeviceName", hl7AppInfo.getDeviceName(), null); writer.writeNotNullOrDef("hl7ApplicationName", hl7AppInfo.getHl7ApplicationName(), null); writer.writeNotEmpty("hl7OtherApplicationName", hl7AppInfo.getHl7OtherApplicationName()); writer.writeNotNullOrDef("dicomDescription", hl7AppInfo.getDescription(), null); writer.writeNotEmpty("dicomApplicationCluster", hl7AppInfo.getApplicationClusters()); writer.writeNotNull("dicomInstalled", hl7AppInfo.getInstalled()); writeNotExtendedConns(hl7AppInfo.getConnections(), writer); gen.writeEnd(); }