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, java.io.Serializable
- Direct Known Subclasses:
- LensFocusContext, LensProjectionContext
public abstract class LensElementContext<O extends ObjectType>
- extends java.lang.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(java.lang.Class<O> objectTypeClass,
LensContext<? extends ObjectType,? extends ObjectType> lensContext)
getLensContext
public LensContext<? extends ObjectType,? extends ObjectType> getLensContext()
getNotNullPrismContext
protected PrismContext getNotNullPrismContext()
getObjectTypeClass
public java.lang.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 java.util.List<ObjectDelta<O>> getExecutedDeltas()
clearExecutedDeltas
public void clearExecutedDeltas()
addToExecutedDeltas
public void addToExecutedDeltas(ObjectDelta<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 java.lang.String getOid()
determineOid
public java.lang.String determineOid()
setOid
public void setOid(java.lang.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(java.lang.String contextDesc)
isRequireSecondardyDeltaOid
protected boolean isRequireSecondardyDeltaOid()
checkConsistence
protected void checkConsistence(PrismObject<O> object,
java.lang.String elementDesc,
java.lang.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 java.lang.String getElementDefaultDesc()
getElementDesc
protected java.lang.String getElementDesc()
getDebugDumpTitle
protected java.lang.String getDebugDumpTitle()
getDebugDumpTitle
protected java.lang.String getDebugDumpTitle(java.lang.String suffix)
Copyright © 2012 evolveum. All Rights Reserved.