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, sourceFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ECcreateEvaluatedConstruction(@NotNull ConstructionTargetKey targetKey) debugDump(int indent) booleanevaluate(Task task, OperationResult parentResult) Evaluates this construction.findAttributeDefinition(QName attributeName) getNow()@NotNull StringinthashCode()protected abstract voidbooleanShould this construction be ignored e.g.protected voidloadFullShadow(LensProjectionContext projectionContext, String desc, Task task, OperationResult result) protected abstract voidresolveResource(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, setWasValidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
getEvaluatedConstructionTriple
- Specified by:
getEvaluatedConstructionTriplein 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 toEvaluatedResourceObjectConstructionobjects, 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:
hashCodein classAbstractConstruction<AH extends AssignmentHolderType,ConstructionType, EC extends EvaluatedResourceObjectConstructionImpl<AH, ?>>
-
equals
- Overrides:
equalsin 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:
isIgnoredin 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
-