Package org.dcm4che3.conf.api

Examples of org.dcm4che3.conf.api.ConfigurationException


                return null;
            try {
                Method method = field.getType().getMethod("valueOf", String.class);
                return (Enum<?>) method.invoke(null, serialized);
            } catch (Exception x) {
                throw new ConfigurationException("Deserialization of Enum failed! field:"+field, x);
            }
        }
View Full Code Here


            Preferences node = rootPrefs.node(DICOM_CONFIGURATION_ROOT);
            node.removeNode();
            node.flush();
            LOG.info("Purge DICOM Configuration {}", node);
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
        return true;
    }
View Full Code Here

            return false;
        try {
            rootPrefs.node(pathName).flush();
            return true;
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

                for (String aet2 : deviceNode.node(nodeName).childrenNames())
                    if (aet.equals(aet2))
                        return loadDevice(deviceNode);
            }
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
        throw new ConfigurationNotFoundException(aet);
    }
View Full Code Here

                loadFrom(deviceInfo, deviceNode);
                if (match(deviceInfo, keys))
                    results.add(deviceInfo);
            }
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
        return results.toArray(new DeviceInfo[results.size()]) ;
    }
View Full Code Here

            return StringUtils.EMPTY_STRING;

        try {
            return rootPrefs.node(DICOM_DEVICES_ROOT).childrenNames();
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

            return StringUtils.EMPTY_STRING;

        try {
            return rootPrefs.node(DICOM_UNIQUE_AE_TITLES_REGISTRY_ROOT).childrenNames();
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

        try {
            updateCertificates(device);
            deviceNode.flush();
            deviceNode = null;
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        } catch (CertificateException e) {
            throw new ConfigurationException(e);
        } finally {
            if (deviceNode != null)
                try {
                    deviceNode.removeNode();
                    deviceNode.flush();
View Full Code Here

            storeDiffs(devicePrefs, prev, device);
            mergeChilds(prev, device, devicePrefs);
            updateCertificates(prev, device);
            devicePrefs.flush();
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        } catch (CertificateException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

        try {
            Preferences node = rootPrefs.node(pathName);
            node.removeNode();
            node.flush();
        } catch (BackingStoreException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.dcm4che3.conf.api.ConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.