congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ConfigurationNotFoundException
Code IndexAdd Tabnine to your IDE (free)

How to use
ConfigurationNotFoundException
in
org.dcm4che3.conf.api

Best Java code snippets using org.dcm4che3.conf.api.ConfigurationNotFoundException (Showing top 20 results out of 315)

origin: dcm4che/dcm4che

  @Override
  public Device findDevice(String deviceName) throws ConfigurationException {
    Device device = get(deviceName);
    if (device == null)
      throw new ConfigurationNotFoundException("Unknown Device: " + deviceName);
    if (!device.isInstalled())
      throw new ConfigurationNotFoundException("Device: " + deviceName + " not installed");
    return device;
  }
}
origin: dcm4che/dcm4che

  public ApplicationEntity findApplicationEntity(String aet)
      throws ConfigurationException {
    ApplicationEntity ae = get(aet);
    if (ae == null)
      throw new ConfigurationNotFoundException(
          "Unknown AE: " + aet);
    if (!ae.isInstalled())
      throw new ConfigurationNotFoundException(
          "AE: " + aet + " not installed");
    return ae;
  }
}
origin: dcm4che/dcm4che

  public HL7Application findHL7Application(String name)
      throws ConfigurationException {
    HL7Application ae = get(name);
    if (ae == null)
      throw new ConfigurationNotFoundException(
          "Unknown HL7 Application: " + name);
    return ae;
  }
}
origin: org.dcm4che/dcm4che-conf-api

  @Override
  public Device findDevice(String deviceName) throws ConfigurationException {
    Device device = get(deviceName);
    if (device == null)
      throw new ConfigurationNotFoundException("Unknown Device: " + deviceName);
    if (!device.isInstalled())
      throw new ConfigurationNotFoundException("Device: " + deviceName + " not installed");
    return device;
  }
}
origin: org.dcm4che/dcm4che-conf-api-hl7

  public HL7Application findHL7Application(String name)
      throws ConfigurationException {
    HL7Application ae = get(name);
    if (ae == null)
      throw new ConfigurationNotFoundException(
          "Unknown HL7 Application: " + name);
    return ae;
  }
}
origin: org.dcm4che/dcm4che-conf-api

  public ApplicationEntity findApplicationEntity(String aet)
      throws ConfigurationException {
    ApplicationEntity ae = get(aet);
    if (ae == null)
      throw new ConfigurationNotFoundException(
          "Unknown AE: " + aet);
    if (!ae.isInstalled())
      throw new ConfigurationNotFoundException(
          "AE: " + aet + " not installed");
    return ae;
  }
}
origin: dcm4che/dcm4che

@Override
public byte[][] loadDeviceVendorData(String deviceName) throws ConfigurationException {
  if (!configurationExists())
    throw new ConfigurationNotFoundException();
  try {
    Attributes attrs = getAttributes(deviceRef(deviceName), new String[]{ "dicomVendorData" });
    return byteArrays(attrs.get("dicomVendorData"));
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException("Device with specified name not found", e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  }
}
origin: org.dcm4che/dcm4che-conf-ldap

@Override
public byte[][] loadDeviceVendorData(String deviceName) throws ConfigurationException {
  if (!configurationExists())
    throw new ConfigurationNotFoundException();
  try {
    Attributes attrs = getAttributes(deviceRef(deviceName), new String[]{ "dicomVendorData" });
    return byteArrays(attrs.get("dicomVendorData"));
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException("Device with specified name not found", e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  }
}
origin: org.dcm4che/dcm4che-conf-dicom

@Override
public Device findDeviceByUUID(String uuid) throws ConfigurationException {
  if (uuid == null) throw new IllegalArgumentException("Requested Device's uuid cannot be null");
  Iterator search = lowLevelConfig.search(DicomPath.DeviceNameByUUID.set("deviceUUID", uuid).path());
  try {
    String deviceNameNode = (String) search.next();
    return findDevice(deviceNameNode);
  } catch (NoSuchElementException e) {
    throw new ConfigurationNotFoundException("Device with UUID '" + uuid + "' not found", e);
  }
}
origin: dcm4che/dcm4che

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);
}
origin: dcm4che/dcm4che

