Examples of DataLocation


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


    private final class SourceConnectionTesterFactory {

        public ConnectionTester getTester(Source src) {
            DataLocation location = src.getLocation();
            if (location == null) {
                return null;
            }
            switch (location.getDataLocationType()) {
            case Database:
                return visit((DatabaseLocation) location);
            case FileShare:
                return visit((FileShareLocation) location);
            case TemporaryStorage:
                return visit((TemporaryStorageLocation) location);
            case FTP:
                return visit((FtpLocation) location);
            case HTTP:
                return visit((HttpLocation) location);
            case JMS:
                return visit((JmsLocation) location);
            case LDAP:
                return visit((LdapLocation) location);
            default:
                throw new UnsupportedOperationException("Unexpected location type: " + location.getDataLocationType());
            }
        }
View Full Code Here

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


    private final class TargetConnectionTesterFactory {

        public ConnectionTester getTester(Target tgt) {
            DataLocation location = tgt.getLocation();
            if (location == null) {
                return null;
            }
            switch (location.getDataLocationType()) {
            case Database:
                return visit((DatabaseLocation) location);
            case FileShare:
                return visit((FileShareLocation) location);
            case TemporaryStorage:
                return visit((TemporaryStorageLocation) location);
            case FTP:
                return visit((FtpLocation) location);
            case HTTP:
                return visit((HttpLocation) location);
            case JMS:
                return visit((JmsLocation) location);
            case LDAP:
                return visit((LdapLocation) location);
            default:
                throw new UnsupportedOperationException("Unexpected location type: " + location.getDataLocationType());
            }
        }
View Full Code Here

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

public class FileBasedLocationFilter implements EntityFilter {

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

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

        protected boolean preDefaultProcessing(IntegrationEntity entity, PostDeployProcessingManager manager) {
            if (entity instanceof SystemSource) {
                return false;
            }
            blankOutPasswordsIfRequired(entity, FileLocation.PROPERTY_PASSWORD, manager);
            DataLocation location = ((Source) entity).getLocation();
            PostDeployLocationProcessor processor = new PostDeployLocationProcessor(manager);
            processor.process(location);
            return true;
        }
View Full Code Here

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

     *
     * @throws NullPointerException
     *             if <code>type</code> is <code>null</code>
     */
    public static DataLocation newLocation(DataLocationType type) {
        DataLocation loc = type.createLocation();
        switch (type) {
        case FTP:
            FtpLocation ftp = (FtpLocation) loc;
            FtpSecurityOption secOption = FtpSecurityOptionPreference.INSTANCE.get();
            ftp.setSecurityOption(secOption);
View Full Code Here

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

            }
        }.runInBackgroundThread();
    }

    private void doExportImpl(Source source, List<? extends IntegrationEntity> availableDestinations) {
        DataLocation original = source.getLocation();
        helper.doExport(original, availableDestinations);
    }
View Full Code Here

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

     * @return a <code>DataLocationPanel</code> for editing a location of the given type
     */
    public DataLocationPanel getPanel(DataLocationType type) {
        DataLocationPanel panel = panels.get(type);
        if (panel == null) {
            DataLocation loc = DataLocationFactory.newLocation(type);
            panel = getPanel(loc);
        }
        return panel;
    }
View Full Code Here

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

* @since 4.0.0
*/
final class LocatableTransformHelper {

    public static DataLocation cloneLocation(Locatable template) {
        DataLocation original = template.getLocation();
        DataLocationType type = original.getDataLocationType();
        DataLocation clone = type.createLocation();
        ExportableProperty[] properties = original.getExportableProperties();
        for (ExportableProperty p : properties) {
            p.exportTo(clone);
        }
        if (isPasswordMissing(original)) {
            String password = askForPassword(template);
            if (password != null) {
                String propertyName = ((LoginProtectedResource) clone).getPasswordPropertyName();
                clone.setProperty(propertyName, password);
            }
        }
        return clone;
    }
View Full Code Here

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

* @since 4.0.0
*/
final class LocationSearchValuesCollector {

    public static KList<String> collect(Locatable locatable) {
        DataLocation dl = locatable.getLocation();
        if (dl != null) {
            switch (dl.getDataLocationType()) {
            case FileShare:
                FileShareLocation fileShare = (FileShareLocation) dl;
                return KList.fromItems(fileShare.getLogin(), fileShare.getPath(),
                                fileShare.getFileFilter().getFilter(), fileShare.getRenameFileTo().getFileName());
            case TemporaryStorage:
View Full Code Here

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

            this.locatable = locatable;
        }

        @Override
        public void prepareItem(PostExportManager manager) {
            DataLocation loc = locatable.getLocation();
            if (loc != null) {
                new DataLocationPreparer(loc).prepareItem(manager);
            }
        }
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.