public abstract class LensElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> extends Object implements ModelElementContext<O>
INDENT_STRING
Constructor and Description |
---|
LensElementContext(Class<O> objectTypeClass,
LensContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> lensContext) |
Modifier and Type | Method and Description |
---|---|
void |
addPrimaryDelta(ObjectDelta<O> delta) |
void |
addToExecutedDeltas(LensObjectDeltaOperation<O> executedDelta) |
void |
adopt(PrismContext prismContext) |
boolean |
canRepresent(Class type) |
void |
checkConsistence() |
protected void |
checkConsistence(ObjectDelta<O> delta,
boolean requireOid,
String contextDesc) |
protected void |
checkConsistence(PrismObject<O> object,
String elementDesc,
String contextDesc) |
void |
checkConsistence(String contextDesc) |
void |
checkEncrypted() |
abstract void |
cleanup()
Cleans up the contexts by removing some of the working state.
|
abstract LensElementContext<O> |
clone(LensContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> lensContext) |
protected ObjectDelta<O> |
cloneDelta(ObjectDelta<O> thisDelta) |
protected void |
copyValues(LensElementContext<O> clone,
LensContext lensContext) |
String |
determineOid() |
protected void |
fixProvisioningTypeInDelta(ObjectDelta<O> delta,
Objectable object,
OperationResult result) |
protected String |
getDebugDumpTitle() |
protected String |
getDebugDumpTitle(String suffix) |
ObjectDelta<O> |
getDelta()
Returns user delta, both primary and secondary (merged together).
|
protected abstract String |
getElementDefaultDesc() |
protected String |
getElementDesc() |
List<LensObjectDeltaOperation<O>> |
getExecutedDeltas() |
ObjectDelta<O> |
getFixedDelta() |
ObjectDelta<O> |
getFixedPrimaryDelta()
As getPrimaryDelta() but caters for the possibility that an object already exists.
|
abstract String |
getHumanReadableName() |
int |
getIteration() |
String |
getIterationToken() |
LensContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getLensContext() |
protected PrismContext |
getNotNullPrismContext() |
PrismObject<O> |
getObjectAny() |
PrismObject<O> |
getObjectCurrent() |
PrismObjectDefinition<O> |
getObjectDefinition() |
abstract ObjectDeltaObject<O> |
getObjectDeltaObject() |
PrismObject<O> |
getObjectNew() |
PrismObject<O> |
getObjectOld() |
Class<O> |
getObjectTypeClass() |
String |
getOid() |
SimpleOperationName |
getOperation() |
ObjectDelta<O> |
getPrimaryDelta() |
PrismContext |
getPrismContext() |
SynchronizationIntent |
getSynchronizationIntent() |
boolean |
isAdd() |
boolean |
isDelete() |
boolean |
isFresh() |
boolean |
isModify() |
protected boolean |
isRequireSecondardyDeltaOid() |
void |
markExecutedDeltasAudited() |
void |
normalize() |
void |
recompute() |
void |
retrieveFromLensElementContextType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensElementContextType lensElementContextType,
OperationResult result) |
void |
setFresh(boolean isFresh) |
void |
setIteration(int iteration) |
void |
setIterationToken(String iterationToken) |
void |
setLoadedObject(PrismObject<O> object)
Sets current and possibly also old object.
|
void |
setObjectCurrent(PrismObject<O> objectCurrent) |
void |
setObjectNew(PrismObject<O> objectNew) |
void |
setObjectOld(PrismObject<O> objectOld) |
void |
setOid(String oid)
Sets oid to the field but also to the deltas (if applicable).
|
void |
setPrimaryDelta(ObjectDelta<O> primaryDelta) |
void |
setSynchronizationIntent(SynchronizationIntent synchronizationIntent) |
void |
storeIntoLensElementContextType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensElementContextType lensElementContextType) |
void |
swallowToPrimaryDelta(ItemDelta<?,?> itemDelta) |
abstract void |
swallowToSecondaryDelta(ItemDelta<?,?> itemDelta) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSecondaryDelta, setSecondaryDelta
debugDump, debugDump
public LensElementContext(Class<O> objectTypeClass, LensContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> lensContext)
public int getIteration()
public void setIteration(int iteration)
public String getIterationToken()
public void setIterationToken(String iterationToken)
public SynchronizationIntent getSynchronizationIntent()
public void setSynchronizationIntent(SynchronizationIntent synchronizationIntent)
public LensContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> getLensContext()
protected PrismContext getNotNullPrismContext()
public Class<O> getObjectTypeClass()
getObjectTypeClass
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public boolean canRepresent(Class type)
public PrismContext getPrismContext()
public PrismObject<O> getObjectOld()
getObjectOld
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void setObjectOld(PrismObject<O> objectOld)
setObjectOld
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public PrismObject<O> getObjectCurrent()
public void setObjectCurrent(PrismObject<O> objectCurrent)
public PrismObject<O> getObjectAny()
public void setLoadedObject(PrismObject<O> object)
public PrismObject<O> getObjectNew()
getObjectNew
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void setObjectNew(PrismObject<O> objectNew)
setObjectNew
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public ObjectDelta<O> getPrimaryDelta()
getPrimaryDelta
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public ObjectDelta<O> getFixedPrimaryDelta()
public void setPrimaryDelta(ObjectDelta<O> primaryDelta)
setPrimaryDelta
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void addPrimaryDelta(ObjectDelta<O> delta) throws SchemaException
addPrimaryDelta
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
SchemaException
public void swallowToPrimaryDelta(ItemDelta<?,?> itemDelta) throws SchemaException
SchemaException
public abstract void swallowToSecondaryDelta(ItemDelta<?,?> itemDelta) throws SchemaException
SchemaException
public boolean isAdd()
public boolean isModify()
public boolean isDelete()
public SimpleOperationName getOperation()
public List<LensObjectDeltaOperation<O>> getExecutedDeltas()
getExecutedDeltas
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void markExecutedDeltasAudited()
public void addToExecutedDeltas(LensObjectDeltaOperation<O> executedDelta)
public ObjectDelta<O> getDelta() throws SchemaException
SchemaException
public ObjectDelta<O> getFixedDelta() throws SchemaException
SchemaException
public abstract ObjectDeltaObject<O> getObjectDeltaObject() throws SchemaException
SchemaException
public String getOid()
getOid
in interface ModelElementContext<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public String determineOid()
public void setOid(String oid)
public PrismObjectDefinition<O> getObjectDefinition()
public boolean isFresh()
public void setFresh(boolean isFresh)
public void recompute() throws SchemaException
SchemaException
public void checkConsistence()
public void checkConsistence(String contextDesc)
protected void checkConsistence(ObjectDelta<O> delta, boolean requireOid, String contextDesc)
protected boolean isRequireSecondardyDeltaOid()
protected void checkConsistence(PrismObject<O> object, String elementDesc, String contextDesc)
public abstract void cleanup()
public void normalize()
public void adopt(PrismContext prismContext) throws SchemaException
SchemaException
public abstract LensElementContext<O> clone(LensContext<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> lensContext)
protected void copyValues(LensElementContext<O> clone, LensContext lensContext)
protected ObjectDelta<O> cloneDelta(ObjectDelta<O> thisDelta)
public void storeIntoLensElementContextType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensElementContextType lensElementContextType) throws SchemaException
SchemaException
public void retrieveFromLensElementContextType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensElementContextType lensElementContextType, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
protected void fixProvisioningTypeInDelta(ObjectDelta<O> delta, Objectable object, OperationResult result) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException
public void checkEncrypted()
protected abstract String getElementDefaultDesc()
protected String getElementDesc()
protected String getDebugDumpTitle()
public abstract String getHumanReadableName()
Copyright © 2016 evolveum. All rights reserved.