Package org.jitterbit.integration.data.location

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


        private static boolean isApplicable(Locatable locatable) {
            if (locatable == null) {
                return false;
            }
            DataLocation location = locatable.getLocation();
            if (location == null) {
                return false;
            }
            DataLocationType type = location.getDataLocationType();
            return StructureLocationAssociations.hasAssociatedStructure(type);
        }
View Full Code Here


    @Override
    public LdapLocation getSelectedLdapLocation() {
        IntegrationEntity sel = getSelectedEntity();
        if (sel instanceof Target) {
            DataLocation loc = ((Target) sel).getLocation();
            return (LdapLocation) loc;
        }
        return null;
    }
View Full Code Here

    private final class Filter implements EntityFilter {

        @Override
        public boolean apply(IntegrationEntity entity) {
            // This cast is safe because this filter is applied to lists containing only Sources and Targets
            DataLocation loc = ((Locatable) entity).getLocation();
            return isValidLocation(loc);
        }
View Full Code Here

    @Override
    public LdapLocation getSelectedLdapLocation() {
        IntegrationEntity sel = getSelectedEntity();
        if (sel instanceof Source) {
            DataLocation loc = ((Source) sel).getLocation();
            return (LdapLocation) loc;
        }
        return null;
    }
View Full Code Here

     * Returns an icon that has been decorated according to the type of <code>DataLocation</code>
     * used by the given <code>Locatable</code>.
     *
     */
    public Icon getIcon(Locatable locatable, EntityIcons.Size size) {
        DataLocation loc = locatable.getLocation();
        if (loc != null) {
            return getIcon(loc, size);
        }
        return EntityIcons.forType(locatable.getID().getEntityType()).getDefaultIcon(size);
    }
View Full Code Here

        // 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();
        }
        locationAssoc = TargetLocationAssociationFactory.newAssociation(this, newLocation);
        location = newLocation;
View Full Code Here

        }
    }

    @Override
    public boolean isDeepCopyable() {
        DataLocation location = getLocation();
        if (location instanceof HttpLocation) {
            TargetId responseId = ((HttpLocation) location).getTargetIdForResponse();
            return responseId != null;
        }
        return false;
View Full Code Here

        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

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

        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

TOP

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

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.