Class LensProjectionContext
java.lang.Object
com.evolveum.midpoint.model.impl.lens.LensElementContext<ShadowType>
com.evolveum.midpoint.model.impl.lens.LensProjectionContext
- All Implemented Interfaces:
ModelElementContext<ShadowType>,ModelProjectionContext,DebugDumpable,Serializable,Cloneable
public class LensProjectionContext
extends LensElementContext<ShadowType>
implements ModelProjectionContext
- Author:
- semancik
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.evolveum.midpoint.model.impl.lens.LensElementContext
LensElementContext.DeltaModifier<O extends Objectable> -
Field Summary
Fields inherited from class com.evolveum.midpoint.model.impl.lens.LensElementContext
lensContextFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAccountSyncDelta(ObjectDelta<ShadowType> delta) voidadopt(PrismContext prismContext) voidcheckConsistence(String contextDesc) voidcheckConsistence(String contextDesc, boolean fresh, boolean force) voidvoidcleanup()Cleans up the contexts by removing some of the working state.voidclone(LensContext<? extends ObjectType> lensContext) debugDump(int indent) debugDump(int indent, boolean showTriples) voiddetermineFullShadowFlag(ShadowType loadedShadow) Sets the full shadow flag, based on the situation (including the fetch result).findAttributeDefinition(QName attrName) voidforEachDelta(Consumer<ObjectDelta<ShadowType>> consumer) TODO is this method ever used?TODO is this method ever used?@NotNull AssignmentPolicyEnforcementType@Nullable StringReturns configured focus archetype OID corresponding to resource object type of this projection (if there is one).Dependencies returned are "almost complete": resource OID and kind are non-null.protected Stringprotected String<AH extends AssignmentHolderType>
DeltaSetTriple<EvaluatedAssignedResourceObjectConstructionImpl<AH>><AH extends AssignmentHolderType>
PlainResourceObjectConstruction<AH>Returns delta suitable for execution.@NotNull FocusIdentitySourceTypeReturns focus identity source information for data created from this projection.@NotNull String@NotNull ProjectionContextKeygetKey()getKind()Returns the projection contexts bound to this one via data dependency that are known (or supposed) to be modified.ReturnsObjectDeltaObjectto be used e.g.intgetOrder()@NotNull String@NotNull ResourceTypeMap<QName,DeltaSetTriple<ItemValueWithOrigin<PrismContainerValue<ShadowAssociationType>, PrismContainerDefinition<ShadowAssociationType>>>> Map<QName,DeltaSetTriple<ItemValueWithOrigin<PrismPropertyValue<QName>, PrismPropertyDefinition<QName>>>> Returns the (estimated) state before the simulated operation began.@Nullable ResourceObjectDefinitionReturns immutable definition.Returns all secondary deltas, merged together.Returns synchronization delta.Initial intent regarding the account.Decision regarding the account.getTag()intgetWave()booleanReturns true if there is any context that depends on us.booleanReturns true if full shadow is available, either loaded or in a create delta.booleanbooleanbooleanbooleanisActive()booleanisAdd()Be cautious when using this method forLensProjectionContext.booleanbooleanisBroken()booleanbooleanbooleanbooleanReturns true if the projection is "current" i.e.booleanAssumes the wave is computed.booleanisDefaultForKind(@NotNull ShadowKindType kind) Use with care!booleanisDelete()See also limitations forLensElementContext.isAdd().booleanisDependencyTarget(ResourceObjectTypeDependencyType dependency) Returns true if the `target` is a target of `dependency` configuration.booleanbooleanisExists()booleanbooleanisGone()booleanbooleanbooleanbooleanisInboundSyncDisabled(OperationResult result) booleanisLegal()booleanbooleanisLowerOrderOf(@NotNull LensProjectionContext other) Returns true if this context is a "lower order brother" of the specified one.booleanisMarkedReadOnly(OperationResult result) booleanisModify()TODO description See also limitations forLensElementContext.isAdd().booleanbooleanbooleanbooleanbooleanbooleanIs the resource or object class/type visible for the current task execution mode?booleanvoidmarkGone()booleanmatches(@NotNull ConstructionTargetKey targetKey) booleanmatches(@NotNull ConstructionType construction, @NotNull String resourceOid) Note that we do not consider the project as matching if it's not classified.booleanmatches(ProjectionContextKey otherKey, boolean compareOrder) TODO clarify this!!!voidvoidvoidreplaceOldAndCurrentObject(String oid, PrismObject<ShadowType> objectOld, PrismObject<ShadowType> objectCurrent) Replaces OID, old, and current object state.voidrot()voidTODOvoidsetActive(boolean isActive) voidsetAssigned(boolean isAssigned) voidsetAssignedOldIfUnknown(Boolean value) We want to set "assigned in old state" only once - in projection wave 0 where real "old" values are known.voidvoidsetCachedValueMetadata(ValueMetadataType cachedValueMetadata) voidsetCanProject(boolean canProject) voidsetCompleted(boolean completed) voidsetCurrentObject(@Nullable PrismObject<ShadowType> object) Updates the current object.voidsetCurrentObjectAndOid(@NotNull PrismObject<ShadowType> object) Used to update current object and also the OID.voidsetDoReconciliation(boolean doReconciliation) voidWe set reconciliation:=TRUE for volatile accounts.<AH extends AssignmentHolderType>
voidsetEvaluatedAssignedConstructionDeltaSetTriple(DeltaSetTriple<EvaluatedAssignedResourceObjectConstructionImpl<AH>> evaluatedAssignedConstructionDeltaSetTriple) voidsetEvaluatedPlainConstruction(PlainResourceObjectConstruction<?> evaluatedPlainConstruction) voidsetExists(boolean exists) voidsetFullShadow(boolean fullShadow) voidsetInitialObject(@NotNull PrismObject<ShadowType> object) Sets the value of an object that should be present on the clockwork start: both objectCurrent and objectOld.voidsetKey(@NotNull ProjectionContextKey key) voidvoidsetLegalOld(Boolean isLegalOld) voidsetLegalOldIfUnknown(Boolean value) We want to set "legal in old state" only once - in projection wave 0 where real "old" values are known.voidsetLoadedObject(@NotNull PrismObject<ShadowType> object) Sets current and possibly also old object.voidsetProjectionSecurityPolicy(SecurityPolicyType projectionSecurityPolicy) voidsetResource(ResourceType resource) voidsetShadowExistsInRepo(boolean shadowExistsInRepo) voidsetSqueezedAssociations(Map<QName, DeltaSetTriple<ItemValueWithOrigin<PrismContainerValue<ShadowAssociationType>, PrismContainerDefinition<ShadowAssociationType>>>> squeezedAssociations) voidsetSqueezedAttributes(Map<QName, DeltaSetTriple<ItemValueWithOrigin<PrismPropertyValue<?>, PrismPropertyDefinition<?>>>> squeezedAttributes) voidsetSqueezedAuxiliaryObjectClasses(Map<QName, DeltaSetTriple<ItemValueWithOrigin<PrismPropertyValue<QName>, PrismPropertyDefinition<QName>>>> squeezedAuxiliaryObjectClasses) voidsetSyncAbsoluteTrigger(boolean syncAbsoluteTrigger) voidsetSyncDelta(ObjectDelta<ShadowType> syncDelta) voidsetSynchronizationIntent(SynchronizationIntent synchronizationIntent) voidsetSynchronizationPolicyDecision(SynchronizationPolicyDecision policyDecision) voidsetSynchronizationSituationDetected(SynchronizationSituationType synchronizationSituationDetected) voidsetSynchronizationSituationResolved(SynchronizationSituationType synchronizationSituationResolved) voidsetSynchronizationSource(boolean synchronizationSource) voidsetWave(int wave) voidsetWaveIncomplete(boolean waveIncomplete) voidsimulateDeltaExecution(@NotNull ObjectDelta<ShadowType> delta) Updates the state to reflect that a delta was "executed" in simulation mode.Return a human readable name of the projection object suitable for logs.toString()Methods inherited from class com.evolveum.midpoint.model.impl.lens.LensElementContext
addToExecutedDeltas, addToPendingAssignmentPolicyStateModifications, addToPendingObjectPolicyStateModifications, addToPrimaryDelta, checkConsistence, clearCurrentObject, clearPendingPolicyStateModifications, deleteNonTransientComputationResults, forEachObject, getAllConsideredEventMarksOids, getCredentialsPolicy, getCurrentDelta, getExecutedDeltas, getItemChangeApplicationModeConfiguration, getIteration, getIterationToken, getLensContext, getMatchingEventMarksOids, getModelContext, getObjectCurrent, getObjectCurrentOrNew, getObjectCurrentOrOld, getObjectDefinition, getObjectNew, getObjectNewOrCurrentOrOld, getObjectNewOrCurrentRequired, getObjectNewRequired, getObjectOld, getObjectPolicyRules, getObjectReadVersion, getObjectTypeClass, getOid, getOperation, getPendingAssignmentPolicyStateModifications, getPendingObjectPolicyStateModifications, getPolicyRuleCounter, getPrimaryDelta, getSecondaryDelta, getSecurityPolicy, getSummaryDelta, getSummaryExecutedDelta, getTemporaryContainerId, initializeElementState, isFresh, isModifiedInCurrentDelta, isOfType, modifyPrimaryDelta, operationMatches, recompute, rememberElementState, represents, resolveTemporaryContainerIds, restoreElementState, setEstimatedOldValuesInPrimaryDelta, setFresh, setIteration, setIterationToken, setObjectPolicyRules, setOid, setPolicyRuleCounter, setPrimaryDelta, setPrimaryDeltaAfterStart, setSecurityPolicy, setupLastChangeExecutionResult, swallowToPrimaryDelta, swallowToSecondaryDelta, swallowToSecondaryDelta, swallowToSecondaryDeltaUnchecked, wasAddExecutedMethods 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.api.context.ModelElementContext
addToPrimaryDelta, getCurrentDelta, getExecutedDeltas, getMatchingEventMarksOids, getModelContext, getObjectAny, getObjectAnyRequired, getObjectCurrent, getObjectNew, getObjectNewOrCurrentOrOld, getObjectOld, getObjectOldOrCurrent, getObjectPolicyRules, getObjectTypeClass, getOid, getPrimaryDelta, getSecondaryDelta, getSummaryDelta, isOfType, setPrimaryDeltaMethods inherited from interface com.evolveum.midpoint.model.api.context.ModelProjectionContext
isTombstone
-
Method Details
-
isDependencyTarget
Returns true if the `target` is a target of `dependency` configuration. (Meaning that the source that contains `dependency` among its configured dependencies depends on `target`, i.e. the `dependency` configuration points to `target`.) Precondition: dependency is fully specified (resource, kind, intent are not null), seegetDependencies(). -
getSyncDelta
Description copied from interface:ModelProjectionContextReturns synchronization delta. Synchronization delta describes changes that have recently happened. MidPoint reacts to these changes by "pulling them in" (e.g. using them in inbound mappings).- Specified by:
getSyncDeltain interfaceModelProjectionContext
-
setSyncDelta
- Specified by:
setSyncDeltain interfaceModelProjectionContext
-
setLoadedObject
Description copied from class:LensElementContextSets current and possibly also old object. This method is used with freshly loaded object. The object is set as current object. If the old object should be initialized, then the object is also set as old object. Should be used only from the context loader!- Specified by:
setLoadedObjectin classLensElementContext<ShadowType>
-
setInitialObject
Description copied from class:LensElementContextSets the value of an object that should be present on the clockwork start: both objectCurrent and objectOld. Assumes that clockwork has not started yet.- Overrides:
setInitialObjectin classLensElementContext<ShadowType>
-
setCurrentObject
Description copied from class:LensElementContextUpdates the current object. Should be called only from the context loader.- Overrides:
setCurrentObjectin classLensElementContext<ShadowType>
-
setCurrentObjectAndOid
Description copied from class:LensElementContextUsed to update current object and also the OID. (In cases when the OID might have changed as well.) Should be called only from the context loader.- Overrides:
setCurrentObjectAndOidin classLensElementContext<ShadowType>
-
replaceOldAndCurrentObject
public void replaceOldAndCurrentObject(String oid, PrismObject<ShadowType> objectOld, PrismObject<ShadowType> objectCurrent) Description copied from class:LensElementContextReplaces OID, old, and current object state. Deltas (primary, secondary) are kept untouched. Currently used when doing some magic with resolving conflicts while iterating during the projection of projections. Very dangerous! Use at your own risk!- Overrides:
replaceOldAndCurrentObjectin classLensElementContext<ShadowType>
-
getObjectDeltaObject
public ObjectDeltaObject<ShadowType> getObjectDeltaObject() throws SchemaException, ConfigurationExceptionReturnsObjectDeltaObjectto be used e.g. expression evaluation regarding this projection. We useElementState.getRelativeObjectDeltaObject(), although the "absolute" version should provide more or less the same results. Projections are not updated iteratively, unlike the focus. -
getSummarySecondaryDelta
Description copied from interface:ModelElementContextReturns all secondary deltas, merged together. (Can take some time to compute. So use with care.) The returned object is (kind of) immutable. Changing it may do strange things, but most likely the changes will be lost.- Specified by:
getSummarySecondaryDeltain interfaceModelElementContext<ShadowType>
-
setSyncAbsoluteTrigger
public void setSyncAbsoluteTrigger(boolean syncAbsoluteTrigger) -
getWave
public int getWave() -
setWave
public void setWave(int wave) -
isWaveIncomplete
public boolean isWaveIncomplete() -
setWaveIncomplete
public void setWaveIncomplete(boolean waveIncomplete) -
isDoReconciliation
public boolean isDoReconciliation() -
setDoReconciliation
public void setDoReconciliation(boolean doReconciliation) -
getKey
- Specified by:
getKeyin interfaceModelProjectionContext
-
markGone
public void markGone() -
setKey
-
matches
-
matches
public boolean matches(@NotNull @NotNull ConstructionType construction, @NotNull @NotNull String resourceOid) Note that we do not consider the project as matching if it's not classified. The reason is that constructions are targeted to specific kind/intent. There is a chance that this particular context points to a shadow that (if properly classified) would match this, but let's ignore this. -
isLowerOrderOf
Returns true if this context is a "lower order brother" of the specified one. -
matches
TODO clarify this!!! -
isGone
public boolean isGone()- Specified by:
isGonein interfaceModelProjectionContext
-
isGoneOrReaping
public boolean isGoneOrReaping() -
isReaping
public boolean isReaping() -
addAccountSyncDelta
- Throws:
SchemaException
-
isAdd
public boolean isAdd()Description copied from class:LensElementContextBe cautious when using this method forLensProjectionContext. The projection may be called into existence because a construction is assigned - i.e., no primary delta exists in this case. But the policy decision can also be null: untilActivationProcessor.processProjectionsActivation(LensContext, String, XMLGregorianCalendar, Task, OperationResult)is started - e.g. during the whole focus projection! See also MID-8569. Other problems: If there's no focus, then we don't compute thesynchronizationPolicyDecisionat all. See MID-8608 and its fix. It is very unclear and should be clarified.- Specified by:
isAddin interfaceModelElementContext<ShadowType>- Specified by:
isAddin classLensElementContext<ShadowType>
-
isModify
public boolean isModify()Description copied from class:LensElementContextTODO description See also limitations forLensElementContext.isAdd().- Overrides:
isModifyin classLensElementContext<ShadowType>
-
isDelete
public boolean isDelete()Description copied from class:LensElementContextSee also limitations forLensElementContext.isAdd().- Specified by:
isDeletein interfaceModelElementContext<ShadowType>- Specified by:
isDeletein classLensElementContext<ShadowType>
-
getArchetype
Description copied from interface:ModelElementContextTODO is this method ever used?- Specified by:
getArchetypein interfaceModelElementContext<ShadowType>- Returns:
- Determined archetype of the object. Currently not supported for projections. Since 4.4 structural archetype is returned
-
getArchetypes
Description copied from interface:ModelElementContextTODO is this method ever used?- Specified by:
getArchetypesin interfaceModelElementContext<ShadowType>- Returns:
- All archetypes (structural and auxiliary)
-
getResource
- Specified by:
getResourcein interfaceModelProjectionContext
-
getResourceRequired
-
setResource
-
getEntitlementMap
-
isAssigned
-
setAssigned
public void setAssigned(boolean isAssigned) -
isAssignedOld
-
setAssignedOldIfUnknown
We want to set "assigned in old state" only once - in projection wave 0 where real "old" values are known. TODO: what should we do with projections that appear later? -
isActive
public boolean isActive() -
setActive
public void setActive(boolean isActive) -
isLegal
- Specified by:
isLegalin interfaceModelProjectionContext
-
setLegal
-
isLegalOld
-
setLegalOld
-
setLegalOldIfUnknown
We want to set "legal in old state" only once - in projection wave 0 where real "old" values are known. TODO: what should we do with projections that appear later? -
isExists
public boolean isExists()- Specified by:
isExistsin interfaceModelProjectionContext
-
setExists
public void setExists(boolean exists) -
isShadowExistsInRepo
public boolean isShadowExistsInRepo() -
setShadowExistsInRepo
public void setShadowExistsInRepo(boolean shadowExistsInRepo) -
getSynchronizationIntent
Description copied from interface:ModelProjectionContextInitial intent regarding the account. It indicates what the initiator of the operation _wants to do_ with the context. If set to null then the decision is left to "the engine". Null is also a typical value when the context is created. It may be pre-set under some circumstances, e.g. if an account is being unlinked.- Specified by:
getSynchronizationIntentin interfaceModelProjectionContext
-
setSynchronizationIntent
-
getSynchronizationPolicyDecision
Description copied from interface:ModelProjectionContextDecision regarding the account. It describes the overall situation of the account e.g. whether account is added, is to be deleted, unliked, etc. If set to null no decision was made yet. Null is also a typical value when the context is created.- Specified by:
getSynchronizationPolicyDecisionin interfaceModelProjectionContext- See Also:
-
setSynchronizationPolicyDecision
-
setBroken
public void setBroken() -
getSynchronizationSituationDetected
-
setSynchronizationSituationDetected
public void setSynchronizationSituationDetected(SynchronizationSituationType synchronizationSituationDetected) -
getSynchronizationSituationResolved
-
setSynchronizationSituationResolved
public void setSynchronizationSituationResolved(SynchronizationSituationType synchronizationSituationResolved) -
isFullShadow
public boolean isFullShadow()- Specified by:
isFullShadowin interfaceModelProjectionContext
-
hasFullShadow
public boolean hasFullShadow()Returns true if full shadow is available, either loaded or in a create delta. -
setFullShadow
public void setFullShadow(boolean fullShadow) -
getKind
-
getEvaluatedAssignedConstructionDeltaSetTriple
public <AH extends AssignmentHolderType> DeltaSetTriple<EvaluatedAssignedResourceObjectConstructionImpl<AH>> getEvaluatedAssignedConstructionDeltaSetTriple() -
setEvaluatedAssignedConstructionDeltaSetTriple
public <AH extends AssignmentHolderType> void setEvaluatedAssignedConstructionDeltaSetTriple(DeltaSetTriple<EvaluatedAssignedResourceObjectConstructionImpl<AH>> evaluatedAssignedConstructionDeltaSetTriple) -
getEvaluatedPlainConstruction
public <AH extends AssignmentHolderType> PlainResourceObjectConstruction<AH> getEvaluatedPlainConstruction() -
setEvaluatedPlainConstruction
public void setEvaluatedPlainConstruction(PlainResourceObjectConstruction<?> evaluatedPlainConstruction) -
getSqueezedAttributes
public Map<QName,DeltaSetTriple<ItemValueWithOrigin<PrismPropertyValue<?>, getSqueezedAttributes()PrismPropertyDefinition<?>>>> -
setSqueezedAttributes
public void setSqueezedAttributes(Map<QName, DeltaSetTriple<ItemValueWithOrigin<PrismPropertyValue<?>, PrismPropertyDefinition<?>>>> squeezedAttributes) -
getSqueezedAssociations
public Map<QName,DeltaSetTriple<ItemValueWithOrigin<PrismContainerValue<ShadowAssociationType>, getSqueezedAssociations()PrismContainerDefinition<ShadowAssociationType>>>> -
setSqueezedAssociations
public void setSqueezedAssociations(Map<QName, DeltaSetTriple<ItemValueWithOrigin<PrismContainerValue<ShadowAssociationType>, PrismContainerDefinition<ShadowAssociationType>>>> squeezedAssociations) -
getSqueezedAuxiliaryObjectClasses
public Map<QName,DeltaSetTriple<ItemValueWithOrigin<PrismPropertyValue<QName>, getSqueezedAuxiliaryObjectClasses()PrismPropertyDefinition<QName>>>> -
setSqueezedAuxiliaryObjectClasses
public void setSqueezedAuxiliaryObjectClasses(Map<QName, DeltaSetTriple<ItemValueWithOrigin<PrismPropertyValue<QName>, PrismPropertyDefinition<QName>>>> squeezedAuxiliaryObjectClasses) -
getStructuralDefinitionIfNotBroken
public ResourceObjectDefinition getStructuralDefinitionIfNotBroken() throws SchemaException, ConfigurationException -
getResourceSchema
-
getStructuralObjectDefinition
@Nullable public @Nullable ResourceObjectDefinition getStructuralObjectDefinition() throws SchemaException, ConfigurationExceptionReturns immutable definition. -
getAuxiliaryObjectClassDefinitions
public Collection<ResourceObjectDefinition> getAuxiliaryObjectClassDefinitions() throws SchemaException, ConfigurationException -
refreshAuxiliaryObjectClassDefinitions
-
getCompositeObjectDefinition
public CompositeObjectDefinition getCompositeObjectDefinition() throws SchemaException, ConfigurationException- Specified by:
getCompositeObjectDefinitionin interfaceModelProjectionContext- Throws:
SchemaExceptionConfigurationException
-
findAttributeDefinition
public ResourceAttributeDefinition<?> findAttributeDefinition(QName attrName) throws SchemaException, ConfigurationException -
getDependencies
public Collection<ResourceObjectTypeDependencyType> getDependencies() throws SchemaException, ConfigurationExceptionDescription copied from interface:ModelProjectionContextDependencies returned are "almost complete": resource OID and kind are non-null. Intent may be null; in that case, the default value has to be used. TODO decide what to return if the dependency configuration cannot be obtained; currently it's an empty list- Specified by:
getDependenciesin interfaceModelProjectionContext- Throws:
SchemaExceptionConfigurationException
-
getProjectionSecurityPolicy
-
setProjectionSecurityPolicy
-
setCanProject
public void setCanProject(boolean canProject) -
isCanProject
public boolean isCanProject() -
getAssignmentPolicyEnforcementMode
@NotNull public @NotNull AssignmentPolicyEnforcementType getAssignmentPolicyEnforcementMode() throws SchemaException, ConfigurationException -
isLegalize
-
clearIntermediateResults
public void clearIntermediateResults() -
getExecutableDelta
Description copied from interface:ModelProjectionContextReturns delta suitable for execution. The primary and secondary deltas may not make complete sense all by themselves. E.g. they may both be MODIFY deltas even in case that the account should be created. The deltas begin to make sense only if combined with sync decision. This method provides the deltas all combined and ready for execution.- Specified by:
getExecutableDeltain interfaceModelProjectionContext- Throws:
SchemaExceptionConfigurationException
-
checkConsistence
- Specified by:
checkConsistencein classLensElementContext<ShadowType>
-
checkConsistence
-
cleanup
public void cleanup()Description copied from class:LensElementContextCleans up the contexts by removing some of the working state. TODO describe more precisely, see alsoLensElementContext.rot(),LensFocusContext.updateDeltasAfterExecution(), andLensContext.updateAfterExecution()- Specified by:
cleanupin classLensElementContext<ShadowType>
-
normalize
public void normalize()- Overrides:
normalizein classLensElementContext<ShadowType>
-
adopt
- Overrides:
adoptin classLensElementContext<ShadowType>- Throws:
SchemaException
-
clone
-
checkEncrypted
public void checkEncrypted()- Overrides:
checkEncryptedin classLensElementContext<ShadowType>
-
getHumanReadableName
- Specified by:
getHumanReadableNamein classLensElementContext<ShadowType>
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
debugDump
-
getCurrentShadowState
-
getElementDefaultDesc
- Specified by:
getElementDefaultDescin classLensElementContext<ShadowType>
-
toString
-
toHumanReadableString
Return a human readable name of the projection object suitable for logs. -
getHumanReadableKind
-
getElementDesc
- Overrides:
getElementDescin classLensElementContext<ShadowType>
-
determineFullShadowFlag
Sets the full shadow flag, based on the situation (including the fetch result). -
isToBeArchived
public boolean isToBeArchived() -
getResourceOid
-
getResourceOidRequired
-
forEachDelta
- Overrides:
forEachDeltain classLensElementContext<ShadowType>
-
getResourceName
-
setSynchronizationSource
public void setSynchronizationSource(boolean synchronizationSource) -
isSynchronizationSource
public boolean isSynchronizationSource() -
getDescription
-
isCurrentForProjection
Returns true if the projection is "current" i.e. it was not completed and its wave is either not yet determined or equal to the current projection wave. -
hasProjectionWave
public boolean hasProjectionWave() -
isCurrentProjectionWave
public boolean isCurrentProjectionWave()Assumes the wave is computed. -
isCompleted
public boolean isCompleted() -
setCompleted
public void setCompleted(boolean completed) -
rot
public void rot()- Overrides:
rotin classLensElementContext<ShadowType>
-
getCachedValueMetadata
-
setCachedValueMetadata
-
isHigherOrder
public boolean isHigherOrder() -
isBroken
public boolean isBroken() -
isIgnored
public boolean isIgnored() -
setDoReconciliationFlagIfVolatile
We set reconciliation:=TRUE for volatile accounts. This is to ensure that the changes on such resources will be read back to midPoint. (It is a bit of hack but it looks OK.) See also MID-2436 - volatile objects. -
rotWithDeltaDeletion
public void rotWithDeltaDeletion()TODO -
hasDependentContext
Returns true if there is any context that depends on us. (Note that "dependency source" means the context that depends on the "dependency target". We are the target here.) -
isClassified
public boolean isClassified() -
getOrder
public int getOrder() -
getTag
-
isDefaultForKind
Use with care! -
getConfiguredFocusArchetypeOid
@Nullable public @Nullable String getConfiguredFocusArchetypeOid() throws SchemaException, ConfigurationExceptionReturns configured focus archetype OID corresponding to resource object type of this projection (if there is one). -
getFocusIdentitySource
Returns focus identity source information for data created from this projection. -
isInMaintenance
public boolean isInMaintenance() -
isVisible
Is the resource or object class/type visible for the current task execution mode? -
hasResourceAndIsVisible
-
hasResource
public boolean hasResource() -
isAdministrativeStatusSupported
-
getStateBeforeSimulatedOperation
Returns the (estimated) state before the simulated operation began. Ideally, we would like to return "old object", just as we do inLensFocusContext.getStateBeforeSimulatedOperation(). Unfortunately, the "old object" usually contains only the repo shadow, not the state from the resource (called full shadow). The reason is that when the full shadow is is loaded during processing, it is put into "current", not into "old" object. Hence it's best to take "current object" for projections. Unfortunately, this object is changed when the simulated operation is executed. Therefore, we store its copy before we apply the operation. TODO: Maybe we should get rid of all this hackery, and explicitly remember the first full shadow loaded. But it is not trivial to do so: there are many places where full shadow is (tried to be) loaded. And it is not always clear if we get the full shadow or not. So it is doable, but definitely not simple.- Specified by:
getStateBeforeSimulatedOperationin classLensElementContext<ShadowType>
-
simulateDeltaExecution
public void simulateDeltaExecution(@NotNull @NotNull ObjectDelta<ShadowType> delta) throws SchemaException Description copied from class:LensElementContextUpdates the state to reflect that a delta was "executed" in simulation mode.- Overrides:
simulateDeltaExecutionin classLensElementContext<ShadowType>- Throws:
SchemaException
-
isMarkedReadOnly
-
isInboundSyncDisabled
-
isOutboundSyncDisabled
-
getModifiedDataBoundDependees
public List<LensProjectionContext> getModifiedDataBoundDependees() throws SchemaException, ConfigurationExceptionReturns the projection contexts bound to this one via data dependency that are known (or supposed) to be modified.
-