[midPoint-git] [Evolveum/midpoint] 1f3cbc: Reworked DocumentWriter to use namespace context i...

Tony Tkáčik noreply at github.com
Mon Feb 1 21:23:38 CET 2021


  Branch: refs/heads/feature/xml-json
  Home:   https://github.com/Evolveum/midpoint
  Commit: 1f3cbc783cf9e13eab0fc11560854d87697b8d0e
      https://github.com/Evolveum/midpoint/commit/1f3cbc783cf9e13eab0fc11560854d87697b8d0e
  Author: Tony Tkacik <tonydamage at gmail.com>
  Date:   2021-02-01 (Mon, 01 Feb 2021)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismNamespaceContext.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/writer/DocumentWriter.java

  Log Message:
  -----------
  Reworked DocumentWriter to use namespace context instead of string namespace

Signed-off-by: Tony Tkacik <tonydamage at gmail.com>


  Commit: e97933b55bccaf7089e4c3e96b5612d0211cf816
      https://github.com/Evolveum/midpoint/commit/e97933b55bccaf7089e4c3e96b5612d0211cf816
  Author: Tony Tkacik <tonydamage at gmail.com>
  Date:   2021-02-01 (Mon, 01 Feb 2021)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismNamespaceContext.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/writer/DocumentWriter.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/marshaller/ItemPathHolder.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/marshaller/ItemPathSerialization.java

  Log Message:
  -----------
  JSON/YAML: Serialization of ItemPath

 - During serialization of ItemPath already defined prefixes
   are reused, which removes need for XPath decl syntax.
 - If namespace does not have prefix in document scope new prefix is assigned
   and added to local namespace context.

Signed-off-by: Tony Tkacik <tonydamage at gmail.com>


  Commit: 5ce285d179c486960a8b71cfa30c29724ae35215
      https://github.com/Evolveum/midpoint/commit/5ce285d179c486960a8b71cfa30c29724ae35215
  Author: Tony Tkacik <tonydamage at gmail.com>
  Date:   2021-02-01 (Mon, 01 Feb 2021)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismNamespaceContext.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/dom/DomWriter.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/writer/DocumentWriter.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/writer/ItemPathSerializer.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/writer/ItemPathTypeSerializer.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/marshaller/ItemPathSerializerTemp.java
    M infra/util/src/main/java/com/evolveum/midpoint/util/DOMUtil.java

  Log Message:
  -----------
  MID-6320: XML/DOM: Use already defined prefixes in ItemPath serialization

XML ItemPath serialization now uses already defined prefixes in serialization,
instead of writing declaration / redeclaring same prefixes for namespaces
reuses definitions already present in XML.

Signed-off-by: Tony Tkacik <tonydamage at gmail.com>


Compare: https://github.com/Evolveum/midpoint/compare/97b538b91050...5ce285d179c4


More information about the midPoint-svn mailing list