[midPoint-git] [Evolveum/midpoint] a52378: Stop checking cardinality in item deltas

mederly noreply at github.com
Mon Mar 8 12:19:13 CET 2021


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

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Objectable.java
    M infra/prism-api/src/main/java/com/evolveum/prism/xml/ns/_public/types_3/ObjectType.java
    R infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/util/RawTypeUtil.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/DeltaConvertor.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/ItemDeltaBeanToNativeConversion.java
    M infra/schema/src/test/java/com/evolveum/midpoint/schema/TestDeltaConverter.java
    M infra/schema/testng-unit.xml
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestAudit.java
    M provisioning/ucf-impl-builtin/src/main/java/com/evolveum/midpoint/provisioning/ucf/impl/builtin/async/update/TransformationalAsyncUpdateMessageListener.java
    M repo/repo-sql-impl-test/src/test/java/com/evolveum/midpoint/repo/sql/RAnyConverterStaticTest.java

  Log Message:
  -----------
  Stop checking cardinality in item deltas

DeltaConvertor was updated and fixed. Now it avoids stepping through
item when converting from delta bean do delta, i.e. no longer doing
bean -> item -> delta. Instead, direct bean -> delta conversion is done.

BEHAVIOR CHANGE:

Cardinality (for all kinds of item deltas) is NOT checked
on conversion. It should be checked during delta application. Also,
we no longer remove equivalent values on conversion. Therefore the
conversion is now O(n) instead of O(n^2).

Item conversion from bean to delta was factored out into
ItemDeltaBeanToNativeConversion class.

This resolves MID-6886.

Other changes:
1. ObjectType now implements Objectable interface and is abstract.
2. RawTypeUtil is gone.




More information about the midPoint-svn mailing list