Search in sources :

Example 1 with ItemRefMergeConfigurationType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.ItemRefMergeConfigurationType in project midpoint by Evolveum.

the class ObjectMerger method computeItemDeltas.

private <O extends ObjectType> void computeItemDeltas(final ObjectDelta<O> leftObjectDelta, final PrismObject<O> objectLeft, final PrismObject<O> objectRight, final List<ItemPath> processedPaths, MergeConfigurationType mergeConfiguration, final String mergeConfigurationName, final Task task, final OperationResult result) throws SchemaException, ConfigurationException, ExpressionEvaluationException, ObjectNotFoundException {
    for (ItemRefMergeConfigurationType itemMergeConfig : mergeConfiguration.getItem()) {
        ItemPath itemPath = itemMergeConfig.getRef().getItemPath();
        processedPaths.add(itemPath);
        ItemDelta itemDelta = mergeItem(objectLeft, objectRight, mergeConfigurationName, itemMergeConfig, itemPath, task, result);
        LOGGER.trace("Item {} delta: {}", itemPath, itemDelta);
        if (itemDelta != null && !itemDelta.isEmpty()) {
            leftObjectDelta.addModification(itemDelta);
        }
    }
}
Also used : ItemRefMergeConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.ItemRefMergeConfigurationType) ItemDelta(com.evolveum.midpoint.prism.delta.ItemDelta) ItemPath(com.evolveum.midpoint.prism.path.ItemPath)

Aggregations

ItemDelta (com.evolveum.midpoint.prism.delta.ItemDelta)1 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)1 ItemRefMergeConfigurationType (com.evolveum.midpoint.xml.ns._public.common.common_3.ItemRefMergeConfigurationType)1