Package io.jmix.flowui.util
Interface OperationResult
- All Known Implementing Classes:
- FailedOperationResult,- SuccessOperationResult,- UnknownOperationResult
public interface OperationResult
Operation result object.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptioncompose(Supplier<OperationResult> nextStep) Creates new operation result that represents composition of two operation results.static OperationResultfail()Adds fail callback to the operation result.static OperationResultsuccess()Adds success callback to the operation result.
- 
Method Details- 
fail
- 
success
- 
getStatusOperationResult.Status getStatus()- Returns:
- status of the operation
 
- 
composeCreates new operation result that represents composition of two operation results. If this result is resolved as successful, then the second result will be obtained from the passed supplier.- Parameters:
- nextStep- the next operation result supplier
- Returns:
- new composite operation result
 
- 
thenAdds success callback to the operation result.- Parameters:
- runnable- callback
- Returns:
- this
 
- 
otherwiseAdds fail callback to the operation result.- Parameters:
- runnable- callback
- Returns:
- this
 
 
-