Package org.jitterbit.integration.data.structure

Examples of org.jitterbit.integration.data.structure.LdapStructure


     * @return the created <code>LdapStructure</code>
     */
    public LdapStructure getDefinedStructure() {
        SelectedObjectClasses classes = classSelectionPage.getSelectedClasses();
        assert classes != null : "No LDAP class selected. The wizard should have prevented the user from continuing.";
        LdapStructure struct = classes.asLdapStructure();
        structureReviewPage.applyTo(struct);
        if (searchParamsPage != null) {
            searchParamsPage.applyTo(struct);
        }
        return struct;
View Full Code Here


        });
        return completeWizard(callback);
    }

    private EditedStructure completeWizard(WizardCallback callback) {
        final LdapStructure newStructure = callback.getNewStructure();
        if (newStructure != null) {
            return new EditedStructure() {

                @Override
                public void apply(Transformation tf) {
View Full Code Here

     */
    public LdapStructure asLdapStructure() {
        ObjectClassDefinition[] classes = getClassDefinitions();
        LdapStructureEntry[] entries = Arrays2
                        .transform(classes, LdapStructureEntry.class, LdapFunctors.CLASS_TO_ENTRY);
        LdapStructure structure = new LdapStructure(ldapLocation);
        structure.setClassEntries(entries);
        return structure;
    }
View Full Code Here

            } else {
                // TODO: Where clause, tables(?), update keys(?)
            }
            break;
        case LDAP:
            LdapStructure ldap = (LdapStructure) struct;
            values.addAll(ldap.getSelectedAttributeNames());
            // TODO: Class names, filter. One problem is that we store only
            // the OIDs for class names(?), so we need some form of translator.
            break;
        case JSON:
            JsonStructure json = (JsonStructure) struct;
View Full Code Here

            }
        }

        @Override
        public void applyTo(Transformation tf) {
            LdapStructure structure = pages.getDefinedStructure();
            tf.setInputStructure(structure);
            tf.setSourceId(structure.getLdapLocation().getSourceId());
        }
View Full Code Here

        dbStruct.setSourceId(src.getID());
    }

    private void collectSourceLdapLocationAndStructureLink(Source src) {
        LdapLocation loc = (LdapLocation) src.getLocation();
        LdapStructure struct = (LdapStructure) transformation.getInputStructure();
        struct.setLdapLocation(loc);
        // HACK: This is part of a hack described in more detail in the LdapStructure class:
        loc.setSourceId(src.getID());
    }
View Full Code Here

        dbStruct.setTargetId(tgt.getID());
    }

    private void collectTargetLdapLocationAndStructureLink(Target tgt) {
        LdapLocation loc = (LdapLocation) tgt.getLocation();
        LdapStructure struct = (LdapStructure) transformation.getOutputStructure();
        struct.setLdapLocation(loc);
    }
View Full Code Here

    private static LdapStructure createLdapStructure(DataLocation loc) {
        if (!(loc instanceof LdapLocation)) {
            throw new RuntimeException("Unexpected source type: Expected LDAP, found " + loc.getDataLocationType());
        }
        return new LdapStructure((LdapLocation) loc);
    }
View Full Code Here

            }
        }

        @Override
        public void applyTo(Transformation tf) throws WizardPageException {
            LdapStructure structure = pages.getDefinedStructure();
            tf.setOutputStructure(structure);
            tf.setTargetId(structure.getLdapLocation().getTargetId());
        }
View Full Code Here

            WebServiceCall replacement = replaceWebServiceCall((WebServiceStructure) input);
            tf.setInputStructure(replacement.getOutputStructure());
            break;
        }
        case LDAP: {
            LdapStructure ldapStruct = (LdapStructure) input;
            SourceId ldapSourceId = ldapStruct.getLdapLocation().getSourceId();
            Source replacement = (Source) service.getReplacement(ldapSourceId);
            if (replacement != null) {
                tf.setSourceId(replacement.getID());
                ldapStruct.setLdapLocation((LdapLocation) replacement.getLocation());
            }
            break;
        }
        case Database: {
            DatabaseStructure dbStruct = (DatabaseStructure) input;
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.LdapStructure

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.