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:
DebugDumpable
public class SynchronizationContext<F extends FocusType> extends Object implements DebugDumpable
Context of the synchronization operation. It is created in the early stages ofResourceObjectShadowChangeDescription
progressing inSynchronizationServiceImpl
.
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description SynchronizationContext(@NotNull PrismObject<ShadowType> shadowedResourceObject, ObjectDelta<ShadowType> resourceObjectDelta, @NotNull PrismObject<ResourceType> resource, String channel, ModelBeans beans, Task task, String itemProcessingIdentifier)
-
Method Summary
-
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
-
-
-
-
Constructor Detail
-
SynchronizationContext
public SynchronizationContext(@NotNull @NotNull PrismObject<ShadowType> shadowedResourceObject, ObjectDelta<ShadowType> resourceObjectDelta, @NotNull @NotNull PrismObject<ResourceType> resource, String channel, ModelBeans beans, Task task, String itemProcessingIdentifier)
-
-
Method Detail
-
isSynchronizationEnabled
public boolean isSynchronizationEnabled()
-
isProtected
public boolean isProtected()
-
getKind
public ShadowKindType getKind()
-
getIntent
public String getIntent() throws SchemaException
- Throws:
SchemaException
-
getCorrelationContext
public CorrelationContext getCorrelationContext()
-
setCorrelationContext
public void setCorrelationContext(CorrelationContext correlationContext)
-
getObjectTypeDefinition
@NotNull public @NotNull ResourceObjectTypeDefinition getObjectTypeDefinition() throws SchemaException, ConfigurationException
-
getTag
public String getTag()
-
setTag
public void setTag(String tag)
-
getCorrelation
public List<ConditionalSearchFilterType> getCorrelation()
-
getConfirmation
public ExpressionType getConfirmation()
-
getCorrelators
@NotNull public @NotNull CompositeCorrelatorType getCorrelators()
-
getObjectTemplateRef
public ObjectReferenceType getObjectTemplateRef()
-
getReaction
public SynchronizationReactionType getReaction(OperationResult result) throws ConfigurationException, SchemaException, ObjectNotFoundException, CommunicationException, SecurityViolationException, ExpressionEvaluationException
-
hasApplicablePolicy
public boolean hasApplicablePolicy()
-
getPolicyName
public String getPolicyName()
-
isDoReconciliation
public Boolean isDoReconciliation()
-
getExecuteOptions
public ModelExecuteOptionsType getExecuteOptions()
-
isLimitPropagation
public Boolean isLimitPropagation()
-
getShadowedResourceObject
@NotNull public @NotNull PrismObject<ShadowType> getShadowedResourceObject()
-
getResourceObjectDelta
@Nullable public @Nullable ObjectDelta<ShadowType> getResourceObjectDelta()
-
getResource
@NotNull public @NotNull PrismObject<ResourceType> getResource()
-
getFocusClass
@NotNull public @NotNull Class<F> getFocusClass() throws SchemaException
- Throws:
SchemaException
-
getPreFocus
@NotNull public F getPreFocus() throws SchemaException
- Throws:
SchemaException
-
getPreFocusAsPrismObject
@NotNull public @NotNull PrismObject<F> getPreFocusAsPrismObject() throws SchemaException
- Throws:
SchemaException
-
getLinkedOwner
public F getLinkedOwner()
-
getCorrelatedOwner
public F getCorrelatedOwner()
-
getPrismContext
public PrismContext getPrismContext()
-
getSituation
public SynchronizationSituationType getSituation()
-
setObjectSynchronization
public void setObjectSynchronization(ObjectSynchronizationType objectSynchronization)
-
setLinkedOwner
public void setLinkedOwner(F owner)
-
setCorrelatedOwner
public void setCorrelatedOwner(F correlatedFocus)
-
setSituation
public void setSituation(SynchronizationSituationType situation)
-
getSystemConfiguration
public PrismObject<SystemConfigurationType> getSystemConfiguration()
-
getChannel
public String getChannel()
-
setSystemConfiguration
public void setSystemConfiguration(PrismObject<SystemConfigurationType> systemConfiguration)
-
getExpressionProfile
public ExpressionProfile getExpressionProfile()
-
setExpressionProfile
public void setExpressionProfile(ExpressionProfile expressionProfile)
-
setReaction
public void setReaction(SynchronizationReactionType reaction)
-
getTask
public Task getTask()
-
isForceIntentChange
public boolean isForceIntentChange()
-
setForceIntentChange
public void setForceIntentChange(boolean forceIntentChange)
-
getItemProcessingIdentifier
public String getItemProcessingIdentifier()
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
setSkipMaintenanceCheck
public static void setSkipMaintenanceCheck(boolean skipMaintenanceCheck)
-
isCorrelatorsUpdateRequested
public boolean isCorrelatorsUpdateRequested()
Should we update correlators' state? (With or without re-correlation, at least for the time being.) Currently a temporary implementation based on checking id-match related flag in task extension.
-
getSystemConfigurationBean
public SystemConfigurationType getSystemConfigurationBean()
-
-