Package org.jitterbit.integration.data.entity

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


    @Test
    public void ensureGetActivityForContentWorks() {
        OperationPipeline pipeline = TransformationOperationType.TYPE.createNewTemplate();
        assertSame(pipeline.getFirstActivity(), pipeline.getActivityWithContent(null));
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        Target target = new Target("Target");
        assertNull(pipeline.getActivityWithContent(target));
        browser.getTargetActivity().setContent(target);
        assertSame(browser.getTargetActivity(), pipeline.getActivityWithContent(target));
    }
View Full Code Here


     * <code>Transformation</code> and the <code>Source</code> (which is auto-completed by the
     * wizard before this call).
     */
    public void doAdditionalConfiguration(OperationPipeline pipeline) {
        TargetPages targetPages = (TargetPages) getTargetPages();
        Target target = targetPages.getLocation();
        TransformationPipelineBrowser browser = new TransformationPipelineBrowser(pipeline);
        browser.setTarget(target);
    }
View Full Code Here

        }
    }

    private boolean isOperationTargetJms() {
        TargetId tgtId = operation.getTargetId();
        Target tgt = collector.context().getDataStore().getEntity(tgtId, Target.class);
        return isJmsLocation(tgt);
    }
View Full Code Here

        private boolean evaluate(Transformation tf) {
            Source src = getSource();
            if (src != null && !tf.canGetInputFrom(src)) {
                return false;
            }
            Target tgt = getTarget();
            if (tgt != null && !tf.canSendOutputTo(tgt)) {
                return false;
            }
            return true;
        }
View Full Code Here

       
        private boolean evaluate(Transformation tf) {
            if (wsCall != null && !wsCall.getOutputStructure().equals(tf.getInputStructure())) {
                return false;
            }
            Target tgt = getTarget();
            if (tgt != null && !tf.canSendOutputTo(tgt)) {
                return false;
            }
            return tf.getInputStructure().getStructureType() == DataStructureType.WebServiceResponse;
        }
View Full Code Here

    }

    @Override
    public void applyTo(HttpLocation loc) {
        if (selector != null) {
            Target target = selector.getSelectedTarget();
            TargetId id = (target == null) ? null : target.getID();
            loc.setTargetForResponse(id);
        }
    }
View Full Code Here

    }

    private void checkTarget(Transformation inserted, WebServicePipelineBrowser browser) {
        TargetId tgtId = inserted.getTargetId();
        if (tgtId != null) {
            Target target = lookupTarget(tgtId);
            browser.setTarget(target);
        }
    }
View Full Code Here

        checkSource(browser, inserted, TransformationTemplate.SOURCE);
        checkTarget(browser, inserted);
    }

    private void checkTarget(OperationPipelineBrowser browser, Transformation inserted) {
        Target target = lookupTarget(inserted.getTargetId());
        if (target != null) {
            TargetActivity a = browser.getTargetActivity();
            if (a == null) {
                insertTargetActivityIfPossible(browser);
            }
View Full Code Here

    }

    private void collectTargetLink() {
        TargetId tgtId = transformation.getTargetId();
        if (tgtId != null) {
            Target tgt = dataLookup.getEntity(tgtId, Target.class);
            if (tgt != null) {
                collectedLinks.add(new StrongEntityLink(tgt, transformation));
                DataLocation loc = tgt.getLocation();
                if (loc instanceof DatabaseLocation) {
                    collectTargetDbLocationAndStructureLink(tgt);
                } else if (loc instanceof LdapLocation) {
                    collectTargetLdapLocationAndStructureLink(tgt);
                }
View Full Code Here

        private void setPreselectedTarget(TransformationWizard wizard) {
            Transformation tx = wizard.getTransformation();
            TargetId targetId = tx.getTargetId();
            if (targetId != null) {
                IntegrationEntityLookup itemLookup = wizard.getItemLookup();
                Target tgt = itemLookup.getEntity(targetId, Target.class);
                if (tgt != null) {
                    DataLocation location = tgt.getLocation();
                    if (location instanceof LdapLocation) {
                        pages.setSelectedLocation((LdapLocation) location);
                    }
                }
            }
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.