Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3213

Resource hasChildren Convenience Method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • API 2.4.2
    • API 2.5.0
    • API

    Description

      Add a method to the Resource interface for checking if a resource has child resources. This could either invoke an underlying implementation's equivalent method or simply invoke listResources().hasNext() if the underlying implementation does not have an appropriate method.

      I also added an EL function since the function naming isn't JavaBean compliant.

      Attachments

        1. has-children.diff
          7 kB
          Dan Klco

        Activity

          People

            klcodanr Dan Klco
            klcodanr Dan Klco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: