Package org.jitterbit.integration.data.project

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


        }
    }

    private List<? extends IntegrationEntity> getAvailableDestinations(IntegrationEntity e,
                    DataLocationType locationType) {
        IntegrationProject project = ProjectUtils.getProject(e);
        List<IntegrationEntity> all = new ArrayList<IntegrationEntity>(getSources(project, locationType));
        all.addAll(getTargets(project, locationType));
        all.remove(e);
        return all;
    }
View Full Code Here


            return pipeline;
        }
    }

    private IntegrationEntityLookup getEntityLookup() {
        IntegrationProject project = ProjectUtils.getProject(this);
        if (project == null) {
            throw new IllegalStateException("This operation does not belong to a project");
        }
        return project.getItemLookup();
    }
View Full Code Here

            }
        }
    }

    private void deploy(JitterPack jp) {
        IntegrationProject project = unpacker.unpack(jp);
        try {
            if (project != null) {
                boolean success = deploy(project);
                if (success && backupEnabled) {
                    sendBackup(jp, project);
View Full Code Here

    @Override
    public boolean deleteRequested(List<IntegrationEntity> entitiesToDelete) {
        if (!isAllowed(entitiesToDelete)) {
            return false;
        }
        IntegrationProject project = ProjectUtils.getProject(entitiesToDelete);
        // If there are any objects that depend on any of the deleted
        // entities we must force a save of those objects in case they
        // are currently dirty:
        DependencyChecker checker = new DependencyChecker(project, entitiesToDelete);
        if (checker.isGreenLight()) {
View Full Code Here

        Folder parent = findParent(template);
        doTransform(template, parent);
    }

    private Folder findParent(F from) {
        IntegrationProject project = ProjectUtils.getProject(from);
        if (project == null) {
            throw new UnsupportedOperationException("The original item must be a part of a project.");
        }
        return project.getRootFolder(destinationType);
    }
View Full Code Here

            this.entities = entities;
        }

        @Override
        public void run() throws InterchangeSavingException {
            IntegrationProject project = view.getProject();
            ManagedProject mp = ProjectUtils.getManagedProject(project);
            for (IntegrationEntity e : entities) {
                mp.saveIntegrationEntity(e);
            }
            mp.saveProjectRelationships();
View Full Code Here

     */
    private class StructureSaver implements SaveJob {

        @Override
        public void run() throws InterchangeSavingException {
            IntegrationProject project = view.getProject();
            ManagedProject mp = ProjectUtils.getManagedProject(project);
            mp.saveProjectRelationships();
        }
View Full Code Here

        }
    }

    private KList<Transformation> collectAffectedTransformations() {
        IntegrationEntity locatable = (IntegrationEntity) page.getLocatable();
        IntegrationProject project = ProjectUtils.getProject(locatable);
        DependencyStore dependencies = project.getCurrentDependencies();
        try {
            KList<Transformation> tfs = KList.newList();
            for (IntegrationEntity e : dependencies.getDependingObjects(locatable).keepAll(
                            EntityFilters.allOfType(EntityType.Transformation))) {
                Transformation tf = (Transformation) e;
View Full Code Here

            this.file = file;
        }

        public IntegrationProject restoreProject() throws SAXException, IOException {
            XmlPersistor root = XmlPersistor.load(file);
            IntegrationProject project = createProjectShell(root);
            restoreType(project, EntityType.Operation, root.getFirstChild(OPERATIONS));
            restoreType(project, EntityType.Schedule, root.getFirstChild(SCHEDULES));
            return project;
        }
View Full Code Here

        }
        return w;
    }

    private static IntegrationEntityLookup createEntityLookup(Operation op) {
        IntegrationProject project = ProjectUtils.getProject(op);
        if (project == null) {
            throw new IllegalStateException("The operation does not belong to a project");
        }
        return project.getItemLookup();
    }
View Full Code Here

TOP

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

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.