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
public class LensFocusContext<O extends ObjectType> extends LensElementContext<O>
- Author:
- semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.model.impl.lens.LensElementContext
objectCurrent, objectNew, objectOld, oid, primaryDelta, secondaryDelta
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description LensFocusContext(Class<O> objectTypeClass, LensContext<O> lensContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
adopt(PrismContext prismContext)
void
checkConsistence(String desc)
void
checkEncrypted()
void
cleanup()
Cleans up the contexts by removing some of the working state.LensFocusContext<O>
clone(LensContext lensContext)
String
debugDump(int indent)
String
debugDump(int indent, boolean showTriples)
String
dump(boolean showTriples)
void
forEachDelta(Consumer<ObjectDelta<O>> consumer)
ArchetypeType
getArchetype()
ArchetypePolicyType
getArchetypePolicyType()
protected String
getElementDefaultDesc()
String
getHumanReadableName()
@NotNull PathKeyedMap<ObjectTemplateItemDefinitionType>
getItemDefinitionsMap()
LifecycleStateModelType
getLifecycleModel()
@NotNull ObjectDeltaObject<O>
getObjectDeltaObjectAbsolute()
@NotNull ObjectDeltaObject<O>
getObjectDeltaObjectRelative()
Returns object-delta-object structure based on the current state.LinkTypeDefinitionType
getSourceLinkTypeDefinition(@NotNull String linkTypeName, LinkManager linkManager, OperationResult result)
ObjectDelta<O>
getSummaryDelta()
Returns object delta comprising both primary delta and (all) secondary deltas, merged together.ObjectDelta<O>
getSummarySecondaryDelta()
Returns all secondary deltas, merged together.LinkTypeDefinitionType
getTargetLinkTypeDefinition(@NotNull String linkTypeName, LinkManager linkManager, OperationResult result)
boolean
hasOrganizationalChange()
Returns true if there is any change in organization membership.boolean
isAdd()
boolean
isDelete()
boolean
isPrimaryDeltaConsolidated()
boolean
isPrimaryDeltaExecuted()
void
normalize()
void
resetDeltas(ObjectDelta<O> newSecondaryDelta)
void
setArchetype(ArchetypeType archetype)
void
setArchetypePolicyType(ArchetypePolicyType objectPolicyConfigurationType)
void
setItemDefinitionsMap(@NotNull PathKeyedMap<ObjectTemplateItemDefinitionType> itemDefinitionsMap)
void
setOid(String oid)
Sets oid to the field but also to the deltas (if applicable).void
setPrimaryDeltaConsolidated(boolean primaryDeltaConsolidated)
void
setPrimaryDeltaExecuted(boolean primaryDeltaExecuted)
void
swallowToWave0SecondaryDelta(ItemDelta<?,?> itemDelta)
Deprecated.String
toString()
-
Methods inherited from class com.evolveum.midpoint.model.impl.lens.LensElementContext
addPolicyRule, addPrimaryDelta, addToExecutedDeltas, addToPendingAssignmentPolicyStateModifications, addToPendingObjectPolicyStateModifications, checkConsistence, checkConsistence, checkConsistence, clearPendingAssignmentPolicyStateModifications, clearPendingObjectPolicyStateModifications, clearPolicyRules, cloneDelta, deltaBuilder, finishBuild, fixProvisioningTypeInDelta, forEachObject, getCredentialsPolicy, getCurrentDelta, getDebugDumpTitle, getDebugDumpTitle, getElementDesc, getExecutedDeltas, getIteration, getIterationToken, getLensContext, getObjectAny, getObjectCurrent, getObjectDefinition, getObjectNew, getObjectOld, getObjectReadVersion, getObjectTypeClass, getOid, getOperation, getPendingAssignmentPolicyStateModifications, getPendingObjectPolicyStateModifications, getPolicyRules, getPrimaryDelta, getPrismContext, getSecondaryDelta, getSecurityPolicy, getSynchronizationIntent, isFresh, isModify, isOfType, isRequireSecondaryDeltaOid, operationMatches, recompute, represents, retrieveFromLensElementContextType, rot, setFresh, setIteration, setIterationToken, setLoadedObject, setObjectCurrent, setObjectNew, setObjectOld, setPrimaryDelta, setSecondaryDelta, setSecurityPolicy, setSynchronizationIntent, swallowToPrimaryDelta, swallowToSecondaryDelta, swallowToSecondaryDelta, swallowToSecondaryDeltaUnchecked, triggerRule, wasAddExecuted, wasAnythingReallyExecuted
-
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
-
LensFocusContext
public LensFocusContext(Class<O> objectTypeClass, LensContext<O> lensContext)
-
-
Method Detail
-
getArchetypePolicyType
public ArchetypePolicyType getArchetypePolicyType()
-
setArchetypePolicyType
public void setArchetypePolicyType(ArchetypePolicyType objectPolicyConfigurationType)
-
getArchetype
public ArchetypeType getArchetype()
- Returns:
- Determined archetype of the object. Currently not supported for projections.
-
setArchetype
public void setArchetype(ArchetypeType archetype)
-
getLifecycleModel
public LifecycleStateModelType getLifecycleModel()
-
setOid
public void setOid(String oid)
Description copied from class:LensElementContext
Sets oid to the field but also to the deltas (if applicable).- Overrides:
setOid
in classLensElementContext<O extends ObjectType>
-
isDelete
public boolean isDelete()
- Returns:
- true if the object (focus or projection) is to be deleted
-
isAdd
public boolean isAdd()
- Returns:
- true if the object (focus or projection) is to be added
-
getSummaryDelta
public ObjectDelta<O> getSummaryDelta()
Description copied from interface:ModelElementContext
Returns object delta comprising both primary delta and (all) secondary deltas, merged together. The returned object is (kind of) immutable. Changing it may do strange things, but most likely the changes will be lost.
-
getSummarySecondaryDelta
public ObjectDelta<O> getSummarySecondaryDelta()
Description copied from interface:ModelElementContext
Returns all secondary deltas, merged together. The returned object is (kind of) immutable. Changing it may do strange things, but most likely the changes will be lost.
-
getObjectDeltaObjectRelative
@NotNull public @NotNull ObjectDeltaObject<O> getObjectDeltaObjectRelative()
Returns object-delta-object structure based on the current state. I.e. objectCurrent - currentDelta - objectNew.
-
getObjectDeltaObjectAbsolute
@NotNull public @NotNull ObjectDeltaObject<O> getObjectDeltaObjectAbsolute()
-
swallowToWave0SecondaryDelta
@Deprecated public void swallowToWave0SecondaryDelta(ItemDelta<?,?> itemDelta) throws SchemaException
Deprecated.- Throws:
SchemaException
-
cleanup
public void cleanup()
Description copied from class:LensElementContext
Cleans up the contexts by removing some of the working state.- Specified by:
cleanup
in classLensElementContext<O extends ObjectType>
-
resetDeltas
public void resetDeltas(ObjectDelta<O> newSecondaryDelta) throws SchemaException
- Throws:
SchemaException
-
hasOrganizationalChange
public boolean hasOrganizationalChange()
Returns true if there is any change in organization membership. I.e. in case that there is a change in parentOrgRef.
-
clone
public LensFocusContext<O> clone(LensContext lensContext)
- Specified by:
clone
in classLensElementContext<O extends ObjectType>
-
dump
public String dump(boolean showTriples)
-
debugDump
public String debugDump(int indent)
-
debugDump
public String debugDump(int indent, boolean showTriples)
-
getElementDefaultDesc
protected String getElementDefaultDesc()
- Specified by:
getElementDefaultDesc
in classLensElementContext<O extends ObjectType>
-
getHumanReadableName
public String getHumanReadableName()
- Specified by:
getHumanReadableName
in classLensElementContext<O extends ObjectType>
-
checkEncrypted
public void checkEncrypted()
- Overrides:
checkEncrypted
in classLensElementContext<O extends ObjectType>
-
checkConsistence
public void checkConsistence(String desc)
- Overrides:
checkConsistence
in classLensElementContext<O extends ObjectType>
-
setItemDefinitionsMap
public void setItemDefinitionsMap(@NotNull @NotNull PathKeyedMap<ObjectTemplateItemDefinitionType> itemDefinitionsMap)
-
getItemDefinitionsMap
@NotNull public @NotNull PathKeyedMap<ObjectTemplateItemDefinitionType> getItemDefinitionsMap()
-
forEachDelta
public void forEachDelta(Consumer<ObjectDelta<O>> consumer)
- Overrides:
forEachDelta
in classLensElementContext<O extends ObjectType>
-
getSourceLinkTypeDefinition
public LinkTypeDefinitionType getSourceLinkTypeDefinition(@NotNull @NotNull String linkTypeName, LinkManager linkManager, OperationResult result) throws SchemaException, ConfigurationException
-
getTargetLinkTypeDefinition
public LinkTypeDefinitionType getTargetLinkTypeDefinition(@NotNull @NotNull String linkTypeName, LinkManager linkManager, OperationResult result) throws SchemaException, ConfigurationException
-
isPrimaryDeltaConsolidated
public boolean isPrimaryDeltaConsolidated()
-
setPrimaryDeltaConsolidated
public void setPrimaryDeltaConsolidated(boolean primaryDeltaConsolidated)
-
normalize
public void normalize()
- Overrides:
normalize
in classLensElementContext<O extends ObjectType>
-
adopt
public void adopt(PrismContext prismContext) throws SchemaException
- Overrides:
adopt
in classLensElementContext<O extends ObjectType>
- Throws:
SchemaException
-
isPrimaryDeltaExecuted
public boolean isPrimaryDeltaExecuted()
-
setPrimaryDeltaExecuted
public void setPrimaryDeltaExecuted(boolean primaryDeltaExecuted)
-
-