Class LensFocusContext<O extends ObjectType>
java.lang.Object
com.evolveum.midpoint.model.impl.lens.LensElementContext<O>
com.evolveum.midpoint.model.impl.lens.LensFocusContext<O>
- All Implemented Interfaces:
- ModelElementContext<O>,- DebugDumpable,- Serializable,- Cloneable
- Author:
- semancik
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.evolveum.midpoint.model.impl.lens.LensElementContextLensElementContext.DeltaModifier<O extends Objectable>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanTrue if the focus object was deleted by our processing.Fields inherited from class com.evolveum.midpoint.model.impl.lens.LensElementContextlensContextFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckConsistence(String desc) voidcleanup()Cleans up the contexts by removing some of the working state.clone(LensContext<O> lensContext) debugDump(int indent) voidTODO is this method ever used?TODO is this method ever used?@NotNull AssignmentIdStoreprotected String@NotNull String@NotNull IdentityManagementConfiguration@NotNull IndexingConfiguration@NotNull PathKeyedMap<ObjectTemplateItemDefinitionType>@NotNull LensContext<O>@NotNull ObjectDeltaObject<O>@NotNull ObjectDeltaObject<O>Returns object-delta-object structure based on the current state.getSourceLinkTypeDefinition(@NotNull String linkTypeName, LinkManager linkManager, OperationResult result) The "object old" represents the state "before operation" for focus objects precisely.Precondition: context is "complete" i.e.Returns all secondary deltas, merged together.getTargetLinkTypeDefinition(@NotNull String linkTypeName, LinkManager linkManager, OperationResult result) booleanReturns true if there is any change in organization membership.booleanisAdd()Be cautious when using this method forLensProjectionContext.booleanisDelete()See also limitations forLensElementContext.isAdd().booleanbooleanbooleanDifferent fromisAdd()just to have a clear meaning.voidvoidsetArchetypes(List<ArchetypeType> archetypes) voidvoidsetExpandedFocusTemplate(ObjectTemplateType expandedFocusTemplate) voidsetFocusTemplate(ObjectTemplateType focusTemplate) voidsetItemDefinitionsMap(@NotNull PathKeyedMap<ObjectTemplateItemDefinitionType> itemDefinitionsMap) voidsetLoadedObject(@NotNull PrismObject<O> object) Sets current and possibly also old object.voidOnly for internal use!voidswallowToWave0SecondaryDelta(ItemDelta<?, ?> itemDelta) Deprecated.toString()Methods inherited from class com.evolveum.midpoint.model.impl.lens.LensElementContextaddToExecutedDeltas, addToPendingAssignmentPolicyStateModifications, addToPendingObjectPolicyStateModifications, addToPrimaryDelta, adopt, checkConsistence, checkEncrypted, clearCurrentObject, clearPendingPolicyStateModifications, deleteNonTransientComputationResults, forEachDelta, forEachObject, getAllConsideredEventMarksOids, getCredentialsPolicy, getCurrentDelta, getElementDesc, getExecutedDeltas, getItemChangeApplicationModeConfiguration, getIteration, getIterationToken, 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, isModify, isOfType, modifyPrimaryDelta, normalize, operationMatches, recompute, rememberElementState, replaceOldAndCurrentObject, represents, resolveTemporaryContainerIds, restoreElementState, rot, setCurrentObject, setCurrentObjectAndOid, setEstimatedOldValuesInPrimaryDelta, setFresh, setInitialObject, setIteration, setIterationToken, setObjectPolicyRules, setOid, setPolicyRuleCounter, setPrimaryDelta, setPrimaryDeltaAfterStart, setSecurityPolicy, setupLastChangeExecutionResult, simulateDeltaExecution, swallowToPrimaryDelta, swallowToSecondaryDelta, swallowToSecondaryDelta, swallowToSecondaryDeltaUnchecked, wasAddExecutedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.model.api.context.ModelElementContextgetObjectAny, getObjectAnyRequired, getObjectOldOrCurrent
- 
Field Details- 
deletedprotected boolean deletedTrue if the focus object was deleted by our processing. (Note we do not currently provide this kind of flag on the projection contexts, because of not being sure if deleted projection cannot be somehow "resurrected" during the processing. For focal objects nothing like this should happen.) Used to clarify context (re)loading for deleted focus situations. See MID-4856.
 
- 
- 
Constructor Details- 
LensFocusContext
 
- 
- 
Method Details- 
setLoadedObjectDescription 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 class- LensElementContext<O extends ObjectType>
 
