Package com.sforce.soap.metadata

Examples of com.sforce.soap.metadata.DeployResult


    public String checkDeploy(@PathVariable("asyncId") String asyncId) throws Exception
    {
      // Connect to Metadata API, check async status and return to client
        ForceServiceConnector connector = new ForceServiceConnector(ForceServiceConnector.getThreadLocalConnectorConfig());
        MetadataConnection metadataConnection = connector.getMetadataConnection();
        DeployResult deployResult = metadataConnection.checkDeployStatus(asyncId);
    ObjectMapper objectMapper = new ObjectMapper();
    return objectMapper.writeValueAsString(printErrors(deployResult));
    }
View Full Code Here


            return result;
        }
       
        @Mock
        public DeployResult checkDeployStatus(String processId) {
            DeployResult result = new DeployResult();
            result.setSuccess(true);
            return result;
        }
View Full Code Here

        AsyncResult asyncResult = metadatabinding.deploy(readZipFile(DEPLOY_ZIP), deployOptions);

        // Wait for the deploy to complete 
        waitForAsyncResult(metadatabinding, new AsyncResult[] {asyncResult}, true, DEPLOY_ZIP);

        DeployResult result = metadatabinding.checkDeployStatus(asyncResult.getId());
       
        // Log any messages 
        StringBuilder buf = new StringBuilder();
        if (result.getMessages() != null) {
            for (DeployMessage rm : result.getMessages()) {
                if (rm.getProblem() != null) {
                    buf.append("Error deploying: " + rm.getFileName() + " - " + rm.getProblem() + " \n ");
                }
            }
        }
View Full Code Here

    public DeployResult checkDeployStatus(String asyncProcessId) throws ForceRemoteException {
        if (metadataConnection == null) {
            throw new IllegalArgumentException("Metadata stub cannot be null");
        }

        DeployResult deployResult = null;
        try {
            deployResult = metadataConnection.checkDeployStatus(asyncProcessId, true);
        } catch (ConnectionException e) {
            ForceExceptionUtils.throwTranslatedException(e, connection);
        }
View Full Code Here

            ServiceException, ForceRemoteException, ForceRemoteException, InterruptedException {
        if (metadataStubExt == null) {
            throw new IllegalArgumentException("MetadataStubExt cannot be null");
        }

        DeployResult deployResult;
        try {
            IFileBasedResultAdapter result =
                    waitForResult(new DeployResultAdapter(asyncResult, metadataStubExt), metadataStubExt,
                        operationStats, monitor);
            deployResult = ((DeployResultAdapter) result).getDeployResult();
View Full Code Here

TOP

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

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.