com.evolveum.midpoint.model.lens
Class LensElementContext<O extends ObjectType>
java.lang.Object
com.evolveum.midpoint.model.lens.LensElementContext<O>
- All Implemented Interfaces:
- ModelElementContext<O>, DebugDumpable, Dumpable, Serializable
- Direct Known Subclasses:
- LensFocusContext, LensProjectionContext
public abstract class LensElementContext<O extends ObjectType>
- extends Object
- implements ModelElementContext<O>
- Author:
- semancik
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.evolveum.midpoint.util.Dumpable |
dump |
LensElementContext
public LensElementContext(Class<O> objectTypeClass,
LensContext<? extends ObjectType,? extends ObjectType> lensContext)
getLensContext
public LensContext<? extends ObjectType,? extends ObjectType> getLensContext()
getNotNullPrismContext
protected PrismContext getNotNullPrismContext()
getObjectTypeClass
public Class<O> getObjectTypeClass()
getPrismContext
public PrismContext getPrismContext()
getObjectOld
public PrismObject<O> getObjectOld()
- Specified by:
getObjectOld
in interface ModelElementContext<O extends ObjectType>
setObjectOld
public void setObjectOld(PrismObject<O> objectOld)
- Specified by:
setObjectOld
in interface ModelElementContext<O extends ObjectType>
getObjectNew
public PrismObject<O> getObjectNew()
- Specified by:
getObjectNew
in interface ModelElementContext<O extends ObjectType>
setObjectNew
public void setObjectNew(PrismObject<O> objectNew)
- Specified by:
setObjectNew
in interface ModelElementContext<O extends ObjectType>
getPrimaryDelta
public ObjectDelta<O> getPrimaryDelta()
- Specified by:
getPrimaryDelta
in interface ModelElementContext<O extends ObjectType>
setPrimaryDelta
public void setPrimaryDelta(ObjectDelta<O> primaryDelta)
- Specified by:
setPrimaryDelta
in interface ModelElementContext<O extends ObjectType>
addPrimaryDelta
public void addPrimaryDelta(ObjectDelta<O> delta)
throws SchemaException
- Throws:
SchemaException
getSecondaryDelta
public ObjectDelta<O> getSecondaryDelta()
- Specified by:
getSecondaryDelta
in interface ModelElementContext<O extends ObjectType>
setSecondaryDelta
public void setSecondaryDelta(ObjectDelta<O> secondaryDelta)
- Specified by:
setSecondaryDelta
in interface ModelElementContext<O extends ObjectType>
addSecondaryDelta
public void addSecondaryDelta(ObjectDelta<O> delta)
throws SchemaException
- Throws:
SchemaException
addToSecondaryDelta
public void addToSecondaryDelta(PropertyDelta accountPasswordDelta)
throws SchemaException
- Throws:
SchemaException
getExecutedDeltas
public List<ObjectDeltaOperation<O>> getExecutedDeltas()
clearExecutedDeltas
public void clearExecutedDeltas()
addToExecutedDeltas
public void addToExecutedDeltas(ObjectDeltaOperation<O> executedDelta)
getDelta
public ObjectDelta<O> getDelta()
throws SchemaException
- Returns user delta, both primary and secondary (merged together).
The returned object is (kind of) immutable. Changing it may do strange things (but most likely the changes will be lost).
- Throws:
SchemaException
getObjectDeltaObject
public ObjectDeltaObject<O> getObjectDeltaObject()
throws SchemaException
- Throws:
SchemaException
getOid
public String getOid()
determineOid
public String determineOid()
setOid
public void setOid(String oid)
- Sets oid to the field but also to the deltas (if applicable).
getObjectDefinition
protected PrismObjectDefinition<O> getObjectDefinition()
isFresh
public boolean isFresh()
setFresh
public void setFresh(boolean isFresh)
recompute
public void recompute()
throws SchemaException
- Throws:
SchemaException
checkConsistence
public void checkConsistence()
checkConsistence
public void checkConsistence(String contextDesc)
isRequireSecondardyDeltaOid
protected boolean isRequireSecondardyDeltaOid()
checkConsistence
protected void checkConsistence(PrismObject<O> object,
String elementDesc,
String contextDesc)
cleanup
public void cleanup()
- Cleans up the contexts by removing secondary deltas and other working state. The context after cleanup
should be the same as originally requested.
normalize
public void normalize()
adopt
public void adopt(PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
clone
public abstract LensElementContext<O> clone(LensContext lensContext)
copyValues
protected void copyValues(LensElementContext<O> clone,
LensContext lensContext)
getElementDefaultDesc
protected abstract String getElementDefaultDesc()
getElementDesc
protected String getElementDesc()
getDebugDumpTitle
protected String getDebugDumpTitle()
getDebugDumpTitle
protected String getDebugDumpTitle(String suffix)
Copyright © 2013 evolveum. All Rights Reserved.