deviceDN); LdapUtils.storeDiffObject(ldapObj, mods, "dicomDescription", a.getDescription(), b.getDescription(), null); LdapUtils.storeDiff(ldapObj, mods, "dicomApplicationCluster", a.getApplicationClusters(),
private void writeTo(Device device, HL7Application hl7App, JsonWriter writer) { writer.writeStartObject(); writer.writeNotNullOrDef("hl7ApplicationName", hl7App.getApplicationName(), null); writer.writeNotNull("dicomInstalled", hl7App.getInstalled()); writer.writeConnRefs(device.listConnections(), hl7App.getConnections()); writer.writeNotEmpty("hl7AcceptedSendingApplication", hl7App.getAcceptedSendingApplications()); writer.writeNotEmpty("hl7OtherApplicationName", hl7App.getOtherApplicationNames()); writer.writeNotEmpty("hl7AcceptedMessageType", hl7App.getAcceptedMessageTypes()); writer.writeNotNullOrDef("hl7DefaultCharacterSet", hl7App.getHL7DefaultCharacterSet(), "ASCII"); writer.writeNotNullOrDef("hl7SendingCharacterSet", hl7App.getHL7SendingCharacterSet(), "ASCII"); writer.writeNotNullOrDef("dicomDescription", hl7App.getDescription(), null); writer.writeNotEmpty("dicomApplicationCluster", hl7App.getApplicationClusters()); for (JsonHL7ConfigurationExtension ext : extensions) ext.storeTo(hl7App, device, writer); writer.writeEnd(); }
private void writeTo(Device device, HL7Application hl7App, JsonWriter writer) { writer.writeStartObject(); writer.writeNotNullOrDef("hl7ApplicationName", hl7App.getApplicationName(), null); writer.writeNotNull("dicomInstalled", hl7App.getInstalled()); writer.writeConnRefs(device.listConnections(), hl7App.getConnections()); writer.writeNotEmpty("hl7AcceptedSendingApplication", hl7App.getAcceptedSendingApplications()); writer.writeNotEmpty("hl7OtherApplicationName", hl7App.getOtherApplicationNames()); writer.writeNotEmpty("hl7AcceptedMessageType", hl7App.getAcceptedMessageTypes()); writer.writeNotNullOrDef("hl7DefaultCharacterSet", hl7App.getHL7DefaultCharacterSet(), "ASCII"); writer.writeNotNullOrDef("hl7SendingCharacterSet", hl7App.getHL7SendingCharacterSet(), "ASCII"); writer.writeNotNullOrDef("dicomDescription", hl7App.getDescription(), null); writer.writeNotEmpty("dicomApplicationCluster", hl7App.getApplicationClusters()); for (JsonHL7ConfigurationExtension ext : extensions) ext.storeTo(hl7App, device, writer); writer.writeEnd(); }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, HL7Application hl7App, String deviceDN, Attributes attrs) { attrs.put(new BasicAttribute("objectclass", "hl7Application")); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7ApplicationName", hl7App.getApplicationName(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "hl7AcceptedSendingApplication", hl7App.getAcceptedSendingApplications()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmOtherApplicationNames", hl7App.getOtherApplicationNames()); LdapUtils.storeNotEmpty(ldapObj, attrs, "hl7AcceptedMessageType", hl7App.getAcceptedMessageTypes()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7DefaultCharacterSet", hl7App.getHL7DefaultCharacterSet(), "ASCII"); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7SendingCharacterSet", hl7App.getHL7SendingCharacterSet(), "ASCII"); LdapUtils.storeConnRefs(ldapObj, attrs, hl7App.getConnections(), deviceDN); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomDescription", hl7App.getDescription(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomApplicationCluster", hl7App.getApplicationClusters()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", hl7App.getInstalled(), null); for (LdapHL7ConfigurationExtension ext : extensions) ext.storeTo(ldapObj, hl7App, deviceDN, attrs); return attrs; }