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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.model.impl.lens.construction.AbstractConstruction
assignmentPath, constructionBean, lensContext, now, originType, source
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.model.impl.lens.construction.AbstractConstruction
getAssignmentPath, getAssignmentPathVariables, 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 Detail
-
getEvaluatedConstructionTriple
public DeltaSetTriple<EC> 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 to EvaluatedConstruction 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
public boolean equals(Object o)
- Overrides:
equals
in classAbstractConstruction<AH extends AssignmentHolderType,ConstructionType,EC extends EvaluatedResourceObjectConstructionImpl<AH,?>>
-
debugDump
public String debugDump(int indent)
-
getMappingFactory
public MappingFactory getMappingFactory()
-
getMappingEvaluator
public MappingEvaluator getMappingEvaluator()
-
getNow
public XMLGregorianCalendar 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
public ResourceType getResource()
-
getResourceOid
@NotNull public @NotNull String getResourceOid()
-
initializeDefinitions
protected abstract void initializeDefinitions() throws SchemaException, ConfigurationException
-
getResourceObjectDefinition
public ResourceObjectDefinition getResourceObjectDefinition()
-
getAuxiliaryObjectClassDefinitions
public List<ResourceObjectDefinition> getAuxiliaryObjectClassDefinitions()
-
findAttributeDefinition
public ResourceAttributeDefinition<?> findAttributeDefinition(QName attributeName)
-
loadFullShadow
protected void loadFullShadow(LensProjectionContext projectionContext, String desc, Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
-
-