Tabnine Logo
ConfigurationNotFoundException.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.dcm4che3.conf.api.ConfigurationNotFoundException.<init> (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-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

@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

@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: dcm4che/dcm4che

@Override
public synchronized ConfigurationChanges removeDevice(String name, EnumSet<Option> options)
    throws ConfigurationException {
  if (!configurationExists())
    throw new ConfigurationNotFoundException();
  String dn = deviceRef(name);
  removeDeviceWithDN(dn, options != null && options.contains(Option.REGISTER));
  ConfigurationChanges diffs = new ConfigurationChanges(false);
  ConfigurationChanges.addModifiedObject(diffs, dn, ConfigurationChanges.ChangeType.D);
  return diffs;
}
origin: org.dcm4che/dcm4che-conf-ldap

@Override
public synchronized ConfigurationChanges removeDevice(String name, EnumSet<Option> options)
    throws ConfigurationException {
  if (!configurationExists())
    throw new ConfigurationNotFoundException();
  String dn = deviceRef(name);
  removeDeviceWithDN(dn, options != null && options.contains(Option.REGISTER));
  ConfigurationChanges diffs = new ConfigurationChanges(false);
  ConfigurationChanges.addModifiedObject(diffs, dn, ConfigurationChanges.ChangeType.D);
  return diffs;
}
origin: dcm4che/dcm4che

@Override
public synchronized void removeCertificates(String dn) throws ConfigurationException {
  try {
    ModificationItem removeCert = new ModificationItem(
        DirContext.REMOVE_ATTRIBUTE, new BasicAttribute(userCertificate));
    ctx.modifyAttributes(dn, new ModificationItem[] { removeCert });
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException(e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  }
}
origin: org.dcm4che/dcm4che-conf-ldap

@Override
public synchronized void removeCertificates(String dn) throws ConfigurationException {
  try {
    ModificationItem removeCert = new ModificationItem(
        DirContext.REMOVE_ATTRIBUTE, new BasicAttribute(userCertificate));
    ctx.modifyAttributes(dn, new ModificationItem[] { removeCert });
  } catch (NameNotFoundException e) {
    throw new ConfigurationNotFoundException(e);
  } catch (NamingException e) {
    throw new ConfigurationException(e);
  }
}
org.dcm4che3.conf.apiConfigurationNotFoundException<init>

Popular methods of ConfigurationNotFoundException

    Popular in Java

    • Start an intent from android
    • onRequestPermissionsResult (Fragment)
    • startActivity (Activity)
    • runOnUiThread (Activity)
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • HttpURLConnection (java.net)
      An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • Stack (java.util)
      Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
    • IOUtils (org.apache.commons.io)
      General IO stream manipulation utilities. This class provides static utility methods for input/outpu
    • Top 25 Plugins for Webstorm
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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