Package org.jitterbit.integration.client.project

Examples of org.jitterbit.integration.client.project.ManagedProject


     */
    public boolean validate(Collection<IntegrationEntity> toDeploy) {
        if ((toDeploy == null) || toDeploy.isEmpty()) {
            return true;
        }
        ManagedProject project = getProject(toDeploy);
        return validateItems(project, toDeploy);
    }
View Full Code Here


    private class TestTransformationHandler extends ServerTestCallbackAdapter {

        private final TestTransformationHistory history;

        public TestTransformationHandler() {
            ManagedProject project = ProjectUtils.getManagedProject(getTransformation());
            this.history = project.getTestHistory().getTestTransformationHistory();
        }
View Full Code Here

    private void persistResult(IntegrationEntity object, TestConnectionResult result) {
        if (result == null) {
            return;
        }
        ManagedProject project = ProjectUtils.getManagedProject(object);
        if (project != null) {
            project.getTestHistory().getTestConnectionHistory().add(result);
        }
    }
View Full Code Here

    private void createNewProjectID() {
        project.generateNewId();
    }

    private void saveToDisk() throws InterchangeSavingException {
        ManagedProject mp = projectManager.getProject(project);
        mp.emptyTrashCan();
        mp.eraseDeletedItemsHistory();
        mp.saveToDisk();
    }
View Full Code Here

    private void closeProject() {
        if (project == null) {
            return;
        }
        try {
            ManagedProject mp = project.getExtensionObject(ManagedProject.class);
            projectManager.closeProject(mp);
        } catch (CloseProjectVetoException e) {
            throw new RuntimeException("This should not have happened. This is a bug.", e);
        }
    }
View Full Code Here

        }
    }

    private void onCompleteProjectDeployed(DeployResult results) throws InterchangeSavingException {
        DeployLog.LOG.fine("Handing over to the ProjectManager for processing complete project deploy");
        ManagedProject mp = deployData.getProject().getExtensionObject(ManagedProject.class);
        mp.projectWasDeployed(results);
    }
View Full Code Here

        call.deployProject(data, cb);
        return cb.waitUntilDone();
    }

    private DeployData convertProjectToDeployData(final IntegrationProject project) {
        final ManagedProject mp = project.getExtensionObject(ManagedProject.class);
        return new DeployData() {

            @Override
            public FileStore getFileStore() {
                return mp.getFileStore();
            }

            @Override
            public InputAndOutputMappingTreeStructureCache getTransformationStructureCache() {
                return mp.getTransformationMappingStructureCache();
            }

            @Override
            public PermissionsManager getPermissions() {
                return mp.getPermissions();
            }

            @Override
            public AppliedPipelinePluginStore getPluginFilters() {
                return mp.getPipelinePlugins().getAppliedPlugins();
            }

            @Override
            public EntityResources getEntityResources() {
                return mp.getEntityResources();
            }

            @Override
            public IntegrationProject getProject() {
                return project;
            }

            @Override
            public boolean isPartial() {
                return false;
            }

            @Override
            public Collection<IntegrationId> getDeletedItemsOfType(EntityType type) {
                return mp.getDeletedItemsOfType(type);
            }

            @Override
            public String getTag() {
                return null;
View Full Code Here

            }

            private void postDeployProcessing(DeployResult result) {
                IntegrationProjectLock.acquire();
                try {
                    ManagedProject mp = project.getExtensionObject(ManagedProject.class);
                    mp.projectWasDeployed(result);
                } catch (InterchangeSavingException ex) {
                    consoleWriter.log(ex);
                } finally {
                    IntegrationProjectLock.release();
                }
View Full Code Here

            this.itemsToDeploy = items;
        }

        public void run() {
            partialProject = IntegrationProject.createPartialProject(project, itemsToDeploy);
            ManagedProject managedProject = project.getExtensionObject(ManagedProject.class);
            DeployData data = new DeployDataImpl(managedProject, partialProject, true);
            worker.addCallback(new CallbackImpl(managedProject));
            worker.deploy(data, managedProject.getDeployHistory());
        }
View Full Code Here

        }

        @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

TOP

Related Classes of org.jitterbit.integration.client.project.ManagedProject

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.