Examples of DeployInterchangeData


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

     *            The JitterPak to send to the server.
     * @param callback
     *            For reporting the result.
     */
    public void uploadJitterpakBackup(JitterPackServerBackup backup, UploadJitterPackCallback callback) {
        DeployInterchangeData deployer = null;
        try {
            deployer = getDeployer(callback);
            if (deployer == null) {
                // The callback has already been notified.
                return;
            }
        } catch (IntegrationServerException e) {
            callback.caught(e);
            return;
        }
        try {
            CUploadedJitterpak uploadedJitterpak = new CUploadedJitterpak();
            uploadedJitterpak.setProjectGuid(backup.getProjectId().toString());
            String base64EncodedJpk = backup.getBase64EncodedData();
            uploadedJitterpak.setBase64EncodedJitterpak(base64EncodedJpk);
            uploadedJitterpak.setTag(backup.getTag());
            deployer.uploadJitterpak(wsConfiguration.getUserName(), wsConfiguration.getPassword(), uploadedJitterpak);
            callback.uploadComplete();
        } catch (RemoteException e) {
            callback.caught(wsConfiguration.convertToIntegrationServerException(e));
        } catch (IOException e) {
            callback.caught(e);
View Full Code Here

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

        if (projectIds.size() == 0) {
            throw new IllegalArgumentException("projectIds cannot be empty!");
        }

        // Call this first so that login pops up if needed.
        DeployInterchangeData deployer = null;
        try {
            deployer = getDeployer(callback);
            if (deployer == null) {
                // The callback has already been notified.
                return;
            }
        } catch (IntegrationServerException e) {
            callback.caught(e);
            return;
        }

        String[] projectGUIDS = new String[projectIds.size()];
        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) {
View Full Code Here

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

        // every now and then. The thread will be interrupted if the
        // user cancels the deploy process --> If the interrupted flag
        // is set we call the canceled method of the callback and return.

        // Call this first so that login pops up first.
        DeployInterchangeData deployer = null;
        try {
            deployer = getDeployer(callback);
            if (deployer == null) {
                // The callback has already been notified.
                return;
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.