Package org.dcm4che3.conf.api

Examples of org.dcm4che3.conf.api.ConfigurationException


        // if flush enabled, merge
        if (config != null)
            try {
                config.modifyAttributes(dn, mods);
            } catch (NamingException e) {
                throw new ConfigurationException(e);
            }

    }
View Full Code Here


    @Override
    public void removeCollectionElement(String keyName, String keyValue) throws ConfigurationException {
        try {
            config.destroySubcontextWithChilds(getCollectionElementDn(keyName, keyValue));
        } catch (NamingException e) {
            throw new ConfigurationException();
        }
    };
View Full Code Here

    @Override
    public void removeCurrentNode() throws ConfigurationException {
        try {
            config.destroySubcontextWithChilds(dn);
        } catch (NamingException e) {
            throw new ConfigurationException();
        }
    }
View Full Code Here

    @Override
    public String[] asStringArray(String propName) throws ConfigurationException {
        try {
            return LdapUtils.stringArray(attrs.get(propName));
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public int[] asIntArray(String propName) throws ConfigurationException {
        try {
            return LdapUtils.intArray(attrs.get(propName));
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public Code[] asCodeArray(String propName) throws ConfigurationException {
        try {
            return LdapUtils.codeArray(attrs.get(propName));
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public int asInt(String propName, String def) throws ConfigurationException {
        try {
            return LdapUtils.intValue(attrs.get(propName), Integer.parseInt(def));
        } catch (Exception e) {
            throw new ConfigurationException(e);       
        }
    }
View Full Code Here

    @Override
    public String asString(String propName, String def) throws ConfigurationException {
        try {
            return LdapUtils.stringValue(attrs.get(propName), def);
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public boolean asBoolean(String propName, String def) throws ConfigurationException {
        try {
            return LdapUtils.booleanValue(attrs.get(propName), Boolean.parseBoolean(def));
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public static boolean nodeExists(Preferences prefs, String pathName)
            throws ConfigurationException {
        try {
            return prefs.nodeExists(pathName);
        } 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.