Class ResourceObjectConstruction<AH extends AssignmentHolderType,EC extends EvaluatedResourceObjectConstructionImpl<AH,?>>
java.lang.Object
com.evolveum.midpoint.model.impl.lens.construction.AbstractConstruction<AH,ConstructionType,EC>
com.evolveum.midpoint.model.impl.lens.construction.ResourceObjectConstruction<AH,EC>
- All Implemented Interfaces:
DebugDumpable
,Serializable
- Direct Known Subclasses:
AssignedResourceObjectConstruction
,PlainResourceObjectConstruction
public abstract class ResourceObjectConstruction<AH extends AssignmentHolderType,EC extends EvaluatedResourceObjectConstructionImpl<AH,?>>
extends AbstractConstruction<AH,ConstructionType,EC>
Contains "construction bean" (ConstructionType) - a definition how to construct a resource object.
Besides this definition it also contains auxiliary objects that are needed to evaluate the construction.
An instance of this class produces one or more "evaluated" constructions: more of them in case that
multiaccounts (tags) are used. Evaluated constructions are represented by evaluatedConstructionTriple.
- Author:
- Radovan Semancik
- See Also:
-
Field Summary
Fields inherited from class com.evolveum.midpoint.model.impl.lens.construction.AbstractConstruction
assignmentPath, lensContext, now, originType, source
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EC
createEvaluatedConstruction
(@NotNull ConstructionTargetKey targetKey) debugDump
(int indent) boolean
evaluate
(Task task, OperationResult parentResult) Evaluates this construction.findAttributeDefinition
(QName attributeName) getNow()
@NotNull String
int
hashCode()
protected abstract void
boolean
Should this construction be ignored e.g.protected void
loadFullShadow
(LensProjectionContext projectionContext, String desc, Task task, OperationResult result) protected abstract void
resolveResource
(Task task, OperationResult result) toString()
Methods inherited from class com.evolveum.midpoint.model.impl.lens.construction.AbstractConstruction
getAssignmentPath, getConstructionBean, getFocusOdoAbsolute, getLensContext, getOriginType, getSource, getWasValid, isValid, isWeak, setFocusOdoAbsolute, setWasValid
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
getEvaluatedConstructionTriple
- Specified by:
getEvaluatedConstructionTriple
in classAbstractConstruction<AH extends AssignmentHolderType,
ConstructionType, EC extends EvaluatedResourceObjectConstructionImpl<AH, ?>>
-
evaluate
public NextRecompute evaluate(Task task, OperationResult parentResult) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException Evaluates this construction. Note that evaluation is delegated toEvaluatedResourceObjectConstruction
objects, which are created here (based on tag mapping evaluation). -
createEvaluatedConstruction
protected abstract EC createEvaluatedConstruction(@NotNull @NotNull ConstructionTargetKey targetKey) - Parameters:
targetKey
- Projection into which this construction belong. Must be classified!
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractConstruction<AH extends AssignmentHolderType,
ConstructionType, EC extends EvaluatedResourceObjectConstructionImpl<AH, ?>>
-
equals
- Overrides:
equals
in classAbstractConstruction<AH extends AssignmentHolderType,
ConstructionType, EC extends EvaluatedResourceObjectConstructionImpl<AH, ?>>
-
debugDump
-
toString
-
getMappingFactory
-
getNow
-
resolveResource
protected abstract void resolveResource(Task task, OperationResult result) throws ObjectNotFoundException, SchemaException -
isIgnored
public boolean isIgnored()Should this construction be ignored e.g. because the resource couldn't be resolved? The construction was already evaluated.- Specified by:
isIgnored
in classAbstractConstruction<AH extends AssignmentHolderType,
ConstructionType, EC extends EvaluatedResourceObjectConstructionImpl<AH, ?>>
-
getResource
-
getResourceOid
-
initializeDefinitions
-
getResourceObjectDefinition
-
getAuxiliaryObjectClassDefinitions
-
findAttributeDefinition
-
loadFullShadow
protected void loadFullShadow(LensProjectionContext projectionContext, String desc, Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
-