/** * Set the AE title for this Network AE. * * @param aet * A String containing the AE title. */ public void setAETitle(String aet) { if (aet.isEmpty()) throw new IllegalArgumentException("AE title cannot be empty"); Device device = this.device; if (device != null) device.removeApplicationEntity(this.aet); this.aet = aet; if (device != null) device.addApplicationEntity(this); }
public ApplicationEntity removeApplicationEntity(ApplicationEntity ae) { return removeApplicationEntity(ae.getAETitle()); }
/** * Set the AE title for this Network AE. * * @param aet * A String containing the AE title. */ public void setAETitle(String aet) { if (aet.isEmpty()) throw new IllegalArgumentException("AE title cannot be empty"); Device device = this.device; if (device != null) device.removeApplicationEntity(this.aet); this.aet = aet; if (device != null) device.addApplicationEntity(this); }
public ApplicationEntity removeApplicationEntity(ApplicationEntity ae) { return removeApplicationEntity(ae.getAETitle()); }
public void removeNetworkAE() throws ConfigurationException { ApplicationEntity ae = conf.findApplicationEntity(aeTitle); Device device = ae.getDevice(); device.removeApplicationEntity(aeTitle); for (Connection conn : ae.getConnections()) { device.removeConnection(conn); } if (device.getApplicationAETitles().isEmpty()) conf.removeDevice(device.getDeviceName(), EnumSet.of(DicomConfiguration.Option.REGISTER)); else conf.merge(device, EnumSet.of(DicomConfiguration.Option.REGISTER)); }
public void removeNetworkAE() throws ConfigurationException { ApplicationEntity ae = conf.findApplicationEntity(aeTitle); Device device = ae.getDevice(); device.removeApplicationEntity(aeTitle); for (Connection conn : ae.getConnections()) { device.removeConnection(conn); } if (device.getApplicationAETitles().isEmpty()) conf.removeDevice(device.getDeviceName(), EnumSet.of(DicomConfiguration.Option.REGISTER)); else conf.merge(device, EnumSet.of(DicomConfiguration.Option.REGISTER)); }