Package io.jmix.ui.util
Class UnknownOperationResult
java.lang.Object
io.jmix.ui.util.UnknownOperationResult
- All Implemented Interfaces:
OperationResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.util.OperationResult
OperationResult.Status
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompose
(Supplier<OperationResult> nextStep) Creates new operation result that represents composition of two operation results.void
fail()
Adds fail callback to the operation result.void
resolveWith
(OperationResult result) Resolve this result depending on the passed result.void
resume
(OperationResult result) Resume action depending on the passed result.void
success()
Adds success callback to the operation result.toString()
-
Constructor Details
-
UnknownOperationResult
public UnknownOperationResult()
-
-
Method Details
-
getStatus
- Specified by:
getStatus
in interfaceOperationResult
- Returns:
- status of the operation
-
compose
Description copied from interface:OperationResult
Creates 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.- Specified by:
compose
in interfaceOperationResult
- Parameters:
nextStep
- the next operation result supplier- Returns:
- new composite operation result
-
then
Description copied from interface:OperationResult
Adds success callback to the operation result.- Specified by:
then
in interfaceOperationResult
- Parameters:
runnable
- callback- Returns:
- this
-
otherwise
Description copied from interface:OperationResult
Adds fail callback to the operation result.- Specified by:
otherwise
in interfaceOperationResult
- Parameters:
runnable
- callback- Returns:
- this
-
fail
public void fail() -
success
public void success() -
resolveWith
Resolve this result depending on the passed result. Alias forresume(OperationResult)
.- Parameters:
result
- dependency
-
resume
Resume action depending on the passed result.- Parameters:
result
- dependency
-
toString
-