Package org.dcm4che3.conf.api.generic

Examples of org.dcm4che3.conf.api.generic.ConfigClass.objectClass()


        Attributes attrs = new BasicAttributes(true);
        ConfigField fieldAnno = field.getAnnotation(ConfigField.class);
        ConfigClass classAnno = (ConfigClass) clazz.getAnnotation(ConfigClass.class);

        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
                    + ")");
View Full Code Here


        Attributes attrs = new BasicAttributes();

        ConfigClass classAnno = (ConfigClass) field.getType().getAnnotation(ConfigClass.class);
        if (classAnno != null) {
//            throw new ConfigurationException("Ldap object class for the child node is unknown");
            attrs.put("objectClass", classAnno.objectClass());
        }

        return new LdapConfigIO(attrs,new ArrayList<ModificationItem>(), getFolderDn(propName), config);
    }
View Full Code Here

        // no annotation - no configuration
        if (ccAnno == null)
            throw new ConfigurationException("The configuration class must be annotated with @ConfigClass");

        // get common name
        if (ccAnno.commonName().equals("") || ccAnno.objectClass().equals(""))
            throw new ConfigurationException("To use LDAP config, specify common name and objectClass for the config class in @ConfigClass annotation");

        commonName = ccAnno.commonName();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.