Class AbstractConstruction<AH extends AssignmentHolderType,ACT extends AbstractConstructionType,EC extends EvaluatedAbstractConstruction<AH>>
java.lang.Object
com.evolveum.midpoint.model.impl.lens.construction.AbstractConstruction<AH,ACT,EC>
- Type Parameters:
AH- focus type to which this construction appliesACT- type of the construction bean (e.g. ConstructionType, PersonaConstructionType)EC- "EvaluatedXXX" class paired with the construction (e.g.EvaluatedPlainResourceObjectConstructionImpl,EvaluatedPersonaConstructionImpl)
- All Implemented Interfaces:
DebugDumpable,Serializable
- Direct Known Subclasses:
PersonaConstruction,ResourceObjectConstruction
public abstract class AbstractConstruction<AH extends AssignmentHolderType,ACT extends AbstractConstructionType,EC extends EvaluatedAbstractConstruction<AH>>
extends Object
implements DebugDumpable, Serializable
A superclass for both resource object constructions (
ResourceObjectConstruction)
and persona object constructions (PersonaConstruction).
Contains the construction definition (bean) and the relevant context: assignment path, source object, lens context,
validity information. Basically, everything that is needed to evaluate this construction.
Note: it is still not quite clear how much is persona construction evaluation similar to the evaluation of a resource
object construction. Persona constructions are currently evaluated using object template evaluation mechanism, while
resource object constructions evaluation is based on attribute/association mappings evaluation directly in
EvaluatedResourceObjectConstructionImpl and its subclass(es).- Author:
- Radovan Semancik
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @Nullable AssignmentPathImplIf this construction is assigned, this is the path to it.protected final @NotNull LensContext<AH>Lens context in which this construction is collected and evaluated.protected final @NotNull XMLGregorianCalendarCurrent time.protected final @NotNull OriginTypeOrigin of this construction.protected final @NotNull ObjectTypeObject in which the construction is defined: either assignment segment source object (assignment holder) or a resource object.Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable AssignmentPathImplabstract DeltaSetTriple<EC>@NotNull LensContext<AH>@NotNull OriginType@NotNull ObjectTypebooleaninthashCode()abstract booleanTypical reason for being ignored is that the resourceRef cannot be resolved.booleanisValid()booleanisWeak()voidsetFocusOdoAbsolute(ObjectDeltaObject<AH> focusOdoAbsolute) voidsetWasValid(boolean wasValid) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Field Details
-
assignmentPath
If this construction is assigned, this is the path to it. (For "artificial" constructions created during outbound mappings evaluations it is null.) -
source
Object in which the construction is defined: either assignment segment source object (assignment holder) or a resource object. TODO consider if not superseded by the origin inconstructionConfigItem, at least for assigned constructions -
originType
Origin of this construction. -
lensContext
Lens context in which this construction is collected and evaluated. -
now
Current time. Should be copied from the projector's current time, but it is currently not always the case.
-
-
Method Details
-
getSource
-
getOriginType
-
getLensContext
-
getConstructionBean
-
getFocusOdoAbsolute
-
setFocusOdoAbsolute
-
isWeak
public boolean isWeak() -
isValid
public boolean isValid() -
getWasValid
public boolean getWasValid() -
setWasValid
public void setWasValid(boolean wasValid) -
getAssignmentPath
-
getEvaluatedConstructionTriple
-
isIgnored
public abstract boolean isIgnored()Typical reason for being ignored is that the resourceRef cannot be resolved. -
equals
-
hashCode
public int hashCode()
-