Package org.jitterbit.integration.ldap.structure

Examples of org.jitterbit.integration.ldap.structure.ObjectClassStructureBuilder



    private static final class DummyStructureFactory {

        public ObjectClassStructure newStructure(String name) {
            ObjectClassStructureBuilder structureBuilder = new ObjectClassStructureBuilder();
            structureBuilder.setOid(new NumericOid(name));
            structureBuilder.setName(name);
            addAttribute(structureBuilder, "FirstName", AttributeUse.REQUIRED, AttributeCardinality.ONE);
            addAttribute(structureBuilder, "LastName", AttributeUse.REQUIRED, AttributeCardinality.ONE);
            addAttribute(structureBuilder, "Phone", AttributeUse.OPTIONAL, AttributeCardinality.MANY);
            return structureBuilder.getStructure();
        }
View Full Code Here


        }
       
        public ObjectClassStructure getStructure(NumericOid oid) throws LdapException {
            String className = null;
            try {
                ObjectClassStructureBuilder builder = new ObjectClassStructureBuilder();
                builder.setOid(oid);
                Attributes attrs = getSchemaDefinition(oid);
                className = lookupName(attrs, oid);
                if (knownStructures.containsKey(oid)) {
                    return knownStructures.get(oid);
                }
                builder.setName(className);
                ServerDebugLog.LOG.fine("Creating structure for the class " + className);
                ServerDebugLog.LOG.finer("Found the following attributes: " + attrs);
                populateStructure(attrs, builder);
                ObjectClassStructure struct = builder.getStructure();
                knownStructures.put(oid, struct);
                return struct;
            } catch (NamingException ex) {
                String msg = "Failed to lookup class definitions.";
                if (className != null) {
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.ldap.structure.ObjectClassStructureBuilder

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.