Examples of DataLocation


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

        super(target);
        addType(target);
    }

    private void addType(Target target) {
        DataLocation loc = target.getLocation();
        if (loc != null) {
            DataLocationEntries.addTo(this, loc, SourceTarget.Target);
        }
    }
View Full Code Here

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

        // how the UI is implemented in a couple of places.
        allowedTypes = null;
        if (newLocation.equals(location)) {
            return;
        }
        DataLocation old = location;
        if (locationAssoc != null) {
            locationAssoc.dispose();
        }
        this.location = newLocation;
        locationAssoc = SourceLocationAssociationFactory.newAssociation(this, newLocation);
View Full Code Here

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

        super(source);
        addType(source);
    }

    private void addType(Source source) {
        DataLocation loc = source.getLocation();
        if (loc != null) {
            DataLocationEntries.addTo(this, loc, SourceTarget.Source);
        }
    }
View Full Code Here

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

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

        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

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

     * 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

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

*/
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

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

        }
    }

    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

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

        }
    }

    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

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

        return false;
    }

    @Override
    protected void mainObjectDeleted() {
        DataLocation loc = getDependantObject().getLocation();
        if (loc instanceof HttpLocation) {
            ((HttpLocation) loc).setTargetForResponse(null);
        }
        super.mainObjectDeleted();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.