Package org.dcm4che3.conf.api

Examples of org.dcm4che3.conf.api.ConfigurationException


    @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 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[] 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 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

            } finally {
                LdapUtils.safeClose(ne);
            }
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

        // if flush enabled, do replace attributes
        if (config != null && !writerFlushed) {
            try {
                config.createSubcontext(dn, attrs);
            } catch (NamingException e) {
                throw new ConfigurationException(e);
            }
        }

        writerFlushed = true;
View Full Code Here

            Attributes attrs = new BasicAttributes(true);
            attrs.put("cn", propName);
            attrs.put("objectClass", FOLDER_OBJECT_CLASS);
            config.createSubcontext(folderDn, attrs);
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        }

        return new LdapConfigIO(new BasicAttributes(true), folderDn, config);
    }
View Full Code Here

        if (classAnno != null) {
            attrs.put("objectClass", classAnno.objectClass());
        } else if (!fieldAnno.mapElementObjectClass().equals("")) {
            attrs.put("objectClass", fieldAnno.mapElementObjectClass());
        } else
            throw new ConfigurationException("objectClass for collection element cannot be resolved, key (" + keyName + " - " + keyValue
                    + ")");

        return new LdapConfigIO(attrs, getCollectionElementDn(keyName, keyValue), config);
    }
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.