Class Result
java.lang.Object
com.thoughtworks.go.plugin.api.response.Result
- Direct Known Subclasses:
ExecutionResult
Deprecated.
Represents result of a plugin method invocation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets error messages associated with resultDeprecated.Formats the messages in the result to a suitable form so that it can be used in user interface.booleanDeprecated.Checks if result is successfulwithErrorMessages(String... errors) Deprecated.Creates instance of result with specified errorswithErrorMessages(List<String> errorList) Deprecated.Creates instance of result with specified errorswithSuccessMessages(String... successMessages) Deprecated.Creates instance of result with specified success messageswithSuccessMessages(List<String> successMessages) Deprecated.Creates instance of result with specified success messages
-
Constructor Details
-
Result
public Result()Deprecated.
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()Deprecated.Checks if result is successful- Returns:
- true if result successful
-
getMessages
Deprecated.Gets error messages associated with result- Returns:
- error messages associated with result
-
withErrorMessages
Deprecated.Creates instance of result with specified errors- Parameters:
errors- the errors with which instance should be created- Returns:
- created instance
-
withErrorMessages
Deprecated.Creates instance of result with specified errors- Parameters:
errorList- the errors with which instance should be created- Returns:
- created instance
-
withSuccessMessages
Deprecated.Creates instance of result with specified success messages- Parameters:
successMessages- the success messages with which instance should be created- Returns:
- created instance
-
withSuccessMessages
Deprecated.Creates instance of result with specified success messages- Parameters:
successMessages- the success messages with which instance should be created- Returns:
- created instance
-
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.
-