[midPoint-git] [Evolveum/midpoint] 8b7c62: Add pieces of embedded objects support

mederly noreply at github.com
Tue Aug 2 12:36:58 CEST 2022


  Branch: refs/heads/feature/embedded-prism-objects
  Home:   https://github.com/Evolveum/midpoint
  Commit: 8b7c62ff88276d787e02dbd8e17710127ffdb34e
      https://github.com/Evolveum/midpoint/commit/8b7c62ff88276d787e02dbd8e17710127ffdb34e
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-08-02 (Tue, 02 Aug 2022)

  Changed paths:
    M infra/schema/src/main/resources/xml/ns/public/common/common-correlation-3.xsd
    A infra/schema/src/test/java/com/evolveum/midpoint/schema/TestEmbeddedObjects.java

  Log Message:
  -----------
  Add pieces of embedded objects support

The goal is to support embedding prism object values right in prism
containers. Currently, object values can be embedded only in prism
properties.

This commit contains some pieces of the required functionality, but
it is far from complete:

1. Schema parsing: new "embeddedObject" annotation has been devised
to mark an embedded object (to distinguish it from, e.g., a legacy form
of specifying full object along with the reference - link/linkRef).

2. Data parsing: abstract containers couldn't be parsed, even if
xsi:type declaration was present. (This is not specific to embedded
objects.) A partial hack is present here. But the parsing/serialization
code would deserve a complete rework.

3. Data storage: AbstractMutableObjectable assumes that the container
is always PrismObject/PrismObjectValue combo. We need to support PC/PCV
as well.

Work in progress. Tests are not meant to succeed now.




More information about the midPoint-svn mailing list