private void loadAuditRecordRepositoryDevice(AuditLogger auditLogger, String arrDeviceDN) { try { auditLogger.setAuditRecordRepositoryDevice(config.loadDevice(arrDeviceDN)); } catch (ConfigurationException e) { LOG.info("Failed to load Audit Record Repository {} referenced by Audit Logger", arrDeviceDN, e); auditLogger.setAuditRecordRepositoryDeviceName( LdapUtils.cutAttrValueFromDN(arrDeviceDN, "dicomDeviceName")); } }
private void loadAuditRecordRepositoryDevice(AuditLogger auditLogger, String arrDeviceDN) { try { auditLogger.setAuditRecordRepositoryDevice(config.loadDevice(arrDeviceDN)); } catch (ConfigurationException e) { LOG.info("Failed to load Audit Record Repository {} referenced by Audit Logger", arrDeviceDN, e); auditLogger.setAuditRecordRepositoryDeviceName( LdapUtils.cutAttrValueFromDN(arrDeviceDN, "dicomDeviceName")); } }
@Override public synchronized Device findDevice(String name) throws ConfigurationException { if (!configurationExists()) throw new ConfigurationNotFoundException(); return loadDevice(deviceRef(name)); }
@Override public synchronized Device findDevice(String name) throws ConfigurationException { if (!configurationExists()) throw new ConfigurationNotFoundException(); return loadDevice(deviceRef(name)); }
public synchronized Device findDevice(String filter, String childName) throws ConfigurationException { if (!configurationExists()) throw new ConfigurationNotFoundException(); SearchControls ctls = searchControlSubtreeScope(1, StringUtils.EMPTY_STRING, false); NamingEnumeration<SearchResult> ne = null; String childDN; try { ne = ctx.search(devicesDN, filter, ctls); if (!ne.hasMore()) throw new ConfigurationNotFoundException(childName); childDN = ne.next().getNameInNamespace(); } catch (NamingException e) { throw new ConfigurationException(e); } finally { LdapUtils.safeClose(ne); } String deviceDN = childDN.substring(childDN.indexOf(',') + 1); return loadDevice(deviceDN); }
public synchronized Device findDevice(String filter, String childName) throws ConfigurationException { if (!configurationExists()) throw new ConfigurationNotFoundException(); SearchControls ctls = searchControlSubtreeScope(1, StringUtils.EMPTY_STRING, false); NamingEnumeration<SearchResult> ne = null; String childDN; try { ne = ctx.search(devicesDN, filter, ctls); if (!ne.hasMore()) throw new ConfigurationNotFoundException(childName); childDN = ne.next().getNameInNamespace(); } catch (NamingException e) { throw new ConfigurationException(e); } finally { LdapUtils.safeClose(ne); } String deviceDN = childDN.substring(childDN.indexOf(',') + 1); return loadDevice(deviceDN); }
Device prev = loadDevice(deviceDN); ArrayList<String> destroyDNs = new ArrayList<>(); try {
Device prev = loadDevice(deviceDN); ArrayList<String> destroyDNs = new ArrayList<>(); try {