[midPoint-git] [Evolveum/prism] 5da28c: Add functionality needed for modern value metadata

Tony Tkáčik noreply at github.com
Fri Jun 7 13:06:47 CEST 2024


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/prism
  Commit: 5da28c39beadd4806bb2a5c22884557218706092
      https://github.com/Evolveum/prism/commit/5da28c39beadd4806bb2a5c22884557218706092
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-05-21 (Tue, 21 May 2024)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismValue.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/ItemDelta.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/ItemDeltaCollectionsUtil.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/equivalence/EquivalenceStrategy.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/equivalence/ParameterizedEquivalenceStrategy.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/metadata/ValueMetadataFactory.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/path/ItemPath.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismContainerValueImpl.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/delta/ObjectDeltaImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/delta/PrismValueDeltaSetTripleImpl.java
    M infra/util/src/main/java/com/evolveum/midpoint/util/MiscUtil.java

  Log Message:
  -----------
  Add functionality needed for modern value metadata

Mostly minor additions; more serious changes are:

1. PrismValue#accept now invites the visitor also to the metadata.
This is necessary mainly to generate PCV IDs for value metadata.

2. DATA_ALLOWING_MISSING_IDS equivalence strategy, needed exactly
because the value metadata (e.g., accesses) now get their own PCV IDs.
When comparing this metadata, we should ignore those IDs.


  Commit: 2fb6776fbe44348c30f5d54593f800432ef7137a
      https://github.com/Evolveum/prism/commit/2fb6776fbe44348c30f5d54593f800432ef7137a
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-05-22 (Wed, 22 May 2024)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Containerable.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismValue.java

  Log Message:
  -----------
  Add some metadata-related auxiliary methods


  Commit: bcd665af63472bfc3602206960577394cc01f60d
      https://github.com/Evolveum/prism/commit/bcd665af63472bfc3602206960577394cc01f60d
  Author: Tony Tkáčik <tonydamage at gmail.com>
  Date:   2024-06-06 (Thu, 06 Jun 2024)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Item.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/item/DummyItem.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/metadata/ValueMetadataAdapter.java

  Log Message:
  -----------
  addRespectingMetadataAndCloning: Returns actual used value

Prism APIs if sillently skipped add, there was no way to determine
which value was used instead, return actually added (or reused) value
if called addRespectingMetadataAndClonning


  Commit: 9bbd6f46a0eb96012400b3481966cb4f0c2dcf80
      https://github.com/Evolveum/prism/commit/9bbd6f46a0eb96012400b3481966cb4f0c2dcf80
  Author: Tony Tkáčik <tonydamage at gmail.com>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  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/delta/ItemDelta.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/PrismContainerImpl.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/delta/ItemDeltaImpl.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

  Log Message:
  -----------
  ItemDelta: After applying Add, delete operation, capture real values used.

