Examples of CDeployResults


Examples of org.jitterbit.integration.server.implementation.webservice.interchange.deploy.client.CDeployResults

        for (int i = 0; i < projectIds.size(); ++i) {
            projectGUIDS[i] = projectIds.get(i).toString();
        }

        try {
            CDeployResults results = deployer.deleteInterchangeProjects(wsConfiguration.getUserName(), wsConfiguration
                            .getPassword(), projectGUIDS);
            CDeployWarning[] deployWarnings = results.getWarnings();
            List<DeleteIntegrationProjectResult> deleteProjectResults = new ArrayList<DeleteIntegrationProjectResult>();
            DeleteIntegrationProjectResultFactory factory = new DeleteIntegrationProjectResultFactory();
            for (IntegrationProjectId id : projectIds) {
                deleteProjectResults.add(factory.create(id, deployWarnings));
            }
View Full Code Here

Examples of org.jitterbit.integration.server.implementation.webservice.interchange.deploy.client.CDeployResults

                updatedData.setPipelinePluginEntityAssociations(EntityPipelinePlugin
                                .getInterchangeDataTable(m_entityPipelinePlugins));

                DeployLog.LOG.info("Now sending the project data to the server");
                // Call deploy web service.
                CDeployResults deployResults = deployer.deployInterchangeData(user, password, deletedData, updatedData);
                DeployLog.LOG.info("The server has acknowledged that it receieved the data");
                if (Thread.currentThread().isInterrupted()) {
                    callback.cancelled();
                    return;
                }

                // Upload Jtr files if we have any.
                CDeployResults jtrDeployResults = null;
                if (m_transformationJtrs.size() > 0) {
                    CJtrFiles jtrFilesToUpload = new CJtrFiles();
                    jtrFilesToUpload.setJtrFiles(m_transformationJtrs
                                    .toArray(new CJtrFile[m_transformationJtrs.size()]));
                    DeployLog.LOG.info("Now sending JTR files to the server");
                    jtrDeployResults = deployer.uploadJtrFiles(user, password, jtrFilesToUpload);
                    DeployLog.LOG.info("The server has acknowledged that it receieved the JTR files");
                    if (Thread.currentThread().isInterrupted()) {
                        callback.cancelled();
                        return;
                    }
                }

                // Extract renamed items.
                CDeployRename[] deployRenames = deployResults.getRenamedItems();
                List<RenamedEntity> renamedEntities = Lists.newArrayList();
                if (deployRenames != null) {
                    for (CDeployRename rename : deployRenames) {
                        renamedEntities.add(new RenamedEntityImpl(getIntegrationEntityId(rename.getEntity()), rename
                                        .getOldName(), rename.getNewName()));
                    }
                }

                // Extract warnings from deploy.
                CDeployWarning[] deployWarnings = deployResults.getWarnings();
                Set<EntityWarning> itemWarnings = new LinkedHashSet<EntityWarning>();
                List<String> warnings = Lists.newArrayList();
                if (deployWarnings != null) {
                    for (CDeployWarning warning : deployWarnings) {
                        fillDeployWarning(warning, itemWarnings, warnings);
                    }
                }

                // Extract warnings from JTR upload.
                if (jtrDeployResults != null) {
                    deployWarnings = jtrDeployResults.getWarnings();
                    if (deployWarnings != null) {
                        for (CDeployWarning warning : deployWarnings) {
                            fillDeployWarning(warning, itemWarnings, warnings);
                        }
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.