Class ActionResult<T>

java.lang.Object
com.evolveum.midpoint.ninja.action.ActionResult<T>

public final class ActionResult<T> extends Object
Class that allows to return result and expected exit code from action execution.

It's not a record for now because of the need to support Java 11.

  • Constructor Details

    • ActionResult

      public ActionResult(T result)
    • ActionResult

      public ActionResult(T result, int exitCode)
    • ActionResult

      public ActionResult(T result, int exitCode, String exitMessage)
  • Method Details

    • result

      public T result()
    • exitCode

      public int exitCode()
    • exitMessage

      public String exitMessage()