Class ResourceOperationStatus
java.lang.Object
com.evolveum.midpoint.schema.result.ResourceOperationStatus
- All Implemented Interfaces:
ShortDumpable,Serializable
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 Summary
ConstructorsConstructorDescriptionResourceOperationStatus(@NotNull OperationResultStatus status, @Nullable String asynchronousOperationReference, @Nullable PendingOperationTypeType operationType) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ResourceOperationStatusfromResult(@NotNull OperationResult result, @Nullable PendingOperationTypeType operationType) See the note in class javadoc.@Nullable String@Nullable PendingOperationTypeType@NotNull OperationResultStatusbooleanstatic ResourceOperationStatusof(@NotNull OperationResultStatus status) voidShow the content of the object intended for diagnostics.static @NotNull ResourceOperationStatussuccess()toString()@NotNull ResourceOperationStatuswithStatus(@NotNull OperationResultStatus newStatus) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Constructor Details
-
ResourceOperationStatus
public ResourceOperationStatus(@NotNull @NotNull OperationResultStatus status, @Nullable @Nullable String asynchronousOperationReference, @Nullable @Nullable PendingOperationTypeType operationType)
-
-
Method Details
-
fromResult
@NotNull public static @NotNull ResourceOperationStatus fromResult(@NotNull @NotNull OperationResult result, @Nullable @Nullable PendingOperationTypeType operationType) See the note in class javadoc. -
success
-
getStatus
-
getAsynchronousOperationReference
-
getOperationType
-
of
-
isInProgress
public boolean isInProgress() -
withStatus
@NotNull public @NotNull ResourceOperationStatus withStatus(@NotNull @NotNull OperationResultStatus newStatus) -
shortDump
Description copied from interface:ShortDumpableShow 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:
shortDumpin interfaceShortDumpable- Parameters:
sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
toString
-