Class AutoassignRoleMappingEvaluationRequest
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.projector.mappings.FocalMappingEvaluationRequest<AutoassignMappingType,AbstractRoleType>
-
- com.evolveum.midpoint.model.impl.lens.projector.mappings.AutoassignRoleMappingEvaluationRequest
-
- All Implemented Interfaces:
MappingPreExpression
,ShortDumpable
public class AutoassignRoleMappingEvaluationRequest extends FocalMappingEvaluationRequest<AutoassignMappingType,AbstractRoleType>
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.model.impl.lens.projector.mappings.FocalMappingEvaluationRequest
mapping, originObject
-
-
Constructor Summary
Constructors Constructor Description AutoassignRoleMappingEvaluationRequest(AutoassignMappingType mapping, AbstractRoleType role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V extends PrismValue,D extends ItemDefinition,AH extends AssignmentHolderType>
Source<V,D>constructDefaultSource(ObjectDeltaObject<AH> focusOdo)
ObjectTemplateMappingEvaluationPhaseType
getEvaluationPhase()
void
mappingPreExpression(ExpressionEvaluationContext context, OperationResult result)
Executed before mapping expression is executed.void
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.-
Methods inherited from class com.evolveum.midpoint.model.impl.lens.projector.mappings.FocalMappingEvaluationRequest
getAssignmentPathVariables, getMapping, getOriginObject
-
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, shortDumpLazily
-
-
-
-
Constructor Detail
-
AutoassignRoleMappingEvaluationRequest
public AutoassignRoleMappingEvaluationRequest(@NotNull AutoassignMappingType mapping, @NotNull AbstractRoleType role)
-
-
Method Detail
-
constructDefaultSource
public <V extends PrismValue,D extends ItemDefinition,AH extends AssignmentHolderType> Source<V,D> constructDefaultSource(ObjectDeltaObject<AH> focusOdo) throws SchemaException
- Overrides:
constructDefaultSource
in classFocalMappingEvaluationRequest<AutoassignMappingType,AbstractRoleType>
- Throws:
SchemaException
-
mappingPreExpression
public void mappingPreExpression(ExpressionEvaluationContext context, OperationResult result) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
Description copied from class:FocalMappingEvaluationRequest
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.- Specified by:
mappingPreExpression
in interfaceMappingPreExpression
- Overrides:
mappingPreExpression
in classFocalMappingEvaluationRequest<AutoassignMappingType,AbstractRoleType>
- Throws:
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
SecurityViolationException
-
getEvaluationPhase
public ObjectTemplateMappingEvaluationPhaseType getEvaluationPhase()
- Specified by:
getEvaluationPhase
in classFocalMappingEvaluationRequest<AutoassignMappingType,AbstractRoleType>
- Returns:
- The phase this mapping should be evaluated in. If null, the mapping will be skipped if explicit evaluation phase is requested.
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
-