Class UnknownOperationResult

java.lang.Object
io.jmix.ui.util.UnknownOperationResult
All Implemented Interfaces:
OperationResult

@NotThreadSafe public class UnknownOperationResult extends Object implements OperationResult
  • Constructor Details

    • UnknownOperationResult

      public UnknownOperationResult()
  • Method Details

    • getStatus

      public OperationResult.Status getStatus()
      Specified by:
      getStatus in interface OperationResult
      Returns:
      status of the operation
    • compose

      public OperationResult compose(Supplier<OperationResult> nextStep)
      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 interface OperationResult
      Parameters:
      nextStep - the next operation result supplier
      Returns:
      new composite operation result
    • then

      public OperationResult then(Runnable runnable)
      Description copied from interface: OperationResult
      Adds success callback to the operation result.
      Specified by:
      then in interface OperationResult
      Parameters:
      runnable - callback
      Returns:
      this
    • otherwise

      public OperationResult otherwise(Runnable runnable)
      Description copied from interface: OperationResult
      Adds fail callback to the operation result.
      Specified by:
      otherwise in interface OperationResult
      Parameters:
      runnable - callback
      Returns:
      this
    • fail

      public void fail()
    • success

      public void success()
    • resolveWith

      public void resolveWith(OperationResult result)
      Resolve this result depending on the passed result. Alias for resume(OperationResult).
      Parameters:
      result - dependency
    • resume

      public void resume(OperationResult result)
      Resume action depending on the passed result.
      Parameters:
      result - dependency
    • toString

      public String toString()
      Overrides:
      toString in class Object