java.lang.Object
com.thoughtworks.go.plugin.api.response.Result
Direct Known Subclasses:
ExecutionResult

@Deprecated public class Result extends Object
Deprecated.
Represents result of a plugin method invocation
  • Constructor Details

    • Result

      public Result()
      Deprecated.
  • Method Details

    • isSuccessful

      public boolean isSuccessful()
      Deprecated.
      Checks if result is successful
      Returns:
      true if result successful
    • getMessages

      public List<String> getMessages()
      Deprecated.
      Gets error messages associated with result
      Returns:
      error messages associated with result
    • withErrorMessages

      public Result withErrorMessages(String... errors)
      Deprecated.
      Creates instance of result with specified errors
      Parameters:
      errors - the errors with which instance should be created
      Returns:
      created instance
    • withErrorMessages

      public Result withErrorMessages(List<String> errorList)
      Deprecated.
      Creates instance of result with specified errors
      Parameters:
      errorList - the errors with which instance should be created
      Returns:
      created instance
    • withSuccessMessages

      public Result withSuccessMessages(String... successMessages)
      Deprecated.
      Creates instance of result with specified success messages
      Parameters:
      successMessages - the success messages with which instance should be created
      Returns:
      created instance
    • withSuccessMessages

      public Result withSuccessMessages(List<String> successMessages)
      Deprecated.
      Creates instance of result with specified success messages
      Parameters:
      successMessages - the success messages with which instance should be created
      Returns:
      created instance
    • getMessagesForDisplay

      public String getMessagesForDisplay()
      Deprecated.
      Formats the messages in the result to a suitable form so that it can be used in user interface.
      Returns:
      a string containing the formatted message.