Package org.jitterbit.integration.data.location

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


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


            return false;
        }
        // The reason this method is not on the DataLocation level is that the history
        // property is applicable only to Sources, and DataLocations are used by both
        // sources and targets.
        DataLocationType type = location.getDataLocationType();
        return (type != DataLocationType.Database) && (type != DataLocationType.JMS);
    }
View Full Code Here

* @since 4.0.2
*/
final class DataLocationEntries {

    public static void addTo(IntegrationEntityToolTip tt, DataLocation loc, SourceTarget st) {
        DataLocationType type = loc.getDataLocationType();
        tt.addEntry("Type:", type);
        if (loc instanceof FileLocation) {
            addFileLocationEntries(tt, (FileLocation) loc, st);
        } else if (loc instanceof DatabaseLocation) {
            addDbLocationEntries(tt, (DatabaseLocation) loc);
View Full Code Here

    private Predicate<IntegrationEntity> getLocationFilter(SearchOptions stringOptions) {
        if (currentTypePanel == null) {
            return SearchFieldUtils.ALL;
        }
        final DataLocationType type = typeField.getValue();
        final Predicate<IntegrationEntity> typeSettings = currentTypePanel.getSearcher(stringOptions);
        return new Predicate<IntegrationEntity>() {

            @Override
            public boolean apply(IntegrationEntity entity) {
View Full Code Here

            throw new DataLocationMetaDataXmlException(ex);
        }
    }

    private void processType(Element e) {
        DataLocationType type = DataLocationType.valueOf(KongaXmlUtils.getChildElementValue(e, "LocationType"));
        if (isYes(e, "source")) {
            sourceTypes.add(type);
        }
        if (isYes(e, "target")) {
            targetTypes.add(type);
View Full Code Here

        }
        DataLocation location = locatable.getLocation();
        if (location == null) {
            return null;
        }
        DataLocationType type = location.getDataLocationType();
        return StructureLocationAssociations.getAssociatedStructureType(type);
    }
View Full Code Here

    private void handleNoAvailableDestinations(Source source) {
        Alert.info(getNoDestinationMessage(source), getString("Source.Export.NoDestinations.Title"));
    }

    private static String getNoDestinationMessage(Source src) {
        DataLocationType locType = src.getLocation().getDataLocationType();
        String pattern = getString("Source.Export.NoDestinations.Message");
        return MessageFormat.format(pattern, locType);
    }
View Full Code Here

            return;
        }
        if (displayedLocationPanel != null) {
            parent.removeInputPanel(displayedLocationPanel);
        }
        DataLocationType locType = locationPanel.getDisplayedObject().getDataLocationType();
        if (!mapLocationPanels.containsKey(locType)) {
            prepareLocationPanelForDisplay(locationPanel);
            createConnectionParamsPanel(locType, locationPanel);
        }
        UiUtils.setOpaqueRecursivelySkipDefaults(locationPanel.getUi(), false);
        displayedLocationPanel = locationPanel;
        locationPanelContainer.show(locType.name());
    }
View Full Code Here

*/
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)) {
View Full Code Here

*/
public class PostCreationProcessorImpl implements PostCreationProcessor {

    @Override
    public void process(IntegrationProject project, IntegrationEntity entity) {
        DataLocationType type = new DefaultTargetTypePreference().get();
        if (type != null) {
            ((Target) entity).setLocation(type.createLocation());
        }
    }
View Full Code Here

TOP

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

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.