java.lang.Object | ||
↳ | com.atlassian.jira.bc.ServiceResultImpl | |
↳ | com.atlassian.jira.bc.ServiceOutcomeImpl<T> |
Generic service outcome that can optionally hold a value.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new ServiceOutcomeImpl with the given errors.
| |||||||||||
Creates a new ServiceOutcomeImpl with the given errors and returned value.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method that returns a new ServiceOutcomeImpl instance containing the provided error message, and no
return value.
| |||||||||||
Convenience method that returns a new ServiceOutcomeImpl instance with the errors from the passed outcome.
| |||||||||||
Convenience method that returns a new ServiceOutcomeImpl instance containing the provided error message, and no
return value.
| |||||||||||
Convenience method that returns a new ServiceOutcomeImpl containing the given errors and null return value.
| |||||||||||
Convenience method that returns a new ServiceOutcomeImpl containing the given errors and returned value.
| |||||||||||
Returns the value that was returned by the service, or null.
| |||||||||||
Returns the value that was returned by the service, or null.
| |||||||||||
Convenience method that returns a new ServiceOutcomeImpl instance containing no errors, and with the provided
returned value.
|
[Expand]
Inherited Methods | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class com.atlassian.jira.bc.ServiceResultImpl | |||||||||||||||||||
From class java.lang.Object | |||||||||||||||||||
From interface
com.atlassian.jira.bc.ServiceOutcome
| |||||||||||||||||||
From interface
com.atlassian.jira.bc.ServiceResult
|
Creates a new ServiceOutcomeImpl with the given errors. The returned value will be set to null.
errorCollection | an ErrorCollection |
---|
Creates a new ServiceOutcomeImpl with the given errors and returned value.
errorCollection | an ErrorCollection |
---|---|
value | the wrapped value |
Convenience method that returns a new ServiceOutcomeImpl instance containing the provided error message, and no return value.
errorMessage | the error message to include in the ServiceOutcomeImpl |
---|---|
reason | for the error. |
Convenience method that returns a new ServiceOutcomeImpl instance with the errors from the passed outcome.
outcome | the outcome whose errors we are taking. |
---|
Convenience method that returns a new ServiceOutcomeImpl instance containing the provided error message, and no return value.
errorMessage | the error message to include in the ServiceOutcomeImpl |
---|
Convenience method that returns a new ServiceOutcomeImpl containing the given errors and null return value.
errorCollection | an ErrorCollection |
---|
Convenience method that returns a new ServiceOutcomeImpl containing the given errors and returned value.
errorCollection | an ErrorCollection |
---|---|
value | the returned value |
Returns the value that was returned by the service, or null.
Returns the value that was returned by the service, or null.
Convenience method that returns a new ServiceOutcomeImpl instance containing no errors, and with the provided returned value.
returnedValue | the returned value |
---|