[midPoint-git] [Evolveum/midpoint] 3735d2: Reduce resource schema related magic
mederly
noreply at github.com
Fri Jun 24 19:59:52 CEST 2022
Branch: refs/heads/master
Home: https://github.com/Evolveum/midpoint
Commit: 3735d28899b86775c80b6cdb24afcdf335fc709c
https://github.com/Evolveum/midpoint/commit/3735d28899b86775c80b6cdb24afcdf335fc709c
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2022-06-24 (Fri, 24 Jun 2022)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinitionResolver.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceSchema.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceSchemaTestUtil.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceSchemaUtil.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ResourceObjectTypeDefinitionTypeUtil.java
R model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestIterativeTasks.java
R model/model-intest/src/test/resources/iterative-tasks/task-buckets-multithreaded.xml
M provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ProvisioningService.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ExternalResourceEventListenerImpl.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ProvisioningContext.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ProvisioningContextFactory.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ShadowCaretaker.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/AddHelper.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/CommonHelper.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/GetHelper.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ModifyHelper.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowedChange.java
M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowUpdater.java
Log Message:
-----------
Reduce resource schema related magic
There were tons of magic related to resolution of object type/class
definitions for border cases (like for missing intent, or for partially
classified shadows). It concentrated around methods like
findObjectDefinitionPrecisely, findObjectDefinitionForKindInternal,
and findDefinitionForShadow.
This commit removes the majority of it; so the algorithms are much
cleaner now:
1. Null intent means looking for type with default-in-a-kind flag set.
(Object class name is no longer considered. Nor any other guesses, like
trying to find a type with intent literally equal to "default".)
2. For shadows: partial classification (e.g. only kind is known) is now
ignored. Either the shadow is classified fully (kind+intent), or only
its object class is used to look up the definition. (Except for full
classification attempts, of course.)
Related change:
- A fix for recently introduced bug related to handling aux OCs
declared for the object type.
Work in progress.
More information about the midPoint-svn
mailing list