public abstract class LensElementContext<O extends ObjectType> extends Object implements ModelElementContext<O>
INDENT_STRING
Constructor and Description |
---|
LensElementContext(Class<O> objectTypeClass,
LensContext<? extends ObjectType,? extends ObjectType> lensContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
debugDump, debugDump
public LensElementContext(Class<O> objectTypeClass, LensContext<? extends ObjectType,? extends ObjectType> lensContext)
public LensContext<? extends ObjectType,? extends ObjectType> getLensContext()
protected PrismContext getNotNullPrismContext()
public PrismContext getPrismContext()
public PrismObject<O> getObjectOld()
getObjectOld
in interface ModelElementContext<O extends ObjectType>
public void setObjectOld(PrismObject<O> objectOld)
setObjectOld
in interface ModelElementContext<O extends ObjectType>
public PrismObject<O> getObjectCurrent()
public void setObjectCurrent(PrismObject<O> objectCurrent)
public void setLoadedObject(PrismObject<O> object)
public PrismObject<O> getObjectNew()
getObjectNew
in interface ModelElementContext<O extends ObjectType>
public void setObjectNew(PrismObject<O> objectNew)
setObjectNew
in interface ModelElementContext<O extends ObjectType>
public ObjectDelta<O> getPrimaryDelta()
getPrimaryDelta
in interface ModelElementContext<O extends ObjectType>
public void setPrimaryDelta(ObjectDelta<O> primaryDelta)
setPrimaryDelta
in interface ModelElementContext<O extends ObjectType>
public void addPrimaryDelta(ObjectDelta<O> delta) throws SchemaException
SchemaException
public ObjectDelta<O> getSecondaryDelta()
getSecondaryDelta
in interface ModelElementContext<O extends ObjectType>
public void setSecondaryDelta(ObjectDelta<O> secondaryDelta)
setSecondaryDelta
in interface ModelElementContext<O extends ObjectType>
public void addSecondaryDelta(ObjectDelta<O> delta) throws SchemaException
SchemaException
public void addToSecondaryDelta(ItemDelta accountPasswordDelta) throws SchemaException
SchemaException
public boolean isAdd()
public boolean isModify()
public boolean isDelete()
public List<LensObjectDeltaOperation<O>> getExecutedDeltas()
getExecutedDeltas
in interface ModelElementContext<O extends ObjectType>
public void markExecutedDeltasAudited()
public void addToExecutedDeltas(LensObjectDeltaOperation<O> executedDelta)
public ObjectDelta<O> getDelta() throws SchemaException
SchemaException
public ObjectDeltaObject<O> getObjectDeltaObject() throws SchemaException
SchemaException
public String getOid()
getOid
in interface ModelElementContext<O extends 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 reset()
public void checkConsistence()
public void checkConsistence(String contextDesc)
protected boolean isRequireSecondardyDeltaOid()
protected void checkConsistence(PrismObject<O> object, String elementDesc, String contextDesc)
public void cleanup()
public void normalize()
public void adopt(PrismContext prismContext) throws SchemaException
SchemaException
public abstract LensElementContext<O> clone(LensContext lensContext)
protected void copyValues(LensElementContext<O> clone, LensContext lensContext)
public void storeIntoLensElementContextType(LensElementContextType lensElementContextType) throws SchemaException
SchemaException
public void retrieveFromLensElementContextType(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()
Copyright © 2013 evolveum. All rights reserved.