Class Result
- java.lang.Object
-
- com.thoughtworks.go.plugin.api.response.Result
-
- Direct Known Subclasses:
ExecutionResult
@Deprecated public class Result extends java.lang.ObjectDeprecated.Represents result of a plugin method invocation
-
-
Constructor Summary
Constructors Constructor Description Result()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>getMessages()Deprecated.Gets error messages associated with resultjava.lang.StringgetMessagesForDisplay()Deprecated.Formats the messages in the result to a suitable form so that it can be used in user interface.booleanisSuccessful()Deprecated.Checks if result is successfulResultwithErrorMessages(java.lang.String... errors)Deprecated.Creates instance of result with specified errorsResultwithErrorMessages(java.util.List<java.lang.String> errorList)Deprecated.Creates instance of result with specified errorsResultwithSuccessMessages(java.lang.String... successMessages)Deprecated.Creates instance of result with specified success messagesResultwithSuccessMessages(java.util.List<java.lang.String> successMessages)Deprecated.Creates instance of result with specified success messages
-
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
Deprecated.Checks if result is successful- Returns:
- true if result successful
-
getMessages
public java.util.List<java.lang.String> getMessages()
Deprecated.Gets error messages associated with result- Returns:
- error messages associated with result
-
withErrorMessages
public Result withErrorMessages(java.lang.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(java.util.List<java.lang.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(java.lang.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(java.util.List<java.lang.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 java.lang.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.
-
-