Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1453

Implement reference handling support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.0.0.Alpha5
    • 3.0.0.Alpha1, 3.0.0.Alpha2
    • None
    • None

    Description

      We need to implement the mechanism for handling (adding/removing) node references. A few implementation points:

      • atm there are 2 methods: addReferrer and removeRefferrer on the MutableCachedNode interface, but they aren't used
      • the original idea was to update the AbstractJcrNode #set/remove property methods and manage references from there, but this is not viable in the context of transactions and multiple threads
      • given the above, the correct place to implement this, probably is WritableSessionCache#persistChanges, since the DocumentTranslator does have enough information about the properties, to be able to tell whether they are reference properties or not (the runtime value of the properties should be a Reference instance)
      • also, to handle the case when multiple properties reference the same node, we probably need a referenceCount field which would be used to check whether a reference actually needs removing or not

      Attachments

        Issue Links

          Activity

            People

              hchiorean Horia Chiorean (Inactive)
              hchiorean Horia Chiorean (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: