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:
PreInboundsContext<F>,ResourceObjectProcessingContext,DebugDumpable
- Direct Known Subclasses:
SynchronizationContext.Complete
public abstract class SynchronizationContext<F extends FocusType>
extends Object
implements PreInboundsContext<F>, ResourceObjectProcessingContext
Context of the synchronization operation. It is created in the early stages of
ResourceObjectShadowChangeDescription
progressing in SynchronizationServiceImpl.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSynchronizationContext.Complete<F extends FocusType>Synchronization context ready for the synchronization, i.e. -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Constructor Summary
ConstructorsConstructorDescriptionSynchronizationContext(@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 VariablesMapReturnsVariablesMaprelevant for the current context.debugDump(int indent) @Nullable StringReturns the archetype OID bound to the object type.@NotNull ModelBeansgetBeans()Useful Spring beans.Returns the channel relevant to the current operation.@NotNull ExecutionModeType@NotNull ResourceObjectDefinition@NotNull PrismObject<F>@NotNull ResourceType@Nullable ObjectDelta<ShadowType>@NotNull String@NotNull ShadowTypeReturns 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 SystemConfigurationTypegetTag()@NotNull TaskgetTask()@Nullable ResourceObjectTypeIdentificationReturns the identification of the (determined) type definition - or null if the type is not known.abstract booleanbooleanisDryRun()booleanbooleanbooleanbooleanvoidsetCorrelationContext(CorrelationContext correlationContext) voidsetShadowExistsInRepo(boolean shadowExistsInRepo) static voidsetSkipMaintenanceCheck(boolean skipMaintenanceCheck) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.model.impl.ResourceObjectProcessingContext
createDefaultVariablesMap
-
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
-
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
- Specified by:
getObjectDefinitionRequiredin interfacePreInboundsContext<F extends FocusType>
-
getTag
-
createVariablesMap
Description copied from interface:ResourceObjectProcessingContextReturnsVariablesMaprelevant for the current context.- Specified by:
createVariablesMapin interfaceResourceObjectProcessingContext
-
getSynchronizationPolicyRequired
-
getShadowedResourceObject
Description copied from interface:ResourceObjectProcessingContextReturns shadowed resource object, or - at least - so-called "combined object" in the sense used in ResourceObjectClassifier FIXME- Specified by:
getShadowedResourceObjectin interfaceResourceObjectProcessingContext
-
getShadowOid
Normally should be non-null, but we are not sure enough to mark as NotNull. -
getResourceObjectDelta
- Specified by:
getResourceObjectDeltain interfacePreInboundsContext<F extends FocusType>- Specified by:
getResourceObjectDeltain interfaceResourceObjectProcessingContext
-
getResource
- Specified by:
getResourcein interfaceResourceObjectProcessingContext
-
getResourceOid
-
getFocusClass
- Throws:
SchemaException
-
getArchetypeOid
Description copied from interface:PreInboundsContextReturns the archetype OID bound to the object type. Archetypes determined from the focus itself are not returned here.- Specified by:
getArchetypeOidin interfacePreInboundsContext<F extends FocusType>
-
getPreFocus
- Specified by:
getPreFocusin interfacePreInboundsContext<F extends FocusType>
-
getPreFocusAsPrismObject
- Specified by:
getPreFocusAsPrismObjectin interfacePreInboundsContext<F extends FocusType>
-
getLinkedOwner
-
getSituation
-
getSystemConfiguration
- Specified by:
getSystemConfigurationin interfaceResourceObjectProcessingContext
-
getChannel
Description copied from interface:ResourceObjectProcessingContextReturns the channel relevant to the current operation. It may be a channel fromResourceObjectShadowChangeDescriptionor from a task.- Specified by:
getChannelin interfaceResourceObjectProcessingContext
-
getExpressionProfile
-
getTask
- Specified by:
getTaskin interfaceResourceObjectProcessingContext
-
isShadowExistsInRepo
public boolean isShadowExistsInRepo() -
setShadowExistsInRepo
public void setShadowExistsInRepo(boolean shadowExistsInRepo) -
getItemProcessingIdentifier
-
toString
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
setSkipMaintenanceCheck
public static void setSkipMaintenanceCheck(boolean skipMaintenanceCheck) -
getBeans
Description copied from interface:ResourceObjectProcessingContextUseful Spring beans.- Specified by:
getBeansin interfaceResourceObjectProcessingContext
-
getExecutionMode
-
isDryRun
public boolean isDryRun() -
isFullMode
public boolean isFullMode() -
getChange
-
isComplete
public abstract boolean isComplete() -
isVisible
public boolean isVisible()
-