Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.Source


    }

    private void collectSourceLink() {
        SourceId srcId = transformation.getSourceId();
        if (srcId != null) {
            Source src = dataLookup.getEntity(srcId, Source.class);
            if (src != null) {
                collectedLinks.add(new StrongEntityLink(src, transformation));
                DataLocation loc = src.getLocation();
                if (loc instanceof DatabaseLocation) {
                    collectSourceDbLocationAndStructureLink(src);
                } else if (loc instanceof LdapLocation) {
                    collectSourceLdapLocationAndStructureLink(src);
                }
View Full Code Here


            removeSourceActivity(browser);
        }
    }

    private void populateSourceActivity(OperationPipelineBrowser browser, Transformation inserted, String sourceRole) {
        Source source = lookupSource(inserted.getSourceId());
        if (source != null) {
            SourceActivity a = browser.getSourceActivity();
            if (a == null) {
                insertSourceActivityIfPossible(browser, sourceRole);
            }
View Full Code Here

            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;
            SourceId dbSourceId = dbStruct.getSourceId();
            Source replacement = (Source) service.getReplacement(dbSourceId);
            if (replacement != null) {
                tf.setSourceId(replacement.getID());
                dbStruct.setSourceId(replacement.getID());
                dbStruct.setDbLocation((DatabaseLocation) replacement.getLocation());
            }
            break;
        }
        default:
            // No processing needed
View Full Code Here

            this.browser = browser;
            this.tf = tf;
        }

        public void run() {
            Source src = browser.getSource();
            if (src != null) {
                validateSource(src);
            } else {
                validateEmptySource();
            }
View Full Code Here

        validateSource();
        validateTarget();
    }
   
    private void validateSource() {
        Source src = browser.getSource();
        if (src == null) {
            sourceMissing();
        } else if (!(src instanceof SystemSource)) {
            validateLocation(SourceTarget.Source, src.getLocation());
        }
    }
View Full Code Here

        }
        return new LdapStructure((LdapLocation) loc);
    }

    private static DataLocation getSourceLocation(Transformation tf, IntegrationEntityLookup lookup) {
        Source src = lookup.getEntity(tf.getSourceId(), Source.class);
        if (src == null) {
            throw new RuntimeException("Source not found: " + tf.getSourceId());
        }
        return src.getLocation();
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.Source

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.