Package org.jitterbit.integration.data.entity.id

Examples of org.jitterbit.integration.data.entity.id.TargetId


            } catch (IllegalArgumentException ex) {
                throw new ServerDbException("Invalid source ID: " + sourceId, ex);
            }
            return lookupPasswordFromDeployedSource(guid);
        } else if (targetId != null) {
            TargetId guid = null;
            try {
                guid = new TargetId(targetId);
            } catch (IllegalArgumentException ex) {
                throw new ServerDbException("Invalid target ID: " + targetId, ex);
            }
            return lookupPasswordFromDeployedTarget(guid);
        }
View Full Code Here


            fatal("The selected transformation requires a JMS target.");
        }
    }

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

    private IntegrationEntityId getSourceOrTargetId(WsDbLookupParams params) {
        if (StringUtils.isNotEmpty(params.getSourceGuid())) {
            return new SourceId(params.getSourceGuid());
        }
        if (StringUtils.isNotEmpty(params.getTargetGuid())) {
            return new TargetId(params.getTargetGuid());
        }
        throw new IllegalArgumentException("Must specify a Source or Target GUID.");
    }
View Full Code Here

        return params;
    }

    private static WriteTargetParams toWriteTargetParams(WsWriteTargetParams ws) {
        WriteTargetParams params = new WriteTargetParams(
                        new TargetId(ws.getTargetGuid()),
                        toConnectionParams(ws.getConnectionParams()),
                        ws.getJtrFileName(),
                        ws.getDataFileName());
        params.isTransaction = ws.isTransaction();
        params.insertMode = DbInsertMode.fromId(ws.getInsertUpdateMode());
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

            browser.setWebServiceCall(lookupWsCall(wsId));
        }
    }

    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

        // HACK: This is part of a hack described in more detail in the LdapStructure class:
        loc.setSourceId(src.getID());
    }

    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();
View Full Code Here

            return structureType == DataStructureType.WebServiceResponse;
        } else {
            // Databases are special, since the Database target itself (rather than just a
            // structure)
            // is used when defining the transformation:
            TargetId tfTgtId = transformation.getTargetId();
            if (tfTgtId != null) {
                return tfTgtId.equals(target.getID());
            }
            DataLocation loc = target.getLocation();
            return (loc != null) && output.isCompatibleWith(loc);
        }
    }
View Full Code Here

                sourceGuid = new SourceId(sourceGuidAsString);
            } catch (Exception ex) {
                throw new RuntimeException("Invalid source GUID: " + sourceGuidAsString);
            }
        }
        TargetId targetGuid = null;
        if (targetGuidAsString != null) {
            try {
                targetGuid = new TargetId(targetGuidAsString);
            } catch (Exception e) {
                throw new RuntimeException("Invalid target GUID: " + targetGuidAsString);
            }
        }
        DefaultConnectionFactory factory = new DefaultConnectionFactory(
View Full Code Here

            setPreselectedTarget(wizard);
        }

        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();
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.id.TargetId

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.