[midPoint-git] [Evolveum/midpoint] 7724f6: Consistently update linkRef in focal objects

mederly noreply at github.com
Mon Mar 15 17:50:28 CET 2021


  Branch: refs/heads/tmp/mid-6862
  Home:   https://github.com/Evolveum/midpoint
  Commit: 7724f68025bde4ca17e04ce7b06d0e909a35b1fa
      https://github.com/Evolveum/midpoint/commit/7724f68025bde4ca17e04ce7b06d0e909a35b1fa
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-03-15 (Mon, 15 Mar 2021)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/RefreshShadowOperation.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/ResourceShadowDiscriminator.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ShadowUtil.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/importer/ImportObjectsFromFileTaskHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/AssociationSearchExpressionCacheInvalidator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/Clockwork.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/executor/DeltaExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/executor/LinkUpdater.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/executor/ProjectionChangeExecution.java
    R model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/executor/ShadowLivenessState.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/ContextLoader.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/ProjectionLinkUpdater.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/SynchronizationServiceImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/SynchronizationServiceRegisterAgent.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/AsyncUpdateTaskHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/LiveSyncTaskHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/imp/ImportFromResourceTaskHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/recon/ReconciliationTaskHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/tasks/recon/ReconciliationTaskThirdPartExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/tasks/AbstractModelTaskHandler.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/trigger/ShadowReconcileTriggerHandler.java
    M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/util/mock/MockFactory.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestPreviewChanges.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/archetypes/TestArchetypes.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/async/TestAsyncUpdateUcf.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/rbac/TestAutoassign.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/sync/TestImportRecon.java
    M model/model-intest/src/test/resources/logback-test.xml
    M model/model-test/src/main/java/com/evolveum/midpoint/model/test/AbstractModelIntegrationTest.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/AccountOperationListener.java
    R provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ChangeNotificationDispatcher.java
    A provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/EventDispatcher.java
    A provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ExternalResourceEvent.java
    A provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ExternalResourceEventListener.java
    A provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ProvisioningEvent.java
    M provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ProvisioningListener.java
    R provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ResourceEventDescription.java
    R provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ResourceEventListener.java
    M provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ResourceObjectShadowChangeDescription.java
    M provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ResourceOperationDescription.java
    M provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ResourceOperationListener.java
    A provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ShadowDeathEvent.java
    A provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ShadowDeathListener.java
    A provisioning/provisioning-api/src/main/java/com/evolveum/midpoint/provisioning/api/ShadowLivenessState.java
    R provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ChangeNotificationDispatcherImpl.java
    A provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/EventDispatcherImpl.java
    A 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/ProvisioningOperationState.java
    R provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ResourceEventListenerImpl.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/resourceobjects/ResourceObjectChange.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/DeleteHelper.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/RefreshHelper.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/errors/ErrorHandler.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/errors/ObjectAlreadyExistHandler.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/errors/ObjectNotFoundHandler.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/Helper.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowFinder.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowManager.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowUpdater.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/mock/SynchronizationServiceMock.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/LinksAsserter.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestLimitedResources.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestResourceInMaintenance.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/consistency/TestConsistencyMechanism.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/ldap/TestLdapComplex.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/ldap/TestLdapMutilated.java
    M testing/story/src/test/resources/logback-test.xml

  Log Message:
  -----------
  Consistently update linkRef in focal objects

Now we emit ShadowDeathEvent (listened to by ProjectionLinkUpdater)
every time a shadow becomes dead or deleted. This ensures that the
focus->shadow links are always up to date.

Related changes:
- Renamed ChangeNotificationDispatcher to EventDispatcher
and refactored it.
- Renamed ResourceEventDescription to ExternalResourceEvent
and slightly modified exception reporting in its processing.
- Removed cleanDeadShadow field from ResourceOperationDescription.
- Adapted/fixed a couple of tests.

Unrelated change:
- Fixed bug when resetting primary identifier value (ShadowUpdater:755).
- Added missing de-registration of AccountOperationListener.
- Fixed two bugs in ContextLoader:
  1. mis-marking not yet existing shadows as tombstones,
  2. uncaught second ObjectNotFoundException when trying to recover
  from shadow not found situation.

Related to MID-6862.




More information about the midPoint-svn mailing list