Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-161

Refactor Tree#getChildStatus

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4
    • core
    • None

    Description

      as discussed today Tree#getChildStatus is a bit problematic from my point
      of view as it requires the parent Tree to be always accessible. as discussed
      and stated multiple times in the past that may not be always the case.

      a part from the drawback it offers once we have access control in place
      it doesn't work for the root node, which doesn't have a parent by definition.

      therefore i would suggest to refactor the method to Tree#getStatus and make it
      an implementation detail if the status is stored with the parent or the tree
      itself.

      Attachments

        Issue Links

          Activity

            People

              mduerig Michael Dürig
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: