Package com.sforce.soap.metadata

Examples of com.sforce.soap.metadata.DeployOptions


        return deployOptions;
    }

    public DeployOptions makeDefaultDeployOptions(boolean checkOnly) {
        DeployOptions deployOptions = new DeployOptions();
        // tell deploy to ignore missing files.  this will save on the one component
        deployOptions.setAllowMissingFiles(true);
        // if successful, return refreshed component
        deployOptions.setPerformRetrieve(true);
        // send back update package manifest too
        deployOptions.setAutoUpdatePackage(true);
        // oh and, if other components don't comply (fail to compile, failed tests, etc), save the ones that do comply
        // REVIEWME: apparently the api only handles test failures.  so, if one component fails
        //   to compile (for example, the whole lot will fail to save).
        deployOptions.setRollbackOnError(true);
        deployOptions.setCheckOnly(checkOnly);
        deployOptions.setRunAllTests(false);
        deployOptions.setSinglePackage(true);
        return deployOptions;
    }
View Full Code Here


            throws ServiceException, ForceRemoteException, InterruptedException, ForceConnectionException {
        if (connection == null || Utils.isEmpty(projectPackageList)) {
            throw new IllegalArgumentException("Connection and/or project package list cannot be null");
        }

        DeployOptions deployOptions = makeDefaultDeployOptions(false);
        return deploy(connection, projectPackageList, deployOptions, monitor);
    }
View Full Code Here

            throws ServiceException, ForceRemoteException, InterruptedException, ForceConnectionException {
        if (connection == null || Utils.isEmpty(zipFile)) {
            throw new IllegalArgumentException("Connection and/or file zip cannot be null");
        }

        DeployOptions deployOptions = makeDefaultDeployOptions(false);
        return deploy(connection, zipFile, deployOptions, null, monitor);
    }
View Full Code Here

    }

    public DeployResultExt deployDelete(Connection connection, ProjectPackageList projectPackageList,
            boolean checkOnly, IProgressMonitor monitor) throws ServiceException, ForceRemoteException,
            InterruptedException {
        DeployOptions deployOptions = makeDefaultDeployOptions(checkOnly);
        // set autoUpdatePackage and PerformRetrieve to true for retreiving updated package.xml
        // W-632267
        deployOptions.setAutoUpdatePackage(true);
        deployOptions.setPerformRetrieve(true);
        DeployResultExt deployResultExt =
                deploy(connection, getZip(projectPackageList, true), deployOptions, null, monitor);
        deployResultExt.getRetrieveResultHandler().setProjectPackageList(projectPackageList);
        return deployResultExt;
    }
View Full Code Here

TOP

Related Classes of com.sforce.soap.metadata.DeployOptions

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.