Class Result
java.lang.Object
com.thoughtworks.go.plugin.api.response.Result
- Direct Known Subclasses:
ExecutionResult
@Deprecated
public class Result
extends java.lang.Object
Deprecated.
Represents result of a plugin method invocation
-
Constructor Summary
Constructors Constructor Description Result()Deprecated. -
Method Summary
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 messagesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 java.util.List<java.lang.String> 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
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.
-