Package org.jitterbit.integration.data.location

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


        panel.addTypeSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
                OrderedSelection sel = (OrderedSelection) evt.getSelection();
                DataLocationType type = (DataLocationType) sel.head();
                setCurrentLocationType(type);
            }
        });
        return panel;
    }
View Full Code Here


     */
    public void setCurrentLocationType(DataLocationType type) {
        if (type == currentLocationType) {
            return;
        }
        DataLocationType old = currentLocationType;
        currentLocationType = type;
        setHelpId((type != null) ? LocatablePageHelpIdProvider.getHelpId(SourceTarget.Target, type) : DEFAULT_HELP_ID);
        setTitleIcon(getSmallIcon());
        firePropertyChange("locationType", old, type);
    }
View Full Code Here

*/
public class PostCreationProcessorImpl implements PostCreationProcessor {

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

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

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

    public void setWaitService(WaitService waitService) {
        this.waitService = waitService;
    }

    public List<? extends IntegrationEntity> getAvailableExportDestinations(Source source) {
        DataLocationType locationType = source.getLocation().getDataLocationType();
        return getAvailableDestinations(source, locationType);
    }
View Full Code Here

        DataLocationType locationType = source.getLocation().getDataLocationType();
        return getAvailableDestinations(source, locationType);
    }

    public List<? extends IntegrationEntity> getAvailableExportDestinations(Target target) {
        DataLocationType locationType = target.getLocation().getDataLocationType();
        return getAvailableDestinations(target, locationType);
    }
View Full Code Here

    private DataLocationType[] getAllowedTypes(Locatable locatable, SourceTarget st) {
        DataLocationMetaData md = DataLocationMetaData.getInstance();
        EnumSet<DataLocationType> types = (st == SourceTarget.Source) ?
                        md.getSupportedSourceTypes() : md.getSupportedTargetTypes();
        for (Iterator<DataLocationType> it = types.iterator(); it.hasNext(); ) {
            DataLocationType type = it.next();
            if (!locatable.isLocationTypeAllowed(type)) {
                it.remove();
            }
        }
        return types.toArray(new DataLocationType[types.size()]);
View Full Code Here

    }

    @Override
    public final boolean isAllowed() {
        affectedTransformations = KList.newList();
        DataLocationType current = getCurrentType();
        if (current == page.getSelectedLocationType()) {
            return true;
        }
        if (current == DataLocationType.Database || current == DataLocationType.LDAP) {
            affectedTransformations = collectAffectedTransformations();
View Full Code Here

        panel.addTypeSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
                OrderedSelection sel = (OrderedSelection) evt.getSelection();
                DataLocationType type = (DataLocationType) sel.head();
                setCurrentLocationType(type);
            }
        });
        return panel;
    }
View Full Code Here

     */
    public void setCurrentLocationType(DataLocationType type) {
        if (type == currentLocationType) {
            return;
        }
        DataLocationType old = currentLocationType;
        currentLocationType = type;
        setHelpId((type != null) ? LocatablePageHelpIdProvider.getHelpId(SourceTarget.Source, type) : DEFAULT_HELP_ID);
        setTitleIcon(getSmallIcon());
        firePropertyChange("locationType", old, type);
    }
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.