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(ResourceShadowDiscriminator rsd)
-
evaluateConstructions
protected NextRecompute evaluateConstructions(Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
-
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()
-
getResolvedResource
public ResolvedConstructionResource getResolvedResource()
-
setResolvedResource
protected void setResolvedResource(ResolvedConstructionResource resolvedResource)
-
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
public String getResourceOid()
-
initializeDefinitions
protected abstract void initializeDefinitions() throws SchemaException
- Throws:
SchemaException
-
getRefinedObjectClassDefinition
public RefinedObjectClassDefinition getRefinedObjectClassDefinition()
-
setRefinedObjectClassDefinition
protected void setRefinedObjectClassDefinition(RefinedObjectClassDefinition refinedObjectClassDefinition)
-
getAuxiliaryObjectClassDefinitions
public List<RefinedObjectClassDefinition> getAuxiliaryObjectClassDefinitions()
-
addAuxiliaryObjectClassDefinition
protected void addAuxiliaryObjectClassDefinition(RefinedObjectClassDefinition auxiliaryObjectClassDefinition)
-
getKind
public ShadowKindType getKind()
-
getIntent
public String getIntent()
-
findAttributeDefinition
public <T> RefinedAttributeDefinition<T> findAttributeDefinition(QName attributeName)
-
findAssociationDefinition
public RefinedAssociationDefinition findAssociationDefinition(QName associationName)
-
getAssociationContainerDefinition
public PrismContainerDefinition<ShadowAssociationType> getAssociationContainerDefinition()
-
loadFullShadow
protected void loadFullShadow(LensProjectionContext projectionContext, String desc, Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException
-
-