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

Redefined Tree#getChild(String name) to #getTree(String relativePath)

    XMLWordPrintableJSON

Details

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

    Description

      currently the API defines the following to methods to access a Tree:

      • Root#getTree(String path)
      • Tree#getChild(String name)

      the method on Root is current implemented by traversing the hierarchy (calling
      Tree#getChild for all elements in the given path. that will not work in
      situations where a parent is not accessible. similarly getChild only allows
      to access a direct child.

      i would suggest to redefine Tree#getChild to take a relative path or to
      change the method to something like #getTree(String relativePath).

      Attachments

        Activity

          People

            Unassigned Unassigned
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: