Class SynchronizationContext<F extends FocusType>
java.lang.Object
com.evolveum.midpoint.model.impl.sync.SynchronizationContext<F>
- Type Parameters:
F
- Type of the matching focus object
- All Implemented Interfaces:
SingleShadowInboundsProcessingContext<F>
,ResourceObjectProcessingContext
,DebugDumpable
- Direct Known Subclasses:
SynchronizationContext.Complete
public abstract class SynchronizationContext<F extends FocusType>
extends Object
implements SingleShadowInboundsProcessingContext<F>, ResourceObjectProcessingContext
Context of the synchronization operation. It is created in the early stages of
ResourceObjectShadowChangeDescription
progressing in SynchronizationServiceImpl
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
SynchronizationContext.Complete<F extends FocusType>
Synchronization context ready for the synchronization, i.e. it has type identification and synchronization policy present. -
Field Summary
Modifier and TypeFieldDescriptionprotected final @Nullable ResourceObjectDefinition
Definition of corresponding object (currently found by kind+intent).Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionSynchronizationContext
(@NotNull ResourceObjectShadowChangeDescription change, @NotNull ResourceObjectProcessingContextImpl processingContext, @Nullable ResourceObjectTypeIdentification typeIdentification, @Nullable ResourceObjectDefinition objectDefinition, @Nullable SynchronizationPolicy synchronizationPolicy, @Nullable ObjectSynchronizationDiscriminatorType sorterResult, @Nullable String tag) -
Method Summary
Modifier and TypeMethodDescription@NotNull VariablesMap
ReturnsVariablesMap
relevant for the current context.debugDump
(int indent) @Nullable String
Returns the archetype OID bound to the object type.Returns the channel relevant to the current operation.@NotNull ExecutionModeType
@NotNull InboundMappingContextSpecification
Background information for value provenance metadata for inbound mappings related to this shadow.@NotNull ResourceObjectDefinition
@NotNull ResourceType
@Nullable ObjectDelta<ShadowType>
@NotNull String
@NotNull ShadowType
@NotNull ShadowLikeValue
Returns shadowed resource object, or - at least - so-called "combined object" in the sense used in ResourceObjectClassifier FIXMENormally should be non-null, but we are not sure enough to mark as NotNull.@NotNull SynchronizationPolicy
@Nullable SystemConfigurationType
getTag()
@NotNull Task
getTask()
@Nullable ResourceObjectTypeIdentification
Returns the identification of the (determined) type definition - or null if the type is not known.abstract boolean
boolean
isDryRun()
boolean
boolean
boolean
boolean
void
setCorrelationContext
(CorrelationContext correlationContext) void
setShadowExistsInRepo
(boolean shadowExistsInRepo) static void
setSkipMaintenanceCheck
(boolean skipMaintenanceCheck) toString()
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
Methods inherited from interface com.evolveum.midpoint.model.impl.ResourceObjectProcessingContext
createDefaultVariablesMap, getShadowIfPresent, getShadowRequired
Methods inherited from interface com.evolveum.midpoint.model.impl.lens.projector.focus.inbounds.SingleShadowInboundsProcessingContext
getInboundDefinition, getPreFocusAsPcv, isBeforeCorrelation
-
Field Details
-
resourceObjectDefinition
Definition of corresponding object (currently found by kind+intent).
-
-
Constructor Details
-
SynchronizationContext
public SynchronizationContext(@NotNull @NotNull ResourceObjectShadowChangeDescription change, @NotNull @NotNull ResourceObjectProcessingContextImpl processingContext, @Nullable @Nullable ResourceObjectTypeIdentification typeIdentification, @Nullable @Nullable ResourceObjectDefinition objectDefinition, @Nullable @Nullable SynchronizationPolicy synchronizationPolicy, @Nullable @Nullable ObjectSynchronizationDiscriminatorType sorterResult, @Nullable @Nullable String tag)
-
-
Method Details
-
getMappingContextSpecification
Description copied from interface:SingleShadowInboundsProcessingContext
Background information for value provenance metadata for inbound mappings related to this shadow.- Specified by:
getMappingContextSpecification
in interfaceSingleShadowInboundsProcessingContext<F extends FocusType>
-
isProtected
public boolean isProtected() -
getTypeIdentification
Returns the identification of the (determined) type definition - or null if the type is not known. Note that it's not necessary to look at the shadow kind/intent if this method returns `null`, because this type is derived directly from the values in the shadow. It can be even more precise, because the shadow may be unclassified when this context is created. -
getCorrelationContext
-
setCorrelationContext
-
getObjectDefinitionRequired
Description copied from interface:SingleShadowInboundsProcessingContext
Relates toResourceObjectProcessingContext.getShadowLikeValue()
. See the docs forInboundSourceData.getShadowObjectDefinition()
.- Specified by:
getObjectDefinitionRequired
in interfaceSingleShadowInboundsProcessingContext<F extends FocusType>
-
getTag
-
createVariablesMap
Description copied from interface:ResourceObjectProcessingContext
ReturnsVariablesMap
relevant for the current context.- Specified by:
createVariablesMap
in interfaceResourceObjectProcessingContext
-
getSynchronizationPolicyRequired
-
getShadowLikeValue
Description copied from interface:ResourceObjectProcessingContext
Returns shadowed resource object, or - at least - so-called "combined object" in the sense used in ResourceObjectClassifier FIXME- Specified by:
getShadowLikeValue
in interfaceResourceObjectProcessingContext
-
getShadowOid
Normally should be non-null, but we are not sure enough to mark as NotNull. -
getResourceObjectDelta
- Specified by:
getResourceObjectDelta
in interfaceResourceObjectProcessingContext
-
getResource
- Specified by:
getResource
in interfaceResourceObjectProcessingContext
-
getResourceOid
-
getFocusClass
- Throws:
SchemaException
-
getArchetypeOid
Description copied from interface:SingleShadowInboundsProcessingContext
Returns the archetype OID bound to the object type. Archetypes determined from the focus itself are not returned here.- Specified by:
getArchetypeOid
in interfaceSingleShadowInboundsProcessingContext<F extends FocusType>
-
getPreFocus
- Specified by:
getPreFocus
in interfaceSingleShadowInboundsProcessingContext<F extends FocusType>
-
getLinkedOwner
-
getSituation
-
getSystemConfiguration
- Specified by:
getSystemConfiguration
in interfaceResourceObjectProcessingContext
-
getChannel
Description copied from interface:ResourceObjectProcessingContext
Returns the channel relevant to the current operation. It may be a channel fromResourceObjectShadowChangeDescription
or from a task.- Specified by:
getChannel
in interfaceResourceObjectProcessingContext
-
getExpressionProfile
-
getTask
- Specified by:
getTask
in interfaceResourceObjectProcessingContext
-
isShadowExistsInRepo
public boolean isShadowExistsInRepo() -
setShadowExistsInRepo
public void setShadowExistsInRepo(boolean shadowExistsInRepo) -
getItemProcessingIdentifier
-
toString
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
setSkipMaintenanceCheck
public static void setSkipMaintenanceCheck(boolean skipMaintenanceCheck) -
getExecutionMode
-
isDryRun
public boolean isDryRun() -
isFullMode
public boolean isFullMode() -
getChange
-
isComplete
public abstract boolean isComplete() -
isVisible
public boolean isVisible() -
getShadowedResourceObject
-