This is useful for repository, which needs to know real applied value
instead of submitted value for computing partial full objects.


  Commit: cfc435856139aa76c66a0ea5f5758a5b821150fc
      https://github.com/Evolveum/prism/commit/cfc435856139aa76c66a0ea5f5758a5b821150fc
  Author: Tony Tkáčik <tonydamage at gmail.com>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismReferenceValueImpl.java

  Log Message:
  -----------
  Use Reference Type from schema context instead of DefaultReferenceImpl


  Commit: b22976e65ffcb20495a9e0af89498700f98da61b
      https://github.com/Evolveum/prism/commit/b22976e65ffcb20495a9e0af89498700f98da61b
  Author: Tony Tkáčik <tonydamage at gmail.com>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/ComplexTypeDefinition.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Definition.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/DisplayHint.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Item.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/ParsingContext.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismConstants.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismNamespaceContext.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/PrismParser.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/PrismPresentationDefinition.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/PrismValueCollectionsUtil.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/deleg/ItemDeltaDelegator.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/DeltaSetTriple.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/ItemDelta.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/PlusMinusZero.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/extensions/AbstractDelegatedPrismValueDeltaSetTriple.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/key/NaturalKeyDefinition.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/path/ItemName.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/polystring/PolyString.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/query/PrismQuerySerializer.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/query/QueryConverter.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/schema/SchemaRegistryState.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/schema/SerializableDefinition.java
    A infra/prism-api/src/main/java/com/evolveum/midpoint/prism/schemaContext/SchemaContext.java
    A infra/prism-api/src/main/java/com/evolveum/midpoint/prism/schemaContext/SchemaContextDefinition.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/xml/XsdTypeMapper.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/xnode/XNode.java
    R infra/prism-api/src/main/java/com/evolveum/prism/xml/ns/_public/annotation_3/AccessAnnotationType.java
    R infra/prism-api/src/main/java/com/evolveum/prism/xml/ns/_public/annotation_3/ObjectFactory.java
    R infra/prism-api/src/main/java/com/evolveum/prism/xml/ns/_public/annotation_3/package-info.java
    M infra/prism-codegen/src/main/java/com/evolveum/prism/codegen/impl/ContractGenerator.java
    M infra/prism-codegen/src/main/java/com/evolveum/prism/codegen/impl/EnumerationGenerator.java
    M infra/prism-codegen/src/main/java/com/evolveum/prism/codegen/impl/StructuredGenerator.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/BaseItemMerger.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/DefinitionImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/DummyPrismObjectDefinition.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/ItemDefinitionImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/ItemMergerFactoryImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/ParsingContextImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismContainerDefinitionImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismContainerImpl.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/PrismReferenceDefinitionImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismReferenceValueImpl.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/delta/DeltaSetTripleImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/delta/ItemDeltaImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/delta/ObjectDeltaImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/key/NaturalKeyDefinitionImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/LexicalProcessor.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/dom/DomLexicalProcessor.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/DelegatingLexicalProcessor.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/JsonInfraItems.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/NullLexicalProcessor.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/reader/AbstractReader.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/reader/JsonObjectTokenReader.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/lex/json/reader/JsonReadingContext.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
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/marshaller/ItemPathSerialization.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/marshaller/PrismParserImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/marshaller/PrismUnmarshaller.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/marshaller/QueryConverterImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/lang/AxiomQueryCompletionVisitor.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/lang/AxiomQueryLangServiceImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/lang/PrismQuerySerializerImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/lang/QueryWriter.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/SchemaDomSerializer.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/SchemaRegistryImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/SchemaRegistryStateImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/SchemaXsomParser.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/annotation/Annotation.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/annotation/SchemaContextProcessor.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/features/DefinitionFeatures.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schema/features/EnumerationValuesXsomParser.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schemaContext/ContextResolverFactory.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schemaContext/SchemaContextDefinitionImpl.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schemaContext/SchemaContextImpl.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schemaContext/resolver/ResourceObjectContextResolver.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schemaContext/resolver/SchemaContextResolver.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schemaContext/resolver/SchemaContextResolverRegistry.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schemaContext/resolver/TypeContextResolver.java
    A infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/schemaContext/resolver/TypePropertyContextResolver.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/xml/GlobalDynamicNamespacePrefixMapper.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/xnode/MapXNodeImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/xnode/XNodeDefinition.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/xnode/XNodeImpl.java
    M infra/prism-impl/src/main/resources/xml/ns/public/annotation-3.xsd
    M infra/prism-impl/src/main/resources/xml/ns/test/foo-1.xsd
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/PrismInternalTestUtil.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/TestExtraSchema.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/TestPrismContext.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/TestPrismParsing.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/TestPrismParsingJson.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/TestSchemaContext.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/AbstractRoleType.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/AccountType.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ActivationType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ArchetypePolicyType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ArchetypeTypeType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/AssignmentHolderType.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/AssignmentType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/AuthorizationType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ConnectorType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/FocusType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/GuiObjectListPanelConfigurationType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/GuiObjectListViewType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/GuiShadowListViewType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/LinkedObjectSelectorType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ObjectParentSelectorType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ObjectPolicyConfigurationType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ObjectSelectorType.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ObjectType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/OwnedObjectSelectorType.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/ResourceType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/RoleType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/SubjectedObjectSelectorType.java
    A infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/UserInterfaceFeatureType.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/foo/UserType.java
    M infra/prism-impl/src/test/java/com/evolveum/midpoint/prism/query/lang/TestQueryCompletion.java
    A infra/prism-impl/src/test/resources/common/xml/role-proxy.xml
    M infra/util/src/main/java/com/evolveum/midpoint/util/DOMUtil.java
    M infra/util/src/main/java/com/evolveum/midpoint/util/MiscUtil.java

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/master' into feature/metadata


  Commit: ce2954b5b3616d2ac00f4a90df8a7fc540aadbeb
      https://github.com/Evolveum/prism/commit/ce2954b5b3616d2ac00f4a90df8a7fc540aadbeb
  Author: Tony Tkáčik <tonydamage at gmail.com>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Containerable.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/Item.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/delta/ItemDelta.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/ItemDeltaCollectionsUtil.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/equivalence/EquivalenceStrategy.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/equivalence/ParameterizedEquivalenceStrategy.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/metadata/ValueMetadataFactory.java
    M infra/prism-api/src/main/java/com/evolveum/midpoint/prism/path/ItemPath.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/PrismContainerImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/PrismContainerValueImpl.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/PrismReferenceValueImpl.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/delta/ItemDeltaImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/delta/ObjectDeltaImpl.java
    M infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/delta/PrismValueDeltaSetTripleImpl.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/util/src/main/java/com/evolveum/midpoint/util/MiscUtil.java

  Log Message:
  -----------
  Merge branch 'feature/metadata'


Compare: https://github.com/Evolveum/prism/compare/2589cc708a6d...ce2954b5b361

To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/prism/settings/notifications


More information about the midPoint-svn mailing list