Package org.jitterbit.integration.ldap.structure

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


        }

        private CROM createCromTree(LdapStructure structure, ObjectClassStructure[] classes, boolean isTarget) {
            CROM root = new CROM(null, true, "LDAP", 0, CromType.CROM_t_Ldap);
            root.addType(CROM.CROM_t_Element | CROM.CROM_t_Root);
            LdapToCromConverter converter = isTarget ? LdapToCromConverterFactory.newTargetStructureConverter()
                            : LdapToCromConverterFactory.newSourceStructureConverter();
            converter.setAttributeOrder(new NameSorter<LdapStructureAttribute>(true));
            AttributeFilter filter = new StructureAttributeFilter(structure);
            for (LdapStructureEntryNode node : getEntryNodes(structure, classes)) {
                CROM crom = converter.toCrom(node, filter);
                root.addChild(crom);
            }
            return root;
        }
View Full Code Here

TOP

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

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.