Class ResourceOperationStatus

java.lang.Object
com.evolveum.midpoint.schema.result.ResourceOperationStatus
All Implemented Interfaces:
ShortDumpable, Serializable

public class ResourceOperationStatus extends Object implements Serializable, ShortDumpable
Represents the status of a "modifying" operation (add, modify, delete) on a resource. == Note about `fromResult` methods that create objects of this type The content of these objects overlaps with the content of OperationResult. However, the latter is much more generic, hence the relevant data were extracted and are stored separately here. To allow simple creation of these objects, there are many utility methods named `fromResult` that create objects of this type from OperationResult. Common requirements is that the source OperationResult must be closed (so its status is available), and the asynchronous operation reference must be present at the top level.
See Also:
  • Constructor Details

  • Method Details

    • fromResult

      @NotNull public static @NotNull ResourceOperationStatus fromResult(@NotNull @NotNull OperationResult result, @Nullable @Nullable PendingOperationTypeType operationType)
      See the note in class javadoc.
    • success

      @NotNull public static @NotNull ResourceOperationStatus success()
    • getStatus

      @NotNull public @NotNull OperationResultStatus getStatus()
    • getAsynchronousOperationReference

      @Nullable public @Nullable String getAsynchronousOperationReference()
    • getOperationType

      @Nullable public @Nullable PendingOperationTypeType getOperationType()
    • of

      public static ResourceOperationStatus of(@NotNull @NotNull OperationResultStatus status)
    • isInProgress

      public boolean isInProgress()
    • withStatus

      @NotNull public @NotNull ResourceOperationStatus withStatus(@NotNull @NotNull OperationResultStatus newStatus)
    • shortDump

      public void shortDump(StringBuilder sb)
      Description copied from interface: ShortDumpable
      Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.
      Specified by:
      shortDump in interface ShortDumpable
      Parameters:
      sb - StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
    • toString

      public String toString()
      Overrides:
      toString in class Object