[midPoint-git] [Evolveum/midpoint] 1a4ec8: Add first test for metadata mapping

mederly noreply at github.com
Thu Jun 18 16:09:29 CEST 2020


  Branch: refs/heads/feature/metadata-mappings
  Home:   https://github.com/Evolveum/midpoint
  Commit: 1a4ec87d5eada530b7c445b9f26021d11f91cc85
      https://github.com/Evolveum/midpoint/commit/1a4ec87d5eada530b7c445b9f26021d11f91cc85
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismValue.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismValueImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/metadata/ValueMetadataAdapter.java
    M infra/schema/src/main/resources/xml/ns/public/common/common-core-3.xsd
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestValueMetadata.java
    A model/model-intest/src/test/resources/metadata/system-configuration.xml
    A model/model-intest/src/test/resources/metadata/template-regular-user.xml
    A model/model-intest/src/test/resources/metadata/user-bob.xml
    M model/model-intest/src/test/resources/schema/metadata.xsd
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/ExtensionAsserter.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/UserAsserter.java
    A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/ValueMetadataAsserter.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/prism/PrismContainerValueAsserter.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/prism/PrismObjectAsserter.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/prism/PrismValueAsserter.java

  Log Message:
  -----------
  Add first test for metadata mapping

(Mapping is not implemented yet.)

Related to MID-6275.


  Commit: 2ba3bfe396e1a99177329ea103a1f8b2f7c88368
      https://github.com/Evolveum/midpoint/commit/2ba3bfe396e1a99177329ea103a1f8b2f7c88368
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Item.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismObject.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismValue.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/util/ItemDeltaItem.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/ItemImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismObjectImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismValueImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/item/DummyItem.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/metadata/ValueMetadataAdapter.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/metadata/MidpointValueMetadataFactory.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/traces/OpType.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/traces/visualizer/MappingEvaluationVisualizer.java
    M infra/schema/src/main/resources/xml/ns/public/common/common-metadata-3.xsd
    M infra/schema/src/main/resources/xml/ns/public/common/common-model-context-3.xsd
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/evaluator/transformation/ValueTupleTransformation.java
    A model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/AbstractMappingBuilder.java
    A model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/AbstractMappingImpl.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MappingBuilder.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MappingFactory.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MappingImpl.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MappingParser.java
    A model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MetadataMappingBuilder.java
    A model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MetadataMappingEvaluator.java
    A model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MetadataMappingImpl.java
    A model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/SimpleValueMetadataComputer.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/TimeConstraintsEvaluation.java
    A model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/ValueMetadataComputation.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/IvwoConsolidator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/ValueMatcher.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/mappings/MappingEvaluator.java
    M model/model-impl/src/main/resources/ctx-model.xml
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestValueMetadata.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/ExpressionEvaluationContext.java
    A repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/ValueMetadataComputer.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/helpers/ObjectRetriever.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/TestDelayedEnable.java
    M testing/story/src/test/java/com/evolveum/midpoint/testing/story/grouper/AbstractGrouperTest.java

  Log Message:
  -----------
  Add limited metadata mapping functionality

1. Created AbstractMappingImpl (= MappingImpl + MetadataMappingImpl)
2. The same for AbstractMappingBuilder
3. Adapted the rest of code to this change
4. Hacked IvwoConsolidator and other components to preserve
value metadata

Related to MID-6275.


Compare: https://github.com/Evolveum/midpoint/compare/079720955eaa...2ba3bfe396e1


More information about the midPoint-svn mailing list