Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4689

Specify ObjectDelta.findItemDelta semantics

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.1, 3.8
    • Fix Version/s: backlog
    • Component/s: Prism
    • Labels:

      Description

      The signature is

      ItemDelta<IV,ID> findItemDelta(ItemPath itemPath) 
      

      An attempt of defining the semantics:

      Given ADD or MODIFY object delta OD, finds an item delta ID such that "ID has the same effect on an item specified by itemPath as OD" (simply said).

      More precisely,

      1. if OD is ADD delta: ID is ADD delta that adds values of the item present in the object being added
      2. if OD is MODIFY delta: ID is such delta that:
        1. Given ANY object O, let O' be O after application of OD.
        2. Let I be O(itemPath), I' be O'(itemPath).
        3. Then I' is the same as I after application of ID.
          ID is null if no such item delta exists - or cannot be found easily.

      The problem with this definition is that it does not work

      Namely, if OD contains more than one modification that affects itemPath the results from findItemDelta can differ from the above definition. And it is not clear what should we return in such cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mederly Pavol Mederly
              Reporter:
              mederly Pavol Mederly
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: