public DcmLdap(Hashtable<?, ?> env) throws ConfigurationException { conf = new LdapDicomConfiguration(env); }
public DcmLdap(Hashtable<?, ?> env) throws ConfigurationException { conf = new LdapDicomConfiguration(env); }
protected DicomConfiguration getLdapConfiguration() throws ConfigurationException { LdapDicomConfiguration conf = new LdapDicomConfiguration(ldapEnv()); conf.addDicomConfigurationExtension(new LdapGenericConfigExtension<StorageConfiguration>(StorageConfiguration.class)); return conf; }
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; } }