Package org.jitterbit.integration.data.location

Examples of org.jitterbit.integration.data.location.DataLocation


        links = Lists.newArrayList();
        collect();
    }

    private void collect() {
        DataLocation loc = target.getLocation();
        if (loc instanceof HttpLocation) {
            collectLinkToResponseTarget((HttpLocation) loc);
        }
    }
View Full Code Here


        return new Predicate<IntegrationEntity>() {

            @Override
            public boolean apply(IntegrationEntity entity) {
                if (entity instanceof Locatable) {
                    DataLocation loc = ((Locatable) entity).getLocation();
                    if (loc != null && loc.getDataLocationType() == type) {
                        return typeSettings.apply(entity);
                    }
                }
                return false;
            }
View Full Code Here

     * Runs the validation. When done, the submitted <code>ValidationMessageCollector</code> can be
     * queried for the validation result.
     *
     */
    public void run() {
        DataLocation location = source.getLocation();
        if (location == null) {
            fatal(SourceMessages.getString("SourceValidator.NoLocation"));
        } else {
            location.collectValidationMessages(collector);
        }
    }
View Full Code Here

*/
final class HttpTargetResponseLink extends AbstractEntityLink {

    public HttpTargetResponseLink(Target responseTarget, Target httpTarget) {
        super(responseTarget, httpTarget);
        DataLocation loc = httpTarget.getLocation();
        if (!(loc instanceof HttpLocation)) {
            throw new IllegalArgumentException("httpTarget must be of type HTTP");
        }
    }
View Full Code Here

        }
    }

    private void updateSource(Source source) {
        // If the source is JMS the properties are key-value pairs.
        DataLocation dataLocation = source.getLocation();
        if (dataLocation instanceof JmsLocation) {
            updateJmsLocation(source, (JmsLocation) dataLocation, EntityType.Source);
        }
    }
View Full Code Here

        }
    }

    private void updateTarget(Target target) {
        // If the target is JMS the properties are key-value pairs.
        DataLocation dataLocation = target.getLocation();
        if (dataLocation instanceof JmsLocation) {
            updateJmsLocation(target, (JmsLocation) dataLocation, EntityType.Target);
        }
    }
View Full Code Here

        return false;
    }

    @Override
    protected void mainObjectDeleted() {
        DataLocation loc = getDependantObject().getLocation();
        if (loc instanceof HttpLocation) {
            ((HttpLocation) loc).setTargetForResponse(null);
        }
        super.mainObjectDeleted();
    }
View Full Code Here

    public TargetReferencesReplacer(ReferenceReplacementService service) {
        this.service = service;
    }

    public void replaceReferences(Target target) {
        DataLocation location = target.getLocation();
        if (location instanceof HttpLocation) {
            replaceHttpResponseTarget((HttpLocation) location);
        }
    }
View Full Code Here

     * Runs the validation. When done, the submitted <code>ValidationMessageCollector</code> can
     * be queried for the validation result.
     *
     */
    public void run() {
        DataLocation location = target.getLocation();
        if (location == null) {
            fatal(TargetMessages.getString("TargetValidator.NoLocation"));
        }
        else {
            validateLocation(location);
View Full Code Here

    }

    public DatabaseLocation getSelectedLocation() {
        Target target = getSelectedEntity();
        if (target != null) {
            DataLocation dataLocation = target.getLocation();
            if (dataLocation instanceof DatabaseLocation) {
                return (DatabaseLocation) dataLocation;
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.location.DataLocation

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.