Package org.jitterbit.integration.data.location

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


        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


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

            }
        }.runInBackgroundThread();
    }

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

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

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

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

            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

        Source source = getSource();
        if (source == null) {
            Alert.error("The operation does not have a source.", "No Source");
            return false;
        }
        DataLocation location = source.getLocation();
        if (!location.isFileBased()) {
            Alert.error("The operation source is not file based.", "Not File Based");
            return false;
        }
        return true;
    }
View Full Code Here

     */
    public TargetPage(Target target) {
        super(new IntegrationEntityPageModel(target));
        iconPrefListener = new IconPreferenceListener();
        setHelpId(DEFAULT_HELP_ID);
        DataLocation loc = target.getLocation();
        if (loc != null) {
            setCurrentLocationType(loc.getDataLocationType());
        }
    }
View Full Code Here

        protected boolean preDefaultProcessing(IntegrationEntity entity, PostDeployProcessingManager manager) {
            if (entity instanceof SystemTarget) {
                return false;
            }
            blankOutPasswordsIfRequired(entity, FileLocation.PROPERTY_PASSWORD, manager);
            DataLocation location = ((Target) entity).getLocation();
            PostDeployLocationProcessor processor = new PostDeployLocationProcessor(manager);
            processor.process(location);
            return true;
        }
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.