@Override
public synchronized X509Certificate[] findCertificates(String dn) throws ConfigurationException {
  try {
    return loadCertificates(dn);
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException(e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  } catch (CertificateException e) {
    throw new ConfigurationException(e);
  }
}
origin: dcm4che/dcm4che

@Override
public synchronized Device findDevice(String name) throws ConfigurationException {
  if (!configurationExists())
    throw new ConfigurationNotFoundException();
  return loadDevice(deviceRef(name));
}
origin: org.dcm4che/dcm4che-conf-ldap

@Override
public synchronized Device findDevice(String name) throws ConfigurationException {
  if (!configurationExists())
    throw new ConfigurationNotFoundException();
  return loadDevice(deviceRef(name));
}
origin: dcm4che/dcm4che

private void removeDeviceWithDN(String deviceDN, boolean unregister) throws ConfigurationException {
  try {
    ArrayList<String> destroyDNs = new ArrayList<>();
    if (unregister)
      markForUnregister(deviceDN, destroyDNs);
    destroySubcontextWithChilds(deviceDN);
    unregister(destroyDNs);
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException(e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  }
}
origin: dcm4che/dcm4che

@Override
public synchronized void persistCertificates(String dn, X509Certificate... certs)
    throws ConfigurationException {
  try {
    storeCertificates(dn, certs);
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException(e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  } catch (CertificateEncodingException e) {
    throw new ConfigurationException(e);
  }
}
origin: org.dcm4che/dcm4che-conf-ldap

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);
}
origin: org.dcm4che/dcm4che-conf-ldap

@Override
public synchronized X509Certificate[] findCertificates(String dn) throws ConfigurationException {
  try {
    return loadCertificates(dn);
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException(e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  } catch (CertificateException e) {
    throw new ConfigurationException(e);
  }
}
origin: org.dcm4che/dcm4che-conf-ldap

@Override
public synchronized void persistCertificates(String dn, X509Certificate... certs)
    throws ConfigurationException {
  try {
    storeCertificates(dn, certs);
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException(e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  } catch (CertificateEncodingException e) {
    throw new ConfigurationException(e);
  }
}
origin: org.dcm4che/dcm4che-conf-ldap

private void removeDeviceWithDN(String deviceDN, boolean unregister) throws ConfigurationException {
  try {
    ArrayList<String> destroyDNs = new ArrayList<>();
    if (unregister)
      markForUnregister(deviceDN, destroyDNs);
    destroySubcontextWithChilds(deviceDN);
    unregister(destroyDNs);
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException(e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  }
}
origin: org.dcm4che/dcm4che-conf-dicom

@Override
public ApplicationEntity findApplicationEntity(String aet) throws ConfigurationException {
  if (aet == null) throw new IllegalArgumentException("Requested AE's title cannot be null");
  Iterator<?> search = lowLevelConfig.search(DicomPath.DeviceNameByAEName.set("aeName", aet).path());
  if (!search.hasNext()) {
    search = lowLevelConfig.search(DicomPath.DeviceNameByAENameAlias.set("aeNameAlias", aet).path());
    if (!search.hasNext())
      throw new ConfigurationNotFoundException("AE '" + aet + "' not found");
  }
  String deviceNameNode = (String) search.next();
  if (search.hasNext())
    log.warn("Application entity title '{}' is not unique. Check the configuration!", aet);
  Device device = findDevice(deviceNameNode);
  ApplicationEntity ae = device.getApplicationEntity(aet);
  if (ae == null)
    throw new NoSuchElementException("Unexpected error");
  return ae;
}
org.dcm4che3.conf.apiConfigurationNotFoundException

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JCheckBox (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now