[midPoint-git] [Evolveum/midpoint] a3e9b1: Replace searchShadowOwner with equivalent search

mederly noreply at github.com
Thu Dec 8 06:36:49 CET 2022


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: a3e9b105d286a87f08d8daa8a40336e673982467
      https://github.com/Evolveum/midpoint/commit/a3e9b105d286a87f08d8daa8a40336e673982467
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    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/TestModelServiceContract.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityAdvanced.java
    A model/model-intest/src/test/resources/security/role-many-shadow-owner-autz.xml
    M repo/repo-api/src/main/java/com/evolveum/midpoint/repo/api/RepositoryService.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/RepositoryCache.java
    M repo/repo-cache/src/test/java/com/evolveum/midpoint/repo/cache/TestRepositoryCache.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/SqaleRepositoryService.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SqlRepositoryServiceImpl.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/helpers/ObjectRetriever.java

  Log Message:
  -----------
  Replace searchShadowOwner with equivalent search

The original searchShadowOwner execution was not cacheable
in global nor in local repository caches, resulting in excessive
number of search operations e.g. when authorizations were present.

Now the method is replaced by equivalent searchObjects call
at the level of RepositoryService, so that caching should be employed.
(Note that the translation to regular search operation was there
internally in SqaleRepositoryService implementation perhaps from the
day one.)




More information about the midPoint-svn mailing list