Class FocalMappingEvaluationRequest<MT extends MappingType,OO extends ObjectType>
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.mappings.FocalMappingEvaluationRequest<MT,OO>
-
- All Implemented Interfaces:
MappingPreExpression
,ShortDumpable
- Direct Known Subclasses:
AssignedFocusMappingEvaluationRequest
,AutoassignRoleMappingEvaluationRequest
,TemplateMappingEvaluationRequest
public abstract class FocalMappingEvaluationRequest<MT extends MappingType,OO extends ObjectType> extends Object implements ShortDumpable, MappingPreExpression
Contains some of the information necessary to evaluate a mapping. It is used when mappings are collected e.g. from template and its referenced sub-templates, auto-assigned roles, or (in the future) assignments. Each of these mappings need to go along some minimal context (e.g. the holding template, role, or assignment path) that is to be used when mapping is evaluated.- Author:
- semancik
-
-
Field Summary
Fields Modifier and Type Field Description protected MT
mapping
protected OO
originObject
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <V extends PrismValue,D extends ItemDefinition,AH extends AssignmentHolderType>
Source<V,D>constructDefaultSource(ObjectDeltaObject<AH> focusOdo)
AssignmentPathVariables
getAssignmentPathVariables()
abstract ObjectTemplateMappingEvaluationPhaseType
getEvaluationPhase()
MT
getMapping()
OO
getOriginObject()
void
mappingPreExpression(ExpressionEvaluationContext context, OperationResult result)
Executed before mapping expression is executed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDump, shortDumpLazily
-
-
-
-
Field Detail
-
mapping
@NotNull protected final MT extends MappingType mapping
-
originObject
@NotNull protected final OO extends ObjectType originObject
-
-
Method Detail
-
getMapping
@NotNull public MT getMapping()
-
constructDefaultSource
public <V extends PrismValue,D extends ItemDefinition,AH extends AssignmentHolderType> Source<V,D> constructDefaultSource(ObjectDeltaObject<AH> focusOdo) throws SchemaException
- Throws:
SchemaException
-
mappingPreExpression
public void mappingPreExpression(ExpressionEvaluationContext context, OperationResult result) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
Executed before mapping expression is executed. It is used to populate the assignment. We need to do that just before mapping expression is executed, because we want all the sources and variables set the same way as mapping is set.
-
getOriginObject
@NotNull public OO getOriginObject()
-
getEvaluationPhase
public abstract ObjectTemplateMappingEvaluationPhaseType getEvaluationPhase()
- Returns:
- The phase this mapping should be evaluated in. If null, the mapping will be skipped if explicit evaluation phase is requested.
-
getAssignmentPathVariables
public AssignmentPathVariables getAssignmentPathVariables()
-
-