public String getRetrieveAET() { return retrieveAET != null ? retrieveAET : ae.getAETitle(); }
void setApplicationEntity(ApplicationEntity ae) { if (ae != null && this.ae != null) throw new IllegalStateException( "already owned by AE: " + ae.getAETitle()); this.ae = ae; }
public void setApplicationEntity(ApplicationEntity ae) { if (ae != null) { if (this.ae != null) throw new IllegalStateException("already owned by AE " + this.ae.getAETitle()); } this.ae = ae; }
void setApplicationEntity(ApplicationEntity ae) { if (ae != null && this.ae != null) throw new IllegalStateException( "already owned by AE: " + ae.getAETitle()); this.ae = ae; }
public void setApplicationEntity(ApplicationEntity ae) { if (ae != null) { if (this.ae != null) throw new IllegalStateException("already owned by AE " + this.ae.getAETitle()); } this.ae = ae; }
public void addApplicationEntity(ApplicationEntity ae) { ae.setDevice(this); aes.put(ae.getAETitle(), ae); }
public ApplicationEntity removeApplicationEntity(ApplicationEntity ae) { return removeApplicationEntity(ae.getAETitle()); }
public void addApplicationEntity(ApplicationEntity ae) { ae.setDevice(this); aes.put(ae.getAETitle(), ae); }
private void reconfigureApplicationEntities(Device from) { aes.keySet().retainAll(from.aes.keySet()); for (ApplicationEntity src : from.aes.values()) { ApplicationEntity ae = aes.get(src.getAETitle()); if (ae == null) addApplicationEntity(ae = new ApplicationEntity(src.getAETitle())); ae.reconfigure(src); } }
private void reconfigureApplicationEntities(Device from) { aes.keySet().retainAll(from.aes.keySet()); for (ApplicationEntity src : from.aes.values()) { ApplicationEntity ae = aes.get(src.getAETitle()); if (ae == null) addApplicationEntity(ae = new ApplicationEntity(src.getAETitle())); ae.reconfigure(src); } }
public boolean removeConnection(Connection conn) { for (ApplicationEntity ae : aes.values()) if (ae.getConnections().contains(conn)) throw new IllegalStateException(conn + " used by AE: " + ae.getAETitle()); for (DeviceExtension ext : extensions.values()) ext.verifyNotUsed(conn); if (!conns.remove(conn)) return false; conn.setDevice(null); conn.unbind(); return true; }
public boolean removeConnection(Connection conn) { for (ApplicationEntity ae : aes.values()) if (ae.getConnections().contains(conn)) throw new IllegalStateException(conn + " used by AE: " + ae.getAETitle()); for (DeviceExtension ext : extensions.values()) ext.verifyNotUsed(conn); if (!conns.remove(conn)) return false; conn.setDevice(null); conn.unbind(); return true; }
private void merge(ConfigurationChanges diffs, ApplicationEntity prev, ApplicationEntity ae, String deviceDN, boolean preserveVendorData) throws NamingException { String aeDN = aetDN(ae.getAETitle(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, aeDN, ConfigurationChanges.ChangeType.U); modifyAttributes(aeDN, storeDiffs(ldapObj, prev, ae, deviceDN, new ArrayList<ModificationItem>(), preserveVendorData)); ConfigurationChanges.removeLastIfEmpty(diffs, ldapObj); mergeChilds(diffs, prev, ae, aeDN); }
private void merge(ConfigurationChanges diffs, ApplicationEntity prev, ApplicationEntity ae, String deviceDN, boolean preserveVendorData) throws NamingException { String aeDN = aetDN(ae.getAETitle(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, aeDN, ConfigurationChanges.ChangeType.U); modifyAttributes(aeDN, storeDiffs(ldapObj, prev, ae, deviceDN, new ArrayList<ModificationItem>(), preserveVendorData)); ConfigurationChanges.removeLastIfEmpty(diffs, ldapObj); mergeChilds(diffs, prev, ae, aeDN); }
public CompatibleConnection findCompatibleConnection(ApplicationEntity remote) throws IncompatibleConnectionException { for (Connection remoteConn : remote.conns) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return new CompatibleConnection(conn, remoteConn); throw new IncompatibleConnectionException( "No compatible connection to " + remote.getAETitle() + " available on " + aet); }
public Association connect(ApplicationEntity remote, AAssociateRQ rq) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException { CompatibleConnection cc = findCompatibleConnection(remote); if (rq.getCalledAET() == null) rq.setCalledAET(remote.getAETitle()); return connect(cc.getLocalConnection(), cc.getRemoteConnection(), rq); }
public CompatibleConnection findCompatibleConnection(ApplicationEntity remote) throws IncompatibleConnectionException { for (Connection remoteConn : remote.conns) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return new CompatibleConnection(conn, remoteConn); throw new IncompatibleConnectionException( "No compatible connection to " + remote.getAETitle() + " available on " + aet); }
public Association connect(ApplicationEntity remote, AAssociateRQ rq) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException { CompatibleConnection cc = findCompatibleConnection(remote); if (rq.getCalledAET() == null) rq.setCalledAET(remote.getAETitle()); return connect(cc.getLocalConnection(), cc.getRemoteConnection(), rq); }
private void store(ConfigurationChanges diffs, ApplicationEntity ae, String deviceDN) throws NamingException { String aeDN = aetDN(ae.getAETitle(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, aeDN, ConfigurationChanges.ChangeType.C); createSubcontext(aeDN, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), ae, deviceDN, new BasicAttributes(true))); storeChilds(ConfigurationChanges.nullifyIfNotVerbose(diffs, diffs), aeDN, ae); }
private void store(ConfigurationChanges diffs, ApplicationEntity ae, String deviceDN) throws NamingException { String aeDN = aetDN(ae.getAETitle(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, aeDN, ConfigurationChanges.ChangeType.C); createSubcontext(aeDN, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), ae, deviceDN, new BasicAttributes(true))); storeChilds(ConfigurationChanges.nullifyIfNotVerbose(diffs, diffs), aeDN, ae); }