private void markForUnregister(Device prev, Device device, List<String> dns) { for (String aet : prev.getApplicationAETitles()) { if (!aet.equals("*") && device.getApplicationEntity(aet) == null) dns.add(aetDN(aet, aetsRegistryDN)); } for (LdapDicomConfigurationExtension ext : extensions) ext.markForUnregister(prev, device, dns); }
private void markForUnregister(String deviceDN, List<String> dns) throws NamingException, ConfigurationException { NamingEnumeration<SearchResult> ne = search(deviceDN, "(objectclass=dicomNetworkAE)", StringUtils.EMPTY_STRING); try { while (ne.hasMore()) { String rdn = ne.next().getName(); if (!rdn.equals("dicomAETitle=*")) dns.add(rdn + ',' + aetsRegistryDN); } } finally { LdapUtils.safeClose(ne); } for (LdapDicomConfigurationExtension ext : extensions) ext.markForUnregister(deviceDN, dns); }
private void markForUnregister(Device prev, Device device, List<String> dns) { for (String aet : prev.getApplicationAETitles()) { if (!aet.equals("*") && device.getApplicationEntity(aet) == null) dns.add(aetDN(aet, aetsRegistryDN)); } for (LdapDicomConfigurationExtension ext : extensions) ext.markForUnregister(prev, device, dns); }
private void markForUnregister(String deviceDN, List<String> dns) throws NamingException, ConfigurationException { NamingEnumeration<SearchResult> ne = search(deviceDN, "(objectclass=dicomNetworkAE)", StringUtils.EMPTY_STRING); try { while (ne.hasMore()) { String rdn = ne.next().getName(); if (!rdn.equals("dicomAETitle=*")) dns.add(rdn + ',' + aetsRegistryDN); } } finally { LdapUtils.safeClose(ne); } for (LdapDicomConfigurationExtension ext : extensions) ext.markForUnregister(deviceDN, dns); }