Package org.jitterbit.integration.plugin

Examples of org.jitterbit.integration.plugin.PluginIdentifier


        for (Persistor entry : root.getChildren(ENTRY)) {
            try {
                String name = entry.getString(NAME);
                Version version = VersionFactory.fromString(entry.getString(VERSION));
                RelativePosition pos = RelativePosition.valueOf(entry.getString(POSITION));
                plugins.add(new LoadSourcePluginIdentifier(new PluginIdentifier(name, version), pos));
            } catch (Exception ex) {
                // Could happen if the settings file has become corrupt or has been edited by hand
                ErrorLog.log(PluginSettingsStoreImpl.class, "Invalid plugin entry found in the Transformation settings", ex);
            }
        }
View Full Code Here


        pluginStore.setAssociations(e, newPlugins);
        needsSaving = true;
    }

    private boolean isEdiPluginAlreadyThere(AppliedPipelinePlugin[] existingPlugins) {
        PluginIdentifier ediPluginId = EdiPlugin.getPluginId();
        for (AppliedPipelinePlugin plugin : existingPlugins) {
            if (plugin.getPluginId().equals(ediPluginId)) {
                return true;
            }
        }
View Full Code Here

                                 Version pluginVersion,
                                 PipelinePosition position) {
        checkNotNull(entity, "entity");
        checkNotNull(position, "position");
        this.entity = entity;
        this.pluginId = new PluginIdentifier(pluginName, pluginVersion);
        this.pipelinePosition = position;
    }
View Full Code Here

    }

    private void initializeMap(PipelinePluginManifestCache cache) {
        try {
            for (PipelinePluginManifest mf : cache.getCachedManifests()) {
                PluginIdentifier id = new PluginIdentifier(mf.getName(), mf.getVersion());
                map.put(id, mf.getDisplayName());
            }
        } catch (DataCacheException ex) {
            ex.printStackTrace();
        }
View Full Code Here

        if (versionString == null) {
            return null;
        }
        try {
            Version version = VersionFactory.fromString(versionString);
            return new PluginIdentifier(name, version);
        } catch (IllegalVersionException ex) {
            return null;
        }
    }
View Full Code Here

                        parser.getCurrentElementValue());
            }
        }
       
        private void parsingComplete() throws KongaSaxParserException {
            PluginIdentifier pluginId = parser.getCurrentPlugin();
            if (pluginId == null) {
                throw new KongaSaxParserException("Invalid plugin XML: Plugin ID null when parsing position.");
            }
            if (relative == null) {
                checkDefaultValueOfRelative();
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

        try {
            String name = ApplicationConfiguration.getString("EdiPlugin.Name",
                            "http://www.jitterbit.com/plugins/pipeline/user/EDIReader");
            Version version = ApplicationConfiguration.getVersion("EdiPlugin.Version", VersionFactory
                            .fromString("1.0.0-beta"));
            return new PluginIdentifier(name, version);
        } catch (IllegalVersionException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

            pipelinePosition = parsePipelinePosition(posElement);
        }
       
        private PipelinePosition parsePipelinePosition(Element posElement) throws Exception {
            try {
                PluginIdentifier pluginId = new PluginIdentifier(pluginName, pluginVersion);
                EntityType subject = EntityType.valueOf(KongaXmlUtils.getChildElementValue(
                                posElement, XmlConstants.POSITION_SUBJECT));
                int execOrder = PipelinePosition.DEFAULT_EXECUTION_ORDER;
                try {
                    execOrder = Integer.parseInt(KongaXmlUtils.getChildElementValue(
View Full Code Here

            if (selected instanceof IntegrationEntity) {
                if (pageDisplayer != null) {
                    pageDisplayer.openPage((IntegrationEntity) selected);
                }
            } else if (selected instanceof PluginIdentifier) {
                final PluginIdentifier id = (PluginIdentifier) selected;
                BusyWorker worker = new BusyWorker(getWindow()) {

                    @Override
                    protected void doWork() {
                        viewPluginInfo(id);
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.plugin.PluginIdentifier

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.