Package org.jitterbit.integration.data.project

Examples of org.jitterbit.integration.data.project.IntegrationProject$OwnerListener


        Runnable job = new Refresher(appWin, mp, affectedTransformations);
        Application.getWorker().submitForParallel(job);
    }

    private KList<Transformation> collectAffectedTransformations() {
        IntegrationProject project = ProjectUtils.getProject(documentToSave);
        if (project == null) {
            // This is to allow opening an Editor for a TextDocument that is not yet in the project.
            return KList.newList();
        }
        DependencyStore dependencies = project.getCurrentDependencies();
        try {
            return dependencies.getDependingObjects(documentToSave)
                            .keepAll(EntityFilters.allOfType(EntityType.Transformation))
                            .transform(KongaFunctions.cast(Transformation.class));
        } finally {
View Full Code Here


            deps.dispose();
        }
    }

    private static DependencyStore lookupDependencies(IntegrationEntity startPoint) {
        IntegrationProject project = ProjectUtils.getProject(startPoint);
        if (project == null) {
            throw new IllegalArgumentException("startPoint must belong to a project");
        }
        return project.getCurrentDependencies();
    }
View Full Code Here

        xmlPages = new XmlStructureWizardPageChain(wizard, (locatableType == EntityType.Source) ? SourceTarget.Source : SourceTarget.Target, xsdFiles);
        locationSelectionPage = createLocationSelectionPage(wizard, explorer, locatableType, locatableClass);
    }

    private XsdFileStore getXsdFiles(EntityExplorerSupport explorer) {
        IntegrationProject project = explorer.getProject();
        ManagedProject mp = project.getExtensionObject(ManagedProject.class);
        FileStore fileStore = mp.getFileStore();
        return new XsdFileStore(fileStore);
    }
View Full Code Here

        JmsMessageId id = getJmsMessageId();
        if (id == null) {
            // The transformation does not use JMS as source.
            return null;
        }
        IntegrationProject project = ProjectUtils.getProject(m_TreeMapper.getTransformation());
        return project.getItemLookup().getEntity(id, JmsMessage.class).getUserDefinedProperties();
    }
View Full Code Here

        generateXsdPage = new GenerateXsdPage(wizard, getXsdFiles(explorer));
        standardChain = new XmlPageChain<Target>(wizard, explorer, EntityType.Target, Target.class);
    }

    private XsdFileStore getXsdFiles(EntityExplorerSupport explorer) {
        IntegrationProject project = explorer.getProject();
        ManagedProject mp = project.getExtensionObject(ManagedProject.class);
        FileStore fileStore = mp.getFileStore();
        return new XsdFileStore(fileStore);
    }
View Full Code Here

        setSuggestedName(tx);
        setStructure(wsCall, tx);
    }

    private void setSuggestedName(Transformation tx) {
        IntegrationProject project = ProjectUtils.getProject(wsCall);
        if (project == null) {
            return;
        }
        Folder parent = project.getRootFolder(EntityType.Transformation);
        String suggestedName = getSuggestedName(wsCall);
        String availableName = EntityUtils.getAvailableChildName(parent, suggestedName);
        tx.setName(availableName);
    }
View Full Code Here

        try {
          consoleWriter.log("Unpacking the Jitterpak " + jp.getFile());
            JitterPackDescriptor descriptor = jp.getDescriptor();
            ImportParameters params = ImportParameters.DEFAULT;
            Importer importer = createImporter(params);
            IntegrationProject p = importer.unpack(jp, descriptor, destination, params, new IssuesLogger(this.consoleWriter));
            projectManager.setCurrentProject(p);
            return p;
        } catch (ProjectLoadingCancelledException ex) {
          consoleWriter.log(ex);
        } catch (JitterPackException ex) {
View Full Code Here

        struct.setSegment(segment);
        return struct;
    }

    private void insertIntoProject(Folder parent, TextDocument doc) {
        IntegrationProject project = ProjectUtils.getProject(parent);
        project.insertEntity(doc, parent);
    }
View Full Code Here

        try {
            IntegrationEntity parent = original.getParent();
            if (parent == null) {
                throw new IllegalStateException("The entity to be copied has no parent.");
            }
            IntegrationProject project = getProject(parent);
            if (project == null) {
                throw new IllegalStateException("The entity does not belong to a project.");
            }
            IntegrationEntity copy = original.cloneWithNewID();
            copy.setParent(parent);
            setNewName(copy);
            copyPermissions(original, copy, project);
            copyPluginSettings(original, copy, project);
            doSpecialHandling(original, copy, project);
            project.insertEntity(copy, parent);
            return copy;
        } finally {
            IntegrationProjectLock.release();
        }
    }
View Full Code Here

    public IntegrationProject createNewProject(String name, File rootDirectory) throws InterchangeSavingException {
        IntegrationProjectLock.ensureLockHeld();
        checkArgument(name.length() > 0, "name cannot be empty");
        checkNotNull(rootDirectory, "rootDirectory");
        ProjectUtils.prepareRootDirectory(rootDirectory);
        IntegrationProject project = IntegrationProject.createNewProject(name);
        project.setGlobalDataElements(new DefaultGlobalDataElements());
        project.setLocationOnDisk(rootDirectory);
        ProjectFile projectFile = ProjectFile.createForNewProject(project, rootDirectory);
        projectFile.setCreationTimestamp(System.currentTimeMillis());
        projectFile.update(project);
        SystemObjects.populate(project);
        ManagedProjectImpl mp = new ManagedProjectImpl(this, project, projectFile, rootDirectory);
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.project.IntegrationProject$OwnerListener

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.