Class CorrelationContext
java.lang.Object
com.evolveum.midpoint.model.api.correlation.CorrelationContext
- All Implemented Interfaces:
DebugDumpable,Cloneable
- Direct Known Subclasses:
CorrelationContext.AssociationValue,CorrelationContext.Focus,CorrelationContext.Shadow
The context of the correlation and correlator state update operations.
(Both work on an object being synchronized. The use in the latter case is experimental, though.)
Created by _the caller_ of
Correlator.correlate(CorrelationContext, OperationResult) method, but then updated
by the method implementation(s) themselves.
Not to be confused with CorrelatorContext which describes the context of the whole Correlator lifespan.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContext for correlating an association value to a set of matching focus assignments.static classContext for correlating a focus to a set of matching focuses.static classContext for correlating a shadow to a set of matching focuses. -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Constructor Summary
ConstructorsConstructorDescriptionCorrelationContext(@NotNull Containerable preFocus, @Nullable Collection<? extends Containerable> candidatePool, @Nullable SystemConfigurationType systemConfiguration, @NotNull com.evolveum.midpoint.task.api.Task task) -
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull CorrelationContext.Shadowclone()A simple shallow clone.debugDump(int indent) abstract @Nullable StringReturns the archetype for focus objects that the candidate(s) must possess.Returns candidate owners provided by previous correlator(s), if any.@Nullable Collection<? extends Containerable>@NotNull Class<? extends Containerable>@NotNull Class<? extends ObjectType>@NotNull FocusType@NotNull Containerableabstract @NotNull ContainerableReturns the object (e.g. shadow or focus or its part) that is being correlated.@Nullable SystemConfigurationType@NotNull com.evolveum.midpoint.task.api.TaskgetTask()voidsetCorrelatorState(AbstractCorrelatorStateType correlatorState) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
CorrelationContext
public CorrelationContext(@NotNull @NotNull Containerable preFocus, @Nullable @Nullable Collection<? extends Containerable> candidatePool, @Nullable @Nullable SystemConfigurationType systemConfiguration, @NotNull @NotNull com.evolveum.midpoint.task.api.Task task)
-
-
Method Details
-
getPreFocus
-
getPreFocusContainerable
-
getFocusType
-
getFocusContainerableType
-
getCandidatePool
-
getArchetypeOid
Returns the archetype for focus objects that the candidate(s) must possess. Null means "no restrictions". -
getCandidateOids
Returns candidate owners provided by previous correlator(s), if any. Background: If more child correlators are defined to be used, they will run separately (at least under the default implementation of the composite correlator), one after another. The original implementation executed each of the correlators independently, so that (typically) each of them issued its own query over all population of focus objects. The results were then combined by the composite correlator. However, there might be situations where subsequent correlators should just _refine_ the results returned by previous one(s). For that, we want to retain the relevant candidate owner(s) OID(s) in the context, and use that to limit search within those correlators. Empty set means "no previous candidates available", i.e. no restrictions will be applied. LIMITED USE. Currently used only "identification recovery" feature - forCorrelationContext.Focuscontext and `items` correlator. -
getSystemConfiguration
-
getCorrelatorState
-
setCorrelatorState
-
getTask
@NotNull public @NotNull com.evolveum.midpoint.task.api.Task getTask() -
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
asShadowCtx
-
clone
A simple shallow clone. Use with care.
-