private void loadChilds(ApplicationEntity ae, String aeDN) throws NamingException, ConfigurationException { loadTransferCapabilities(ae, aeDN); for (LdapDicomConfigurationExtension ext : extensions) ext.loadChilds(ae, aeDN); }
private void updateCertificates(String dn, X509Certificate[] prev, X509Certificate[] certs) throws CertificateEncodingException, NamingException { if (!LdapUtils.equals(prev, certs)) storeCertificates(dn, certs); }
private void mergeChilds(ConfigurationChanges diffs, Device prev, Device device, String deviceDN, boolean preserveVendorData) throws NamingException, ConfigurationException { mergeConnections(diffs, prev, device, deviceDN); mergeAEs(diffs, prev, device, deviceDN, preserveVendorData); mergeWebApps(diffs, prev, device, deviceDN); for (LdapDicomConfigurationExtension ext : extensions) ext.mergeChilds(diffs, prev, device, deviceDN); }
public synchronized void destroySubcontextWithChilds(String name) throws NamingException { NamingEnumeration<NameClassPair> list = ctx.list(name); try { while (list.hasMore()) destroySubcontextWithChilds(list.next().getNameInNamespace()); } finally { LdapUtils.safeClose(list); } ctx.destroySubcontext(name); }
public NamingEnumeration<SearchResult> search(String deviceName, String[] attrsArray, String filter) throws NamingException { return deviceName != null ? search(deviceRef(deviceName), filter, attrsArray) : ctx.search(devicesDN, filter, searchControlSubtreeScope(0, attrsArray, true)); }
private void loadChilds(Device device, String deviceDN) throws NamingException, ConfigurationException { loadConnections(device, deviceDN); loadApplicationEntities(device, deviceDN); loadWebApplications(device, deviceDN); for (LdapDicomConfigurationExtension ext : extensions) ext.loadChilds(device, deviceDN); }
@Override public synchronized String[] listDeviceNames() throws ConfigurationException { if (!configurationExists()) return StringUtils.EMPTY_STRING; return list(devicesDN, "(objectclass=dicomDevice)", "dicomDeviceName"); }
@Override public ConfigurationChanges merge(Device device, EnumSet<Option> options) throws ConfigurationException { ConfigurationChanges diffs = configurationChangesOf(options); merge(device, options, diffs); return diffs; }
@Override public synchronized void unregisterAETitle(String aet) throws ConfigurationException { if (configurationExists()) try { ctx.destroySubcontext(aetDN(aet, aetsRegistryDN)); } catch (NameNotFoundException e) { } catch (NamingException e) { throw new ConfigurationException(e); } }
private void mergeChilds(ConfigurationChanges diffs, ApplicationEntity prev, ApplicationEntity ae, String aeDN) throws NamingException { merge(diffs, prev.getTransferCapabilities(), ae.getTransferCapabilities(), aeDN); for (LdapDicomConfigurationExtension ext : extensions) ext.mergeChilds(diffs, prev, ae, aeDN); }
@Override public synchronized boolean registerAETitle(String aet) throws ConfigurationException { ensureConfigurationExists(); try { registerAET(aet); return true; } catch (AETitleAlreadyExistsException e) { return false; } }
public Connection findConnection(String connDN) throws NamingException { String[] attrIds = { "dicomHostname", "dicomPort", "dicomTLSCipherSuite", "dicomInstalled" }; Attributes attrs = ctx.getAttributes(connDN, attrIds); Connection conn = new Connection(); loadFrom(conn, attrs, false); return conn; }
public boolean exists(String dn) throws NamingException { try { ctx.getAttributes(dn); return true; } catch (NameNotFoundException e) { return false; } }
@Override public synchronized boolean configurationExists() throws ConfigurationException { return configurationDN != null || findConfiguration(); }
public NamingEnumeration<SearchResult> search(String deviceName, String[] attrsArray, String filter) throws NamingException { return deviceName != null ? search(deviceRef(deviceName), filter, attrsArray) : ctx.search(devicesDN, filter, searchControlSubtreeScope(0, attrsArray, true)); }
private void mergeChilds(ConfigurationChanges diffs, Device prev, Device device, String deviceDN, boolean preserveVendorData) throws NamingException, ConfigurationException { mergeConnections(diffs, prev, device, deviceDN); mergeAEs(diffs, prev, device, deviceDN, preserveVendorData); mergeWebApps(diffs, prev, device, deviceDN); for (LdapDicomConfigurationExtension ext : extensions) ext.mergeChilds(diffs, prev, device, deviceDN); }
private void loadChilds(Device device, String deviceDN) throws NamingException, ConfigurationException { loadConnections(device, deviceDN); loadApplicationEntities(device, deviceDN); loadWebApplications(device, deviceDN); for (LdapDicomConfigurationExtension ext : extensions) ext.loadChilds(device, deviceDN); }
@Override public synchronized String[] listRegisteredAETitles() throws ConfigurationException { if (!configurationExists()) return StringUtils.EMPTY_STRING; return list(aetsRegistryDN, "(objectclass=dicomUniqueAETitle)", "dicomAETitle"); }
private void loadChilds(ApplicationEntity ae, String aeDN) throws NamingException, ConfigurationException { loadTransferCapabilities(ae, aeDN); for (LdapDicomConfigurationExtension ext : extensions) ext.loadChilds(ae, aeDN); }
private void updateCertificates(String dn, X509Certificate[] prev, X509Certificate[] certs) throws CertificateEncodingException, NamingException { if (!LdapUtils.equals(prev, certs)) storeCertificates(dn, certs); }