- 
setRewriteOldObjectpublic void setRewriteOldObject()Only for internal use!
- 
getArchetypePolicy
- 
setArchetypePolicy
- 
getArchetypeDescription copied from interface:ModelElementContextTODO is this method ever used?- Returns:
- Determined archetype of the object. Currently not supported for projections. Since 4.4 structural archetype is returned
 
- 
getArchetypesDescription copied from interface:ModelElementContextTODO is this method ever used?- Returns:
- All archetypes (structural and auxiliary)
 
- 
setArchetypes
- 
getStructuralArchetypeRefPrecondition: context is "complete" i.e.archetypesare filled in.- Throws:
- SchemaException
 
- 
getFocusTemplate
- 
setFocusTemplate
- 
setExpandedFocusTemplate
- 
isFocusTemplateSetExplicitlypublic boolean isFocusTemplateSetExplicitly()
- 
getIdentityManagementConfiguration@NotNull public @NotNull IdentityManagementConfiguration getIdentityManagementConfiguration() throws ConfigurationException- Throws:
- ConfigurationException
 
- 
getIndexingConfiguration@NotNull public @NotNull IndexingConfiguration getIndexingConfiguration() throws ConfigurationException- Throws:
- ConfigurationException
 
- 
getLifecycleModel
- 
isDeletepublic boolean isDelete()Description copied from class:LensElementContextSee also limitations forLensElementContext.isAdd().- Specified by:
- isDeletein interface- ModelElementContext<O extends ObjectType>
- Specified by:
- isDeletein class- LensElementContext<O extends ObjectType>
 
- 
getSummarySecondaryDeltaDescription 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.
- 
isAddpublic 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 theLensProjectionContext.synchronizationPolicyDecisionat all. See MID-8608 and its fix. It is very unclear and should be clarified.- Specified by:
- isAddin interface- ModelElementContext<O extends ObjectType>
- Specified by:
- isAddin class- LensElementContext<O extends ObjectType>
 
- 
isPrimaryAddpublic boolean isPrimaryAdd()Different fromisAdd()just to have a clear meaning.
- 
isDeletedpublic boolean isDeleted()
- 
setDeletedpublic void setDeleted()
- 
getObjectDeltaObjectRelativeReturns object-delta-object structure based on the current state. I.e. objectCurrent - currentDelta - objectNew.
- 
getObjectDeltaObjectAbsolute
- 
swallowToWave0SecondaryDelta@Deprecated public void swallowToWave0SecondaryDelta(ItemDelta<?, ?> itemDelta) throws SchemaExceptionDeprecated.- Throws:
- SchemaException
 
- 
cleanuppublic void cleanup()Description copied from class:LensElementContextCleans up the contexts by removing some of the working state. TODO describe more precisely, see alsoLensElementContext.rot(),updateDeltasAfterExecution(), andLensContext.updateAfterExecution()- Specified by:
- cleanupin class- LensElementContext<O extends ObjectType>
 
- 
hasOrganizationalChangepublic boolean hasOrganizationalChange()Returns true if there is any change in organization membership. I.e. in case that there is a change in parentOrgRef.
- 
clone
- 
debugDump
- 
getElementDefaultDesc- Specified by:
- getElementDefaultDescin class- LensElementContext<O extends ObjectType>
 
- 
toString
- 
getHumanReadableName- Specified by:
- getHumanReadableNamein class- LensElementContext<O extends ObjectType>
 
- 
checkConsistence- Specified by:
- checkConsistencein class- LensElementContext<O extends ObjectType>
 
- 
setItemDefinitionsMappublic void setItemDefinitionsMap(@NotNull @NotNull PathKeyedMap<ObjectTemplateItemDefinitionType> itemDefinitionsMap) 
- 
getItemDefinitionsMap
- 
getSourceLinkTypeDefinitionpublic LinkTypeDefinitionType getSourceLinkTypeDefinition(@NotNull @NotNull String linkTypeName, LinkManager linkManager, OperationResult result) throws SchemaException, ConfigurationException 
- 
getTargetLinkTypeDefinitionpublic LinkTypeDefinitionType getTargetLinkTypeDefinition(@NotNull @NotNull String linkTypeName, LinkManager linkManager, OperationResult result) throws SchemaException, ConfigurationException 
- 
deleteEmptyPrimaryDeltapublic void deleteEmptyPrimaryDelta()
- 
getLensContext- Overrides:
- getLensContextin class- LensElementContext<O extends ObjectType>
 
- 
getStateBeforeSimulatedOperationThe "object old" represents the state "before operation" for focus objects precisely.- Specified by:
- getStateBeforeSimulatedOperationin class- LensElementContext<O extends ObjectType>
 
- 
getAssignmentIdStore
 
-