Package org.jitterbit.integration.plugin.pipeline

Examples of org.jitterbit.integration.plugin.pipeline.PipelinePosition


                    return;
                }
                PluginPositionSelectorModel model = service.getModel();
                Set<PipelinePosition> toSelect = Sets.newHashSet();
                for (LoadSourcePluginIdentifier plugin : previousPluginSetting) {
                    PipelinePosition pos = model.findPosition(plugin.getId(), plugin.getPosition());
                    if (pos != null) {
                        toSelect.add(pos);
                    }
                }
                model.setSelectedPluginPositions(toSelect);
View Full Code Here


        selectEdiPlugin();
    }

    private void selectEdiPlugin() {
        PluginPositionSelectorModel model = service.getModel();
        PipelinePosition ediPlugin = EdiPlugin.forSource();
        model.setPluginPositionSelected(ediPlugin, true);
    }
View Full Code Here

        return plugins;
    }

    private PipelinePosition[] ensureEdiPluginIsSelected(PipelinePosition[] selected) {
        assert ediSource;
        PipelinePosition ediPlugin = EdiPlugin.forSource();
        for (PipelinePosition p : selected) {
            if (p.getPluginId().equals(ediPlugin.getPluginId())) {
                return selected;
            }
        }
        return Arrays2.append(selected, new PipelinePosition[] { ediPlugin });
    }
View Full Code Here

            EntityPipelinePlugin plugin = new EntityPipelinePlugin();

            plugin.EntityId = entity.getID().toString();
            plugin.EntityTypeId = entity.getEntityType().getId();

            PipelinePosition pipelinePosition = appliedPlugin.getPipelinePosition();

            plugin.PipelineEntityTypeId = pipelinePosition.getEntityType().getId();
            plugin.RelativePositionId = pipelinePosition.getRelativePosition().toString();

            // For debugging
            if (!appliedPlugin.getPluginId().equals(pipelinePosition.getPluginId()))
                throw new IllegalStateException(
                                "Internal Error: Applied pipeline and pipeline position have different Plugins associated with them.");
            plugin.PipelinePluginGuid = appliedPlugin.getPluginId().getName();

            m_entityPipelinePlugins.add(plugin);
View Full Code Here

        newPlugins.add(ediPlugin);
        return newPlugins;
    }

    private AppliedPipelinePlugin createEdiPlugin(IntegrationEntity e) {
        PipelinePosition pos = EdiPlugin.getPipelinePosition(e.getEntityType());
        AppliedPipelinePlugin ediPlugin = new AppliedPipelinePlugin(e, pos);
        return ediPlugin;
    }
View Full Code Here

                throw new KongaSaxParserException("Invalid plugin XML: Plugin ID null when parsing position.");
            }
            if (relative == null) {
                checkDefaultValueOfRelative();
            }
            callback.handle(new PipelinePosition(parser.getCurrentPlugin(), subjectType, relative, execOrder, optional));
        }
View Full Code Here

     * Creates the EDI plugin <code>PipelinePosition</code> for the given project item.
     */
    public static PipelinePosition getPipelinePosition(EntityType type) {
        PluginIdentifier id = getPluginId();
        RelativePosition relative = getRelativePosition(type);
        return new PipelinePosition(id, type, relative, 50, true);
    }
View Full Code Here

                RelativePosition relative = RelativePosition.fromString(KongaXmlUtils.getChildElementValue(
                                posElement, XmlConstants.RELATIVE_POSITION));
                boolean optional = Boolean.parseBoolean(KongaXmlUtils.getChildElementValue(
                                posElement, XmlConstants.OPTIONAL));
                if ((subject != null) && (relative != null)) {
                    return new PipelinePosition(pluginId, subject, relative, execOrder, optional);
                }
            } catch (Exception ex) {
                // TODO: The original SAX parser ignored this exception. In a way that makes sense,
                // because we don't want to abort the entire plugin loading just because of one invalid
                // entry, but at the very least we should log it.
View Full Code Here

    @Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
                    int row, int column) {
        super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
        if (value instanceof PipelinePosition) {
            PipelinePosition p = (PipelinePosition) value;
            setText(p.getEntityType() + " - " + p.getRelativePosition());
        }
        return this;
    }
View Full Code Here

    @Override
    public void setValueAt(Object newValue, int rowIndex, int columnIndex) {
        assert columnIndex == 0 : "Only the check box column should be editable";
        super.setValueAt(newValue, rowIndex, columnIndex);
        if (checkedSelectionBinding != null && checkedSelectionBinding.listenToUi) {
            PipelinePosition position = getRowObjectAt(rowIndex).getPipelinePosition();
            boolean selected = ((Boolean) newValue).booleanValue();
            checkedSelectionBinding.selectionChanged(position, selected);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.plugin.pipeline.PipelinePosition

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.