Class CorrelationResult
- java.lang.Object
-
- com.evolveum.midpoint.model.api.correlator.CorrelationResult
-
- All Implemented Interfaces:
DebugDumpable
,Serializable
public class CorrelationResult extends Object implements Serializable, DebugDumpable
Result of a correlation operation.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CorrelationResult.ErrorDetails
static class
CorrelationResult.Status
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
debugDump(int indent)
static CorrelationResult
error(@NotNull CorrelationResult.ErrorDetails details)
static CorrelationResult
error(@NotNull Throwable t)
static CorrelationResult
existingOwner(@NotNull ObjectType owner)
@Nullable String
getErrorMessage()
@Nullable ObjectType
getOwner()
@Nullable ResourceObjectOwnerOptionsType
getOwnerOptions()
@NotNull ResourceObjectOwnerOptionsType
getOwnerOptionsRequired()
@NotNull ObjectType
getOwnerRequired()
@NotNull CorrelationSituationType
getSituation()
boolean
isDone()
boolean
isError()
boolean
isExistingOwner()
boolean
isNoOwner()
boolean
isUncertain()
static CorrelationResult
noOwner()
void
throwCommonOrRuntimeExceptionIfPresent()
Throws aCommonException
or aRuntimeException
, if the state is "error".String
toString()
static CorrelationResult
uncertain(@NotNull ResourceObjectOwnerOptionsType ownerOptions)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Method Detail
-
existingOwner
public static CorrelationResult existingOwner(@NotNull @NotNull ObjectType owner)
-
noOwner
public static CorrelationResult noOwner()
-
uncertain
public static CorrelationResult uncertain(@NotNull @NotNull ResourceObjectOwnerOptionsType ownerOptions)
-
error
public static CorrelationResult error(@NotNull @NotNull Throwable t)
-
error
public static CorrelationResult error(@NotNull @NotNull CorrelationResult.ErrorDetails details)
-
getSituation
@NotNull public @NotNull CorrelationSituationType getSituation()
-
getOwner
@Nullable public @Nullable ObjectType getOwner()
-
getOwnerRequired
@NotNull public @NotNull ObjectType getOwnerRequired()
-
getOwnerOptions
@Nullable public @Nullable ResourceObjectOwnerOptionsType getOwnerOptions()
-
getOwnerOptionsRequired
@NotNull public @NotNull ResourceObjectOwnerOptionsType getOwnerOptionsRequired()
-
isUncertain
public boolean isUncertain()
-
isError
public boolean isError()
-
isExistingOwner
public boolean isExistingOwner()
-
isNoOwner
public boolean isNoOwner()
-
isDone
public boolean isDone()
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
throwCommonOrRuntimeExceptionIfPresent
public void throwCommonOrRuntimeExceptionIfPresent() throws CommonException
Throws aCommonException
or aRuntimeException
, if the state is "error". Normally returns otherwise.- Throws:
CommonException
-
getErrorMessage
@Nullable public @Nullable String getErrorMessage()
-
-