Package com.sforce.soap.metadata

Examples of com.sforce.soap.metadata.DeployMessage


     * Print out any errors, if any, related to the deploy.
     * @param result - DeployResult
     */
    private static String printErrors(DeployResult result)
    {
        DeployMessage messages[] = result.getMessages();
        StringBuilder buf = new StringBuilder();
        for (DeployMessage message : messages) {
            if (!message.isSuccess()) {
              if(buf.length()==0)
                buf = new StringBuilder("\nFailures:\n");
View Full Code Here


        if (deployResultHandler != null && deployResultHandler.getMessageCount() > 0) {
            DeployMessageExt deployMessageExt = deployResultHandler.getMessageHandler();
            deployMessageExt.sort(DeployMessageExt.SORT_RESULT);
            DeployMessage[] deployMessages = deployMessageExt.getMessages();
            for (int i = 0; i < deployMessages.length; i++) {
                DeployMessage deployMessage = deployMessages[i];
                strBuff.append("\n   File Name:    ").append(deployMessage.getFileName()).append("\n   Full Name:  ").append(
                    deployMessage.getFullName()).append("\n   Action:  ").append(
                    getActionString(deployMessage)).append("\n   Result:  ").append(
                    deployMessage.isSuccess() ? "SUCCESS" : "FAILED").append("\n   Problem: ").append(
                    Utils.isNotEmpty(deployMessage.getProblem()) ? deployMessage.getProblem() : "n/a").append("\n");
            }
        } else {
            strBuff.append("\n  n/a\n");
        }
View Full Code Here

        if (deployResultHandler != null && deployResultHandler.getMessageCount() > 0) {
            DeployMessageExt deployMessageExt = deployResultHandler.getMessageHandler();
            deployMessageExt.sort(DeployMessageExt.SORT_RESULT);
            DeployMessage[] deployMessages = deployMessageExt.getMessages();
            for (int i = 0; i < deployMessages.length; i++) {
                DeployMessage deployMessage = deployMessages[i];
                if (deployMessage.isSuccess()) {
                    continue;
                }

                strBuff.append("\n   Name:    ").append(deployMessage.getFileName()).append(
                    Utils.isNotEmpty(deployMessage.getProblem()) ? deployMessage.getProblem() : "n/a").append("\n");
            }
        } else {
            strBuff.append("\n  n/a\n");
        }
        return strBuff.toString();
View Full Code Here

TOP

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

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.