@Override public synchronized ApplicationEntity findApplicationEntity(String aet) throws ConfigurationException { return findDevice( "(&(objectclass=dicomNetworkAE)(dicomAETitle=" + aet + "))", aet) .getApplicationEntity(aet); }
@Override public synchronized ApplicationEntity findApplicationEntity(String aet) throws ConfigurationException { return findDevice( "(&(objectclass=dicomNetworkAE)(dicomAETitle=" + aet + "))", aet) .getApplicationEntity(aet); }
@Override public HL7Application findHL7Application(String name) throws ConfigurationException { Device device = config.findDevice( "(&(objectclass=hl7Application)(hl7ApplicationName=" + name + "))", name); HL7DeviceExtension hl7Ext = device.getDeviceExtension(HL7DeviceExtension.class); return hl7Ext.getHL7Application(name); }
private Device findDevice() throws ConfigurationException { String appName = System.getProperty(APP_NAME_PROPERTY, DEF_APP_NAME); String key = appName + ".DeviceName"; String name = System.getProperty(key, DEF_DEVICE_NAME); try ( LdapDicomConfiguration conf = new LdapDicomConfiguration(loadProperties(envURL(appName)))) { conf.addDicomConfigurationExtension(new LdapAuditLoggerConfiguration()); conf.addDicomConfigurationExtension(new LdapAuditRecordRepositoryConfiguration()); return conf.findDevice(name); } catch (ConfigurationNotFoundException e) { LOG.error("Missing Configuration for Device '{}' - you may change the Device name by System Property '{}'", name, key); throw e; } }
private Device findDevice() throws ConfigurationException { String appName = System.getProperty(APP_NAME_PROPERTY, DEF_APP_NAME); String key = appName + ".DeviceName"; String name = System.getProperty(key, DEF_DEVICE_NAME); try ( LdapDicomConfiguration conf = new LdapDicomConfiguration(loadProperties(envURL(appName)))) { conf.addDicomConfigurationExtension(new LdapAuditLoggerConfiguration()); conf.addDicomConfigurationExtension(new LdapAuditRecordRepositoryConfiguration()); return conf.findDevice(name); } catch (ConfigurationNotFoundException e) { LOG.error("Missing Configuration for Device '{}' - you may change the Device name by System Property '{}'", name, key); throw e; } }
public void addNetworkAE() throws ConfigurationException { Device device = conf.findDevice(deviceName); device.addConnection(conn); ApplicationEntity ae = new ApplicationEntity(aeTitle); device.addApplicationEntity(ae); ae.setDescription(aeDesc); ae.addConnection(conn); conf.merge(device, EnumSet.of(DicomConfiguration.Option.REGISTER)); }
public void addNetworkAE() throws ConfigurationException { Device device = conf.findDevice(deviceName); device.addConnection(conn); ApplicationEntity ae = new ApplicationEntity(aeTitle); device.addApplicationEntity(ae); ae.setDescription(aeDesc); ae.addConnection(conn); conf.merge(device, EnumSet.of(DicomConfiguration.Option.REGISTER)); }