Class PreMappingsEvaluator
java.lang.Object
com.evolveum.midpoint.model.impl.sync.PreMappingsEvaluator
Evaluates "pre-mappings" i.e. inbound mappings that are evaluated before the actual clockwork is run.
(This is currently done to simplify the correlation process.)
This tiny class serves as a bridge between the world of correlation and the world of mappings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <F extends FocusType>
FcomputePreFocus
(@NotNull ShadowType shadowedResourceObject, @NotNull ResourceObjectTypeDefinition objectTypeDefinition, @NotNull ResourceType resource, @NotNull Class<F> focusClass, @NotNull Task task, @NotNull OperationResult result) static <C extends Containerable>
voidcomputePreFocusForAssociationValue
(@NotNull ShadowAssociationValue associationValue, @NotNull ResourceObjectDefinition resourceObjectDefinition, @NotNull ResourceObjectInboundDefinition inboundDefinition, @NotNull ResourceType resource, @NotNull InboundMappingContextSpecification mappingContextSpecification, C targetObject, @NotNull Task task, @NotNull OperationResult result) Note the `resourceObjectDefinition` is where we look for definitions of the mapped items; so for the trivial associations it should be the definition of the _subject_.
-
Constructor Details
-
PreMappingsEvaluator
public PreMappingsEvaluator()
-
-
Method Details
-
computePreFocus
@VisibleForTesting @NotNull public static <F extends FocusType> F computePreFocus(@NotNull @NotNull ShadowType shadowedResourceObject, @NotNull @NotNull ResourceObjectTypeDefinition objectTypeDefinition, @NotNull @NotNull ResourceType resource, @NotNull @NotNull Class<F> focusClass, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ExpressionEvaluationException, SecurityViolationException, CommunicationException, ConfigurationException, ObjectNotFoundException -
computePreFocusForAssociationValue
public static <C extends Containerable> void computePreFocusForAssociationValue(@NotNull @NotNull ShadowAssociationValue associationValue, @NotNull @NotNull ResourceObjectDefinition resourceObjectDefinition, @NotNull @NotNull ResourceObjectInboundDefinition inboundDefinition, @NotNull @NotNull ResourceType resource, @NotNull @NotNull InboundMappingContextSpecification mappingContextSpecification, @NotNull C targetObject, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ExpressionEvaluationException, SecurityViolationException, CommunicationException, ConfigurationException, ObjectNotFoundException Note the `resourceObjectDefinition` is where we look for definitions of the mapped items; so for the trivial associations it should be the definition of the _subject_. SeeInboundSourceData.forAssociationValue(ShadowAssociationValue, ResourceObjectDefinition)
.
-