Package org.jitterbit.integration.data.entity

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


            break;
        }
        case LDAP: {
            LdapStructure ldapStruct = (LdapStructure) output;
            TargetId targetId = ldapStruct.getLdapLocation().getTargetId();
            Target replacement = (Target) service.getReplacement(targetId);
            if (replacement != null) {
                tf.setTargetId(replacement.getID());
                ldapStruct.setLdapLocation((LdapLocation) replacement.getLocation());
            }
            break;
        }
        case Database: {
            DatabaseStructure dbStruct = (DatabaseStructure) output;
            TargetId targetId = dbStruct.getTargetId();
            Target replacement = (Target) service.getReplacement(targetId);
            if (replacement != null) {
                tf.setTargetId(replacement.getID());
                dbStruct.setTargetId(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() {
            Target tgt = browser.getTarget();
            if (tgt != null) {
                validateTarget(tgt);
            } else {
                validateEmptyTarget();
            }
View Full Code Here

            validateLocation(SourceTarget.Source, src.getLocation());
        }
    }
   
    private void validateTarget() {
        Target tgt = browser.getTarget();
        if (tgt != null) {
            validateLocation(SourceTarget.Target, tgt.getLocation());
        } else {
            targetMissing();
        }
    }
View Full Code Here

        }
        return src.getLocation();
    }

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

TOP

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

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.