package com.dtolabs.rundeck.plugins.scm;

/**
 * Created by greg on 9/4/15.
 */
public class ScmExportResultImpl implements ScmExportResult {
    private boolean success;
    private boolean error;
    private String message;
    private String extendedMessage;
    private String id;
    private ScmCommitInfo commit;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public boolean isError() {
        return error;
    }

    public void setError(boolean error) {
        this.error = error;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public ScmCommitInfo getCommit() {
        return commit;
    }

    public void setCommit(ScmCommitInfo commit) {
        this.commit = commit;
    }

    @Override
    public String getExtendedMessage() {
        return extendedMessage;
    }

    public void setExtendedMessage(String extendedMessage) {
        this.extendedMessage = extendedMessage;
    }
}

@@ -168,35 +168,8 @@
 ss;%0A
-    private boolean error;%0A
     
@@ -485,90 +485,16 @@
 urn 
-error;%0A    %7D%0A%0A    public void setError(boolean error) %7B%0A        this.error = error
+!success
 ;%0A  
@@ -490,32 +490,33 @@
 success;%0A    %7D%0A%0A
+%0A
     @Override%0A  

result error should be true